Fixed 2 bugs

This commit is contained in:
Ne_Eo
2025-04-04 00:49:23 +02:00
parent c44fa191dd
commit ba53853832
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -157,7 +157,7 @@ class Flags {
// -- End of Codename's Default Flags --
/**
* Flags that Codename couldn't recognize as it's own defaults (they can only be `string`!).
* Flags that Codename couldn't recognize as it's own defaults (they can only be `string`! due to them being unparsed).
*/
@:bypass public static var customFlags:Map<String, String> = [];
@@ -187,10 +187,9 @@ class Flags {
}
}
public static function loadFromDatas(files:Array<String>) {
public static function loadFromDatas(datas:Array<String>) {
var flags:Map<String, String> = [];
for(file in files) {
var data:String = Assets.getText(file);
for(data in datas) {
if(data != null)
loadFromData(flags, data);
}
+2 -2
View File
@@ -233,9 +233,9 @@ class Main extends Sprite
Sys.setCwd(haxe.io.Path.directory(Sys.programPath()));
}
#elseif android
Sys.setCwd(Path.addTrailingSlash(VERSION.SDK_INT > 30 ? Context.getObbDir() : Context.getExternalFilesDir()));
Sys.setCwd(haxe.io.Path.addTrailingSlash(VERSION.SDK_INT > 30 ? Context.getObbDir() : Context.getExternalFilesDir()));
#elseif (ios || switch)
Sys.setCwd(Path.addTrailingSlash(openfl.filesystem.File.applicationStorageDirectory.nativePath));
Sys.setCwd(haxe.io.Path.addTrailingSlash(openfl.filesystem.File.applicationStorageDirectory.nativePath));
#end
}