mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // _WIN32
|
#else // The Linux case
|
||||||
// e.g., /home/<username>/Panda3D
|
// e.g., /home/<username>/.panda3d
|
||||||
|
|
||||||
string root;
|
string root;
|
||||||
const char *uname = getlogin();
|
const char *uname = getlogin();
|
||||||
@ -262,7 +262,7 @@ find_root_dir() {
|
|||||||
root = pwdata->pw_dir;
|
root = pwdata->pw_dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
root += "/Panda3D";
|
root += "/.panda3d";
|
||||||
if (mkdir(root.c_str(), 0700) == 0 || errno == EEXIST) {
|
if (mkdir(root.c_str(), 0700) == 0 || errno == EEXIST) {
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user