summaryrefslogtreecommitdiff
path: root/src/shared/fallout3info.cpp
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/fallout3info.cpp
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/fallout3info.cpp')
-rw-r--r--src/shared/fallout3info.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/shared/fallout3info.cpp b/src/shared/fallout3info.cpp
index 0b369b50..f0776a7d 100644
--- a/src/shared/fallout3info.cpp
+++ b/src/shared/fallout3info.cpp
@@ -63,7 +63,7 @@ std::wstring Fallout3Info::getRegPathStatic()
}
-std::vector<std::wstring> Fallout3Info::getDLCPlugins()
+std::vector<std::wstring> Fallout3Info::getDLCPlugins() const
{
return boost::assign::list_of (L"ThePitt.esm")
(L"Anchorage.esm")
@@ -73,22 +73,22 @@ std::vector<std::wstring> Fallout3Info::getDLCPlugins()
;
}
-std::vector<std::wstring> Fallout3Info::getSavegameAttachmentExtensions()
+std::vector<std::wstring> Fallout3Info::getSavegameAttachmentExtensions() const
{
return std::vector<std::wstring>();
}
-std::vector<std::wstring> Fallout3Info::getIniFileNames()
+std::vector<std::wstring> Fallout3Info::getIniFileNames() const
{
return boost::assign::list_of(L"fallout.ini")(L"falloutprefs.ini");
}
-std::wstring Fallout3Info::getReferenceDataFile()
+std::wstring Fallout3Info::getReferenceDataFile() const
{
return L"Fallout - Meshes.bsa";
}
-std::wstring Fallout3Info::getNexusPage(bool nmmScheme)
+std::wstring Fallout3Info::getNexusPage(bool nmmScheme) const
{
if (nmmScheme) {
return L"http://nmm.nexusmods.com/fallout3";
@@ -107,7 +107,7 @@ int Fallout3Info::getNexusModIDStatic()
return 16348;
}
-bool Fallout3Info::rerouteToProfile(const wchar_t *fileName, const wchar_t*)
+bool Fallout3Info::rerouteToProfile(const wchar_t *fileName, const wchar_t*) const
{
static LPCWSTR profileFiles[] = { L"fallout.ini", L"falloutprefs.ini", L"plugins.txt", nullptr };
@@ -119,4 +119,9 @@ bool Fallout3Info::rerouteToProfile(const wchar_t *fileName, const wchar_t*)
return false;
}
+bool Fallout3Info::isValidModURL(int modID, const std::wstring &url) const
+{
+ return GameInfo::isValidModURL(modID, url, L"http://fallout3.nexusmods.com");
+}
+
} // namespace MOShared