mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix storage path
This commit is contained in:
parent
6b3da6b5cc
commit
651f473ac5
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue