From: Perttu Ahola Date: Mon, 26 Mar 2012 20:17:29 +0000 (+0300) Subject: Prefer _game postfix in game names (to be squashed to the previous commit) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=bd9912213f459d2b86154d17a2cbbe09c4ab562e;p=zefram%2Fminetest%2Fminetest_engine.git Prefer _game postfix in game names (to be squashed to the previous commit) --- diff --git a/src/subgame.cpp b/src/subgame.cpp index 00b63bdc..243bdc04 100644 --- a/src/subgame.cpp +++ b/src/subgame.cpp @@ -53,14 +53,14 @@ SubgameSpec findSubgame(const std::string &id) std::string share = porting::path_share; std::string user = porting::path_user; std::vector find_paths; - find_paths.push_back(GameFindPath( - user + DIR_DELIM + "games" + DIR_DELIM + id, true)); find_paths.push_back(GameFindPath( user + DIR_DELIM + "games" + DIR_DELIM + id + "_game", true)); find_paths.push_back(GameFindPath( - share + DIR_DELIM + "games" + DIR_DELIM + id, false)); + user + DIR_DELIM + "games" + DIR_DELIM + id, true)); find_paths.push_back(GameFindPath( share + DIR_DELIM + "games" + DIR_DELIM + id + "_game", false)); + find_paths.push_back(GameFindPath( + share + DIR_DELIM + "games" + DIR_DELIM + id, false)); // Find game directory std::string game_path; bool user_game = true; // Game is in user's directory