From: Perttu Ahola Date: Sun, 8 Apr 2012 20:15:50 +0000 (+0300) Subject: Support placing a minetest game inside $world/game to allow creating proper adventure... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=42323014eaf359f76b388e75e788486bb0bda280;p=zefram%2Fminetest%2Fminetest_engine.git Support placing a minetest game inside $world/game to allow creating proper adventure maps Pro-tip: You can open a world in minetest by opening the world.mt file using minetest. --- diff --git a/src/main.cpp b/src/main.cpp index 8ec4c263..c1ed70fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1135,43 +1135,44 @@ int main(int argc, char *argv[]) } verbosestream<<"Using world path ["<get("default_game"); - infostream<<"Using default gameid ["<get("default_game")); + infostream<<"Using default gameid ["< getAvailableGameIds() { std::set gameids; diff --git a/src/subgame.h b/src/subgame.h index 49e526d7..dd888ea0 100644 --- a/src/subgame.h +++ b/src/subgame.h @@ -47,7 +47,10 @@ struct SubgameSpec } }; +std::string getGameName(const std::string &game_path); + SubgameSpec findSubgame(const std::string &id); +SubgameSpec findWorldSubgame(const std::string &world_path); std::set getAvailableGameIds(); std::vector getAvailableGames();