fix fs and compile

This commit is contained in:
RandomityGuy 2022-12-28 21:28:06 +05:30
parent d2bb77e6f0
commit da8092bf3e
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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();