This commit is contained in:
Yoshman29
2023-02-18 15:09:21 +01:00
parent a67ce3e425
commit da6296e587
8 changed files with 34 additions and 19 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class CommandLineHandler {
Sys.println("[ERROR] You need to specify the mod name");
Sys.exit(0);
} else {
// TODO
Main.modToLoad = arg.trim();
}
case "-modfolder":
i++;
+3 -2
View File
@@ -32,13 +32,14 @@ import sys.thread.Thread;
#if sys
import sys.io.File;
#end
// TODO: REMOVE TEST
import funkin.mods.ModsFolder;
class Main extends Sprite
{
public static var instance:Main;
public static var modToLoad:String = null;
public static var scaleMode:FunkinRatioScaleMode;
var gameWidth:Int = 1280; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
@@ -212,7 +213,7 @@ class Main extends Sprite
FlxG.signals.postStateSwitch.add(onStateSwitchPost);
#if MOD_SUPPORT
ModsFolder.switchMod(Options.lastLoadedMod);
ModsFolder.switchMod(modToLoad.getDefault(Options.lastLoadedMod));
#end
initTransition();