From 813fda45e5c6d220ac179c82a29d18b1486d18db Mon Sep 17 00:00:00 2001 From: WiredSpast <74211155+WiredSpast@users.noreply.github.com> Date: Fri, 16 Jun 2023 07:57:28 +0200 Subject: [PATCH] Remove faulty changes --- .../java/gearth/services/unity_tools/UnityWebModifyer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java index 742d84a..e0cc5fb 100644 --- a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java +++ b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java @@ -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();