diff --git a/mods/mod/test/_polymod_icon.png b/mods/test/icon.png similarity index 100% rename from mods/mod/test/_polymod_icon.png rename to mods/test/icon.png diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index bc550ac..1f495f5 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -114,6 +114,7 @@ class MainMenuState extends MusicBeatState 'SwagnotrllyTheMod', 'zombought', ]; + var logoBl:FlxSprite; @@ -132,6 +133,7 @@ class MainMenuState extends MusicBeatState override function create() { + awaitingExploitation = (FlxG.save.data.exploitationState == 'awaiting'); if (!FlxG.sound.music.playing) { diff --git a/source/TitleState.hx b/source/TitleState.hx index f2c9d71..7325823 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -1,5 +1,6 @@ package; +import sys.FileSystem; import haxe.Http; import flixel.FlxG; import flixel.FlxSprite; @@ -49,6 +50,8 @@ class TitleState extends MusicBeatState var awaitingExploitation:Bool; var eye:FlxSprite; var loopEyeTween:FlxTween; + public static var mods:Array = []; + public static var currentMod:String = "test"; override public function create():Void @@ -110,6 +113,14 @@ class TitleState extends MusicBeatState #elseif CHARTING FlxG.switchState(new ChartingState()); #else + + if(FileSystem.exists('mods')) { + for (folder in FileSystem.readDirectory('mods')){ + if (FileSystem.isDirectory('mods/' + folder) && !mods.contains(folder)) + mods.push(folder); + } + } + trace(mods); new FlxTimer().start(1, function(tmr:FlxTimer) {