summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-29 12:55:49 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-29 12:55:49 +0000
commit9a88a190eb31c12aa391b1142461a09b1a32215d (patch)
tree17a4365fe23935a003067617e4709f24faa62b34 /src/shared
parentd03e4f45efa89f135ec7d42f55f24bc816f71e0a (diff)
Another cleanup and make the program not crash when looking at saves for the nonce
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/gameinfo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/gameinfo.h b/src/shared/gameinfo.h
index 55161952..01d51f8a 100644
--- a/src/shared/gameinfo.h
+++ b/src/shared/gameinfo.h
@@ -51,6 +51,9 @@ public:
virtual ~GameInfo() {}
+ //**USED IN HOOKDLL and savegame code
+ static GameInfo& instance();
+
//**Used only in savegame which needs refactoring a lot.
virtual GameInfo::Type getType() = 0;
@@ -58,10 +61,10 @@ public:
// get a list of file extensions for additional files belonging to a save game
virtual std::vector<std::wstring> getSavegameAttachmentExtensions() = 0;
- //**USED IN HOOKDLL
+ //**USED ONLY IN HOOKDLL
virtual std::wstring getGameDirectory() const;
- //**USED IN HOOKDLL
+ //**USED ONLY IN HOOKDLL
// initialise with the path to the mo directory (needs to be where hook.dll is stored). This
// needs to be called before the instance can be retrieved
static bool init(const std::wstring &moDirectory, const std::wstring &gamePath = L"");
@@ -79,9 +82,6 @@ public:
//**USED ONLY IN HOOKDLL
virtual bool rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPath) = 0;
- //**USED IN HOOKDLL and everywhere that uses GameInfo
- static GameInfo& instance();
-
protected:
GameInfo(const std::wstring &gameDirectory);