mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 14:55:13 -05:00
Remove trailing / or \ in path_userdata (probably fixes world deletion on Windows)
This commit is contained in:
parent
0c20973c17
commit
03db16d55b
@ -129,8 +129,8 @@ void initializePaths()
|
|||||||
// Use "./bin/../data"
|
// Use "./bin/../data"
|
||||||
path_data = std::string(buf) + DIR_DELIM ".." DIR_DELIM "data";
|
path_data = std::string(buf) + DIR_DELIM ".." DIR_DELIM "data";
|
||||||
|
|
||||||
// Use "./bin/../"
|
// Use "./bin/.."
|
||||||
path_userdata = std::string(buf) + DIR_DELIM ".." DIR_DELIM;
|
path_userdata = std::string(buf) + DIR_DELIM "..";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Linux
|
Linux
|
||||||
@ -149,7 +149,7 @@ void initializePaths()
|
|||||||
path_data = std::string(buf) + "/../data";
|
path_data = std::string(buf) + "/../data";
|
||||||
|
|
||||||
// Use "./bin/../"
|
// Use "./bin/../"
|
||||||
path_userdata = std::string(buf) + "/../";
|
path_userdata = std::string(buf) + "/..";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
OS X
|
OS X
|
||||||
@ -160,7 +160,7 @@ void initializePaths()
|
|||||||
dstream<<"WARNING: Relative path not properly supported on OS X and FreeBSD"
|
dstream<<"WARNING: Relative path not properly supported on OS X and FreeBSD"
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
path_data = std::string("../data");
|
path_data = std::string("../data");
|
||||||
path_userdata = std::string("../");
|
path_userdata = std::string("..");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user