diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-11-28 07:21:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 07:21:43 -0500 |
commit | d0a118f5b1a2cada1d46d4acac55a998e268154d (patch) | |
tree | 72e38e81f8f9ef0d89a6deafa74daa6a261ad49e /src/gamedef.h | |
parent | 3fd5bff128cacb068c0758d0b33b425dc88beed7 (diff) | |
download | minetest-d0a118f5b1a2cada1d46d4acac55a998e268154d.tar.xz |
Add `minetest.get_game_info` and allow reading `game.conf` (#12989)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index e32d10509..df1fa2458 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -40,6 +40,7 @@ namespace irr { namespace scene { class ISceneManager; }} +struct SubgameSpec; struct ModSpec; /* An interface for fetching game-global definitions like tool and @@ -72,6 +73,7 @@ public: virtual const std::vector<ModSpec> &getMods() const = 0; virtual const ModSpec* getModSpec(const std::string &modname) const = 0; + virtual const SubgameSpec* getGameSpec() const { return nullptr; } virtual std::string getWorldPath() const { return ""; } virtual ModStorageDatabase *getModStorageDatabase() = 0; |