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-Tag: 0.4.dev-20120408~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=42323014eaf359f76b388e75e788486bb0bda280;p=oweals%2Fminetest.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 8ec4c2632..c1ed70faf 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 49e526d76..dd888ea00 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();