Attempt unity fix

This commit is contained in:
WiredSpast 2023-04-17 17:47:15 +02:00
parent a8559cfdb1
commit bfc1d3a843

View File

@ -114,7 +114,7 @@ public class UnityWebModifyer {
contents = insertFrameworkCode(contents, 0, "js_code/unity_code.js");
String exportSearch = "Module[\"asm\"]=exports;";
String exportSearch = "Module[\"asm\"][\"Fj\"]).apply(null,arguments)};";
int exportIndex = contents.indexOf(exportSearch) + exportSearch.length();
contents = insertFrameworkCode(contents, exportIndex, "js_code/unity_exports.js");