Added Sinobuz Omnimix (#6)

* Added Sinobuz Omnimix DLL Fix
Everything Works Except Free play text to LED ticker (Upper left)

* Add descriptions to dlls

* Correct filename

* Remove 12
This commit is contained in:
James Liu
2018-01-02 23:06:23 +08:00
committed by Will
parent 1b645c680e
commit 155f412e29
2 changed files with 88 additions and 3 deletions
+7 -2
View File
@@ -141,7 +141,7 @@ UnionPatch.prototype.getSelected = function() {
return null;
}
var DllPatcher = function(fname, args) {
var DllPatcher = function(fname, args, description) {
this.mods = [];
for(var i = 0; i < args.length; i++) {
var mod = args[i];
@@ -154,6 +154,7 @@ var DllPatcher = function(fname, args) {
}
}
this.filename = fname;
this.description = description;
this.createUI();
this.loadPatchUI();
};
@@ -161,7 +162,11 @@ var DllPatcher = function(fname, args) {
DllPatcher.prototype.createUI = function() {
var self = this;
var container = $("<div>", {"class": "patchContainer"});
container.html('<h3>' + this.filename + '.dll</h3>');
var header = this.filename + '.dll';
if(this.description) {
header += ' (' + this.description + ')';
}
container.html('<h3>' + header + '</h3>');
$('html').on('dragover dragenter', function() {
container.addClass('dragover');