This commit is contained in:
@@ -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++;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user