Remove faulty changes

This commit is contained in:
WiredSpast 2023-06-16 07:57:28 +02:00 committed by GitHub
parent b19d8baab4
commit 813fda45e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ public class UnityWebModifyer {
contents = insertFrameworkCode(contents, 0, "js_code/unity_code.js");
String exportSearch = "Module.asmLibraryArg,buffer);Module[\\\"asm\\\"]=asm;";
String exportSearch = "Module.asmLibraryArg,buffer);Module[\"asm\"]=asm;";
int exportIndex = contents.indexOf(exportSearch) + exportSearch.length();
contents = insertFrameworkCode(contents, exportIndex, "js_code/unity_exports.js");
@ -150,7 +150,7 @@ public class UnityWebModifyer {
" else {\n" +
" a.responseHeaders[e] = o.getResponseHeader(e)\n" +
" }");
BufferedWriter writer = new BufferedWriter(new FileWriter(loaderFile));
writer.write(contents);
writer.close();