summaryrefslogtreecommitdiff
path: root/src/subgame.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-03-21 18:48:21 +0200
committerPerttu Ahola <celeron55@gmail.com>2013-03-21 18:56:42 +0200
commit306d1ab866a3ce820e95f4faf805684cd4122ae4 (patch)
tree0cc350601b241216e9a05f4460d6f6c4009fc3d1 /src/subgame.h
parent9b5bb5c7559953db40b52dead3c85e1a1245b4f1 (diff)
downloadminetest-306d1ab866a3ce820e95f4faf805684cd4122ae4.tar.gz
minetest-306d1ab866a3ce820e95f4faf805684cd4122ae4.tar.bz2
minetest-306d1ab866a3ce820e95f4faf805684cd4122ae4.zip
Common mods support
Implement "common mods", includeable from {$user,$share}/games/common/$modname by using the game.conf setting common_mods = $modname,$modname2,...
Diffstat (limited to 'src/subgame.h')
-rw-r--r--src/subgame.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subgame.h b/src/subgame.h
index 8561c1a52..996714be0 100644
--- a/src/subgame.h
+++ b/src/subgame.h
@@ -24,6 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <set>
#include <vector>
+class Settings;
+
#define WORLDNAME_BLACKLISTED_CHARS "/\\"
struct SubgameSpec
@@ -52,6 +54,8 @@ struct SubgameSpec
}
};
+bool getGameConfig(const std::string &game_path, Settings &conf);
+
std::string getGameName(const std::string &game_path);
SubgameSpec findSubgame(const std::string &id);