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:
parent
ebbe2bd572
commit
73049d115e
26 changed files with 53 additions and 53 deletions
|
|
@ -505,7 +505,7 @@ uint32_t NetworkedMultiplayerENet::_gen_unique_id() const {
|
|||
hash = hash_djb2_one_32(
|
||||
(uint32_t)OS::get_singleton()->get_unix_time(), hash);
|
||||
hash = hash_djb2_one_32(
|
||||
(uint32_t)OS::get_singleton()->get_data_dir().hash64(), hash);
|
||||
(uint32_t)OS::get_singleton()->get_user_data_dir().hash64(), hash);
|
||||
/*
|
||||
hash = hash_djb2_one_32(
|
||||
(uint32_t)OS::get_singleton()->get_unique_id().hash64(), hash );
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ String _get_mono_user_dir() {
|
|||
return settings_path.plus_file("mono");
|
||||
}
|
||||
#else
|
||||
return OS::get_singleton()->get_data_dir().plus_file("mono");
|
||||
return OS::get_singleton()->get_user_data_dir().plus_file("mono");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue