From 651f473ac5d6aef6daec55cfdb3c5ca7d85501e5 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 f0cdcd2d..5398ece6 100644 --- a/src/Settings.hx +++ b/src/Settings.hx @@ -206,7 +206,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 @@ -326,7 +326,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();