[iOS] Fix resource directory path when using godot_path.

This commit is contained in:
Pāvels Nadtočajevs
2026-05-21 10:01:55 +03:00
parent 8a33751039
commit abb6d4531a
+5 -1
View File
@@ -445,7 +445,11 @@ String OS_AppleEmbedded::get_bundle_resource_dir() const {
if (!str) {
return OS_Unix::get_bundle_resource_dir();
} else {
return String::utf8([str cStringUsingEncoding:NSUTF8StringEncoding]);
String res_path = String::utf8([str cStringUsingEncoding:NSUTF8StringEncoding]);
if (res_path.is_relative_path()) {
res_path = String::utf8([[[NSBundle mainBundle] bundlePath] cStringUsingEncoding:NSUTF8StringEncoding]).path_join(res_path);
}
return res_path;
}
}