summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-08-20 21:01:40 +0000
committeryexo <yexo@openttd.org>2012-08-20 21:01:40 +0000
commitfe31aa28c422f1fab32ab3b72d8369d539c8496e (patch)
tree78d7776bd3eaf5c9fb62ca7f3b7ea4e26824260b /src/game/game.hpp
parent2a89d0d13d9b7afb6a56b31715ba1b022070eef8 (diff)
downloadopenttd-fe31aa28c422f1fab32ab3b72d8369d539c8496e.tar.xz
(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the path instead of a boolean (LordAro)
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 50d97b50c..0347758e4 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -13,6 +13,7 @@
#define GAME_HPP
#include "../core/string_compare_type.hpp"
+#include "game_scanner.hpp"
#include <map>
/** A list that maps AI names to their AIInfo object. */
@@ -101,6 +102,10 @@ public:
static bool HasGame(const struct ContentInfo *ci, bool md5sum);
static bool HasGameLibrary(const ContentInfo *ci, bool md5sum);
#endif
+ /** Gets the ScriptScanner instance that is used to find Game scripts */
+ static GameScannerInfo *GetScannerInfo();
+ /** Gets the ScriptScanner instance that is used to find Game Libraries */
+ static GameScannerLibrary *GetScannerLibrary();
private:
static uint frame_counter; ///< Tick counter for the Game code.