constants macros: reset(), init() and @:lazy
Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user