summaryrefslogtreecommitdiff
path: root/src/shared/gameinfo.h
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-12-05 10:32:07 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-12-05 10:32:07 +0000
commit0dedf5a875753f75fd2d9735e9e8f3a9f4dabcb5 (patch)
tree07b88fb5af7d7e7680e7a7ba0269c866bb659188 /src/shared/gameinfo.h
parent1a12b1f1f6256139427c2516d314f25c593087c5 (diff)
parent688e149c96c29d8249c9db416f5773cfc7baad6d (diff)
Merge remote-tracking branch 'remotes/TanninOne/master' into issue/344
# Conflicts: # src/shared/fallout3info.h # src/shared/falloutnvinfo.h # src/shared/gameinfo.h # src/shared/oblivioninfo.h # src/shared/skyriminfo.h
Diffstat (limited to 'src/shared/gameinfo.h')
-rw-r--r--src/shared/gameinfo.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/shared/gameinfo.h b/src/shared/gameinfo.h
index 5b344932..55cd024a 100644
--- a/src/shared/gameinfo.h
+++ b/src/shared/gameinfo.h
@@ -56,13 +56,13 @@ public:
virtual ~GameInfo() {}
- std::wstring getOrganizerDirectory() { return m_OrganizerDirectory; }
+ std::wstring getOrganizerDirectory() const { return m_OrganizerDirectory; }
- virtual std::wstring getRegPath() = 0;
- virtual std::wstring getBinaryName() = 0;
- virtual std::wstring getExtenderName() = 0;
+ virtual std::wstring getRegPath() const = 0;
+ virtual std::wstring getBinaryName() const = 0;
+ virtual std::wstring getExtenderName() const = 0;
- virtual GameInfo::Type getType() = 0;
+ virtual GameInfo::Type getType() const = 0;
virtual std::wstring getGameName() const = 0;
virtual std::wstring getGameShortName() const = 0;
@@ -76,22 +76,24 @@ public:
virtual bool requiresSteam() const;
// get a list of file extensions for additional files belonging to a save game
- virtual std::vector<std::wstring> getSavegameAttachmentExtensions() = 0;
+ virtual std::vector<std::wstring> getSavegameAttachmentExtensions() const = 0;
// get a set of esp/esm files that are part of known dlcs
- virtual std::vector<std::wstring> getDLCPlugins() = 0;
+ virtual std::vector<std::wstring> getDLCPlugins() const = 0;
// file name of this games ini file(s)
- virtual std::vector<std::wstring> getIniFileNames() = 0;
+ virtual std::vector<std::wstring> getIniFileNames() const = 0;
- virtual std::wstring getReferenceDataFile() = 0;
+ virtual std::wstring getReferenceDataFile() const = 0;
- virtual std::wstring getNexusPage(bool nmmScheme = true) = 0;
- virtual std::wstring getNexusInfoUrl() = 0;
- virtual int getNexusModID() = 0;
- virtual int getNexusGameID() = 0;
+ virtual std::wstring getNexusPage(bool nmmScheme = true) const = 0;
+ virtual std::wstring getNexusInfoUrl() const = 0;
+ virtual int getNexusModID() const = 0;
+ virtual int getNexusGameID() const = 0;
- virtual bool rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPath) = 0;
+ virtual bool rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPath) const = 0;
+
+ virtual bool isValidModURL(int modID, std::wstring const &url) const = 0;
public:
@@ -109,6 +111,8 @@ protected:
const std::wstring &getMyGamesDirectory() const { return m_MyGamesDirectory; }
void identifyMyGamesDirectory(const std::wstring &file);
+ bool isValidModURL(int modID, const std::wstring &url, const std::wstring &alt) const;
+
private:
static bool identifyGame(const std::wstring &moDirectory, const std::wstring &moDataDirectory, const std::wstring &searchPath);