mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
change linux back to ~/.panda3d
This commit is contained in:
parent
c84026fd51
commit
27e7a3c475
@ -248,8 +248,8 @@ find_root_dir() {
|
||||
return root;
|
||||
}
|
||||
|
||||
#else // _WIN32
|
||||
// e.g., /home/<username>/Panda3D
|
||||
#else // The Linux case
|
||||
// e.g., /home/<username>/.panda3d
|
||||
|
||||
string root;
|
||||
const char *uname = getlogin();
|
||||
@ -262,7 +262,7 @@ find_root_dir() {
|
||||
root = pwdata->pw_dir;
|
||||
}
|
||||
|
||||
root += "/Panda3D";
|
||||
root += "/.panda3d";
|
||||
if (mkdir(root.c_str(), 0700) == 0 || errno == EEXIST) {
|
||||
return root;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user