From 58481608199f60634cfc8f90eb863fd41289d59b Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 10 Mar 2021 17:01:57 -0500 Subject: [PATCH] conditionals for HTML5 --- source/ModdingSubstate.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/ModdingSubstate.hx b/source/ModdingSubstate.hx index 81f5a358f..a46cba1c5 100644 --- a/source/ModdingSubstate.hx +++ b/source/ModdingSubstate.hx @@ -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 } }