You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Attempt to avoid breaking people's workflows on the change from 8ba0d513fa
This commit is contained in:
@@ -329,7 +329,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String base = _get_root_path();
|
String base = _get_root_path();
|
||||||
if (base != String()) {
|
if (base != String() && !try_dir.begins_with(base)) {
|
||||||
ERR_FAIL_COND_V(getcwd(real_current_dir_name, 2048) == NULL, ERR_BUG);
|
ERR_FAIL_COND_V(getcwd(real_current_dir_name, 2048) == NULL, ERR_BUG);
|
||||||
String new_dir;
|
String new_dir;
|
||||||
new_dir.parse_utf8(real_current_dir_name);
|
new_dir.parse_utf8(real_current_dir_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user