Rename OS::get_data_dir to OS::get_user_data_dir
Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
This commit is contained in:
@ -116,7 +116,7 @@ String ProjectSettings::globalize_path(const String &p_path) const {
|
||||
return p_path.replace("res://", "");
|
||||
} else if (p_path.begins_with("user://")) {
|
||||
|
||||
String data_dir = OS::get_singleton()->get_data_dir();
|
||||
String data_dir = OS::get_singleton()->get_user_data_dir();
|
||||
if (data_dir != "") {
|
||||
|
||||
return p_path.replace("user:/", data_dir);
|
||||
|
||||
Reference in New Issue
Block a user