diff --git a/src/ResourceLoader.hx b/src/ResourceLoader.hx index 56049af0..9fddd2ee 100644 --- a/src/ResourceLoader.hx +++ b/src/ResourceLoader.hx @@ -48,7 +48,7 @@ class ResourceLoader { public static function init(scene2d:h2d.Scene, onLoadedFunc:Void->Void) { Console.log("Initializing filesystem"); - #if hl + #if (hl && !android) Console.log("Filesystem Path: " + @:privateAccess cast(fileSystem, TorqueFileSystem).baseDir); #end hxd.res.Resource.LIVE_UPDATE = false; // Disable live update to save frames diff --git a/src/Settings.hx b/src/Settings.hx index 3f5a199e..22a39513 100644 --- a/src/Settings.hx +++ b/src/Settings.hx @@ -292,11 +292,11 @@ class Settings { public static function load() { Console.log("Loading settings"); var settingsExists = false; - #if hl + #if (hl && !android) settingsExists = FileSystem.exists(Path.join([settingsDir, "settings.json"])); #end #if android - // settingsDir = @:privateAccess String.fromUTF8(get_storage_path()); + settingsDir = @:privateAccess String.fromUTF8(get_storage_path()); #end #if js var localStorage = js.Browser.getLocalStorage();