From: Perttu Ahola Date: Sat, 10 Mar 2012 14:10:26 +0000 (+0200) Subject: Fix addon and configuration file paths X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=102070791808ba03f4a5836a9073b87029e72858;p=zefram%2Fminetest%2Fminetest_engine.git Fix addon and configuration file paths --- diff --git a/src/main.cpp b/src/main.cpp index 322d84e9..46fe4715 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1222,11 +1222,14 @@ int main(int argc, char *argv[]) core::array filenames; filenames.push_back(porting::path_user + DIR_DELIM + "minetest.conf"); + // Legacy configuration file location + filenames.push_back(porting::path_user + + DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); #ifdef RUN_IN_PLACE // Try also from a lower level (to aid having the same configuration // for many RUN_IN_PLACE installs) filenames.push_back(porting::path_user + - DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); + DIR_DELIM + ".." + DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); #endif for(u32 i=0; i filenames; filenames.push_back(porting::path_user + DIR_DELIM + "minetest.conf"); + // Legacy configuration file location + filenames.push_back(porting::path_user + + DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); #ifdef RUN_IN_PLACE // Try also from a lower level (to aid having the same configuration // for many RUN_IN_PLACE installs) filenames.push_back(porting::path_user + - DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); + DIR_DELIM + ".." + DIR_DELIM + ".." + DIR_DELIM + "minetest.conf"); #endif for(u32 i=0; i