preprocessor definitions to prevent complaining

This commit is contained in:
andreas 2021-04-27 00:25:07 +02:00 committed by Andreas Schaafsma
parent 575450068d
commit 46f2ef5e09

View File

@ -1,7 +1,7 @@
package assets;
#if sys
import sys.io.File;
import sys.FileSystem;
class Scanner{
public static function scanTextureDir(){
scanDirsRecursively("textures");
@ -31,3 +31,15 @@ class Scanner{
}
}
}
#else
import openfl.Assets;
import openfl.utils.AssetType;
class Scanner{
public static function scanTextureDir(){
trace(Assets.list(AssetType.TEXT));
for(str in Assets.list(AssetType.TEXT)){
trace(str);
}
}
}
#end