Merge pull request #113455 from bruvzg/ios_p

[iOS] Fix use of `godot_path`.
This commit is contained in:
Thaddeus Crews 2025-12-02 11:52:01 -06:00
commit ec3f304ccc
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
5 changed files with 13 additions and 17 deletions

View file

@ -996,7 +996,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
#if !defined(OVERRIDE_PATH_ENABLED) && !defined(TOOLS_ENABLED)
String old_cwd = OS::get_singleton()->get_cwd();
#ifdef MACOS_ENABLED
#if defined(MACOS_ENABLED) || defined(APPLE_EMBEDDED_ENABLED)
String new_cwd = OS::get_singleton()->get_bundle_resource_dir();
if (new_cwd.is_empty() || !new_cwd.is_absolute_path()) {
new_cwd = OS::get_singleton()->get_executable_path().get_base_dir();