[iOS] Fix use of godot_path.

This commit is contained in:
Pāvels Nadtočajevs 2025-12-02 16:44:00 +02:00
parent f5918a9d35
commit 358d799b9a
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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();