fix storage path

This commit is contained in:
RandomityGuy 2022-12-28 20:15:13 +05:30
parent 6b3da6b5cc
commit 651f473ac5

View file

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