constants macros: reset(), init() and @:lazy

Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
⍚~Nex
2024-08-31 03:08:13 +02:00
co-authored by Ne_Eo
parent 500cf98e0c
commit 562f1d8fc6
9 changed files with 83 additions and 7 deletions
+5 -1
View File
@@ -17,9 +17,13 @@ class MainState extends FlxState {
public static var betaWarningShown:Bool = false;
public override function create() {
super.create();
if (!initiated)
if (!initiated) {
Main.loadGameSettings();
Constants.init();
}
initiated = true;
Constants.reset();
#if sys
CoolUtil.deleteFolder('./.temp/'); // delete temp folder