You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Fix data directory of unnamed projects
(cherry picked from commit f6d16d55c6)
This commit is contained in:
@@ -464,7 +464,7 @@ String OS_Unix::get_user_data_dir() const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ProjectSettings::get_singleton()->get_resource_path();
|
return get_data_path().plus_file(get_godot_dir_name()).plus_file("app_userdata").plus_file("[unnamed project]");
|
||||||
}
|
}
|
||||||
|
|
||||||
String OS_Unix::get_executable_path() const {
|
String OS_Unix::get_executable_path() const {
|
||||||
|
|||||||
@@ -3477,7 +3477,7 @@ String OS_Windows::get_user_data_dir() const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ProjectSettings::get_singleton()->get_resource_path();
|
return get_data_path().plus_file(get_godot_dir_name()).plus_file("app_userdata").plus_file("[unnamed project]");
|
||||||
}
|
}
|
||||||
|
|
||||||
String OS_Windows::get_unique_id() const {
|
String OS_Windows::get_unique_id() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user