1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

Attempt to fix RUN_IN_PLACE autodetection on Linux

This commit is contained in:
Perttu Ahola 2012-03-13 00:51:33 +02:00
parent 64232f0aec
commit a0b2c7ba25

View File

@ -246,9 +246,9 @@ void initializePaths()
path_share = std::string(buf) + "/../share/" + PROJECT_NAME;
//path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
if (!fs::PathExists(path_share)) {
dstream<<"WARNING: data path " << path_share << " not found!";
path_share = std::string(buf) + "/../data";
dstream<<" Trying " << path_share << std::endl;
dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\"";
path_share = std::string(buf) + "/../share";
dstream<<"WARNING: Using \""<<path_share<<"\" instead."<<std::endl;
}
path_user = std::string(getenv("HOME")) + "/." + PROJECT_NAME;