You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
[iOS] Fix use of godot_path.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user