conditionals for HTML5

This commit is contained in:
Cameron Taylor 2021-03-10 17:01:57 -05:00
parent 383a3758e4
commit 5848160819
1 changed files with 4 additions and 0 deletions

View File

@ -1,7 +1,9 @@
package;
import flixel.text.FlxText;
#if desktop
import sys.FileSystem;
#end
class ModdingSubstate extends MusicBeatSubstate
{
@ -11,6 +13,7 @@ class ModdingSubstate extends MusicBeatSubstate
// var pathShit
#if desktop
var modList = [];
for (file in FileSystem.readDirectory('./mods'))
@ -29,5 +32,6 @@ class ModdingSubstate extends MusicBeatSubstate
loopNum++;
}
#end
}
}