Skip to content

Commit

Permalink
wait hold up i'm cooking rn
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed May 17, 2024
1 parent 579838e commit 9cdd96f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
File renamed without changes
2 changes: 2 additions & 0 deletions source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class MainMenuState extends MusicBeatState
'SwagnotrllyTheMod',
'zombought',
];


var logoBl:FlxSprite;

Expand All @@ -132,6 +133,7 @@ class MainMenuState extends MusicBeatState

override function create()
{

awaitingExploitation = (FlxG.save.data.exploitationState == 'awaiting');
if (!FlxG.sound.music.playing)
{
Expand Down
11 changes: 11 additions & 0 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package;

import sys.FileSystem;
import haxe.Http;
import flixel.FlxG;
import flixel.FlxSprite;
Expand Down Expand Up @@ -49,6 +50,8 @@ class TitleState extends MusicBeatState
var awaitingExploitation:Bool;
var eye:FlxSprite;
var loopEyeTween:FlxTween;
public static var mods:Array<String> = [];
public static var currentMod:String = "test";


override public function create():Void
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 9cdd96f

Please sign in to comment.