From 1f45523ef75f241189c858281f10e48dee1d70f6 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Wed, 2 Oct 2024 15:09:27 +0800 Subject: [PATCH] move patch step location --- injector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/injector.js b/injector.js index 2928342..41150a4 100644 --- a/injector.js +++ b/injector.js @@ -263,6 +263,10 @@ var main;(function(){` } ); + _status("Applying bonus patches from patch registry..."); + await wait(50); + patchedFile = PatchesRegistry.patchFile(patchedFile); + if (globalThis.doShronk) { _status("Shrinking file..."); await wait(50); @@ -288,10 +292,6 @@ var main;(function(){` return match.replace("main();", "main();ModAPI.hooks._postInit();"); }); - _status("Applying bonus patches from patch registry..."); - await wait(50); - patchedFile = PatchesRegistry.patchFile(patchedFile); - _status("Done, awaiting input..."); await wait(50); return patchedFile;