diff options
author | Perttu Ahola <celeron55@gmail.com> | 2013-05-04 10:03:56 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-05-04 10:05:12 +0300 |
commit | a888b232fe1315e4922c541f30b214647511bb93 (patch) | |
tree | 34fd0455573cd1932a66be9c4ccd0114b4aef070 /src/subgame.cpp | |
parent | b88aa81da7031ddb228e8901071b5adf2980c7ed (diff) | |
download | minetest-a888b232fe1315e4922c541f30b214647511bb93.tar.gz minetest-a888b232fe1315e4922c541f30b214647511bb93.tar.bz2 minetest-a888b232fe1315e4922c541f30b214647511bb93.zip |
Add header.png and footer.png support for games, and support texture packs via <gameid>_menu_<background/overlay/header/footer>.png
Diffstat (limited to 'src/subgame.cpp')
-rw-r--r-- | src/subgame.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/subgame.cpp b/src/subgame.cpp index 1bee630b2..cdb546619 100644 --- a/src/subgame.cpp +++ b/src/subgame.cpp @@ -97,16 +97,12 @@ SubgameSpec findSubgame(const std::string &id) std::string game_name = getGameName(game_path); if(game_name == "") game_name = id; - std::string menubackground_path; - std::string menuoverlay_path; std::string menuicon_path; #ifndef SERVER - menubackground_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "background.png"); - menuoverlay_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "overlay.png"); menuicon_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "icon.png"); #endif return SubgameSpec(id, game_path, gamemod_path, mods_paths, game_name, - menubackground_path, menuoverlay_path, menuicon_path); + menuicon_path); } SubgameSpec findWorldSubgame(const std::string &world_path) |