From da8092bf3ea02e5a12578386540448a7fdb98d0f Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Wed, 28 Dec 2022 21:28:06 +0530 Subject: [PATCH] fix fs and compile --- src/ResourceLoader.hx | 2 +- src/Settings.hx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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();