Topic was automatically imported from the old Question2Answer platform.
Asked By
brunosxs
Old Version
Published before Godot 3 was released.
I couldn’t find any documentation about it.
If you uncheck the use_shared_user_dir, where are the files stored? I made a complete search for a file on my home dir but found nothing…
According to the source code I would say files get stored in $HOME/.<NameOfYourGame>
String OS_Unix::get_data_dir() const {
String an = Globals::get_singleton()->get("application/name");
if (an!="") {
if (has_environment("HOME")) {
bool use_godot = Globals::get_singleton()->get("application/use_shared_user_dir");
if (use_godot)
return get_environment("HOME")+"/.godot/app_userdata/"+an;
else
return get_environment("HOME")+"/."+an;
}
}
return Globals::get_singleton()->get_resource_path();
Thank you very much.
I am not at the level that I could dare to look at the source and understand things, at least that was what I thought until I looked at your answer. The code looks really simple and I indeed found it at home, but hidden, thanks to the dot at the start of the name. Not even on the search system I was able to find.
All in all I learned what I wanted and also something even more valuable that is to have a look at the source with no fear of c++.