Removed reloading

This commit is contained in:
Ne_Eo
2024-07-21 23:19:39 +02:00
parent 789d4864c8
commit b31561eb43
6 changed files with 17 additions and 3 deletions
@@ -42,6 +42,7 @@ class GlobalScript {
});
FlxG.signals.postUpdate.add(function() {
call("postUpdate", [FlxG.elapsed]);
#if EXPERMENTAL_SCRIPT_RELOADING
if (FlxG.keys.justPressed.F5) {
if (scripts.scripts.length > 0) {
Logs.trace('Reloading global script...', WARNING, YELLOW);
@@ -52,6 +53,7 @@ class GlobalScript {
onModSwitch(#if MOD_SUPPORT ModsFolder.currentModFolder #else null #end);
}
}
#end
if (FlxG.keys.justPressed.F2)
NativeAPI.allocConsole();
});