This repository was archived by the owner on Aug 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ class Flags {
3636 public static var MOD_DISCORD_LOGO_TEXT : String = " " ;
3737
3838 public static var MOD_REDIRECT_STATES : Map <String , String > = [];
39+
3940 // -- Codename's Default Flags --
41+ @:lazy public static var SAVE_PATH : String = haxe.macro. Compiler .getDefine (" SAVE_PATH" );
42+ @:lazy public static var SAVE_NAME : String = haxe.macro. Compiler .getDefine (" SAVE_NAME" );
43+
4044 public static var CURRENT_API_VERSION : Int = 1 ;
4145 public static var COMMIT_NUMBER : Int = GitCommitMacro .commitNumber ;
4246 public static var COMMIT_HASH : String = GitCommitMacro .commitHash ;
Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ class Main extends Sprite
155155 Assets .registerLibrary (' default' , lib );
156156
157157 funkin.options. PlayerSettings .init ();
158- funkin.savedata. FunkinSave .init ();
159158 Options .load ();
160159
161160 FlxG .fixedTimestep = false ;
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ class MainState extends FlxState {
108108 TranslationUtil .setLanguage (Flags .DISABLE_LANGUAGES ? Flags .DEFAULT_LANGUAGE : null );
109109 ModsFolder .onModSwitch .dispatch (ModsFolder .currentModFolder ); // Loads global.hx
110110 MusicBeatTransition .script = Flags .DEFAULT_TRANSITION_SCRIPT ;
111+ funkin.savedata. FunkinSave .init ();
111112 WindowUtils .resetTitle ();
112113 Main .refreshAssets ();
113114 DiscordUtil .init ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class FunkinSave {
2424 public static var save : FlxSave ;
2525
2626 public static function init () {
27- var path = haxe.macro. Compiler . getDefine ( " SAVE_PATH" ) , name = haxe.macro. Compiler . getDefine ( " SAVE_NAME" ) ;
27+ var path = Flags . SAVE_PATH , name = Flags . SAVE_NAME ;
2828 if (path == null ) path = ' CodenameEngine' ;
2929 if (name == null ) name = ' save-default' ;
3030
You can’t perform that action at this time.
0 commit comments