aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-13 00:51:33 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-13 00:51:33 +0200
commita0b2c7ba25874d59980c03bc74359a05e32c4822 (patch)
tree811ca6b7a9d3fe980c67400694cb6b9eead38896 /src
parent64232f0aeca605b1c10c670fc0cf26b407793256 (diff)
downloadminetest-a0b2c7ba25874d59980c03bc74359a05e32c4822.tar.gz
minetest-a0b2c7ba25874d59980c03bc74359a05e32c4822.tar.bz2
minetest-a0b2c7ba25874d59980c03bc74359a05e32c4822.zip
Attempt to fix RUN_IN_PLACE autodetection on Linux
Diffstat (limited to 'src')
-rw-r--r--src/porting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index f2ca601eb..92615d77a 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -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;