X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fsubgame.h;h=4b15faa8d570546fe1c30ee0696b39271bf22fd3;hb=b97c9c65777b0389f4cc9a6e3257506f29761e03;hp=996714be04accb6bb3c9ce285ec9990a7e8947a4;hpb=306d1ab866a3ce820e95f4faf805684cd4122ae4;p=oweals%2Fminetest.git diff --git a/src/subgame.h b/src/subgame.h index 996714be0..4b15faa8d 100644 --- a/src/subgame.h +++ b/src/subgame.h @@ -35,17 +35,20 @@ struct SubgameSpec std::string gamemods_path; //path to mods of the game std::set addon_mods_paths; //paths to addon mods for this game std::string name; + std::string menuicon_path; SubgameSpec(const std::string &id_="", const std::string &path_="", const std::string &gamemods_path_="", const std::set &addon_mods_paths_=std::set(), - const std::string &name_=""): + const std::string &name_="", + const std::string &menuicon_path_=""): id(id_), path(path_), gamemods_path(gamemods_path_), addon_mods_paths(addon_mods_paths_), - name(name_) + name(name_), + menuicon_path(menuicon_path_) {} bool isValid() const @@ -54,6 +57,9 @@ struct SubgameSpec } }; +// minetest.conf +bool getGameMinetestConfig(const std::string &game_path, Settings &conf); +// game.conf bool getGameConfig(const std::string &game_path, Settings &conf); std::string getGameName(const std::string &game_path);