mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #113455 from bruvzg/ios_p
[iOS] Fix use of `godot_path`.
This commit is contained in:
commit
ec3f304ccc
5 changed files with 13 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue