From d2bb77e6f07d5807ec078d7c6251fe111a27b990 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Wed, 28 Dec 2022 20:15:13 +0530 Subject: [PATCH] fix storage path --- src/Settings.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings.hx b/src/Settings.hx index 5c3298b5..3f5a199e 100644 --- a/src/Settings.hx +++ b/src/Settings.hx @@ -176,7 +176,7 @@ class Settings { return hl.Bytes.fromValue("null", i); } - @:hlNative("std", "sys_special") static function sys_special(key:hl.Bytes):hl.Bytes { + @:hlNative static function get_storage_path():hl.Bytes { return null; } #end @@ -296,7 +296,7 @@ class Settings { settingsExists = FileSystem.exists(Path.join([settingsDir, "settings.json"])); #end #if android - settingsDir = @:privateAccess String.fromUCS2(sys_special(@:privateAccess Sys.getPath("android_internal_storage_path"))); + // settingsDir = @:privateAccess String.fromUTF8(get_storage_path()); #end #if js var localStorage = js.Browser.getLocalStorage();