summaryrefslogtreecommitdiff
path: root/src/shared/falloutnvinfo.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-12-05 10:21:44 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-12-05 10:21:44 +0000
commitec9c78f8fa49ce960fb708d4a140c44ed3130989 (patch)
treec6601b7045432caa5295b5cd1a4b51c6f19f5cb1 /src/shared/falloutnvinfo.cpp
parent7f9af7f93e1d06d021fd60bf4845d928f4a6bc38 (diff)
parent688e149c96c29d8249c9db416f5773cfc7baad6d (diff)
Merge remote-tracking branch 'TanninOne/master'
# Conflicts: # SConstruct # src/modinfo.cpp # src/modinfo.h
Diffstat (limited to 'src/shared/falloutnvinfo.cpp')
-rw-r--r--src/shared/falloutnvinfo.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/shared/falloutnvinfo.cpp b/src/shared/falloutnvinfo.cpp
index 1203bd25..f6de72e3 100644
--- a/src/shared/falloutnvinfo.cpp
+++ b/src/shared/falloutnvinfo.cpp
@@ -63,7 +63,7 @@ std::wstring FalloutNVInfo::getRegPathStatic()
}
}
-std::vector<std::wstring> FalloutNVInfo::getDLCPlugins()
+std::vector<std::wstring> FalloutNVInfo::getDLCPlugins() const
{
return boost::assign::list_of (L"DeadMoney.esm")
(L"HonestHearts.esm")
@@ -77,22 +77,22 @@ std::vector<std::wstring> FalloutNVInfo::getDLCPlugins()
;
}
-std::vector<std::wstring> FalloutNVInfo::getSavegameAttachmentExtensions()
+std::vector<std::wstring> FalloutNVInfo::getSavegameAttachmentExtensions() const
{
return std::vector<std::wstring>();
}
-std::vector<std::wstring> FalloutNVInfo::getIniFileNames()
+std::vector<std::wstring> FalloutNVInfo::getIniFileNames() const
{
return boost::assign::list_of(L"fallout.ini")(L"falloutprefs.ini");
}
-std::wstring FalloutNVInfo::getReferenceDataFile()
+std::wstring FalloutNVInfo::getReferenceDataFile() const
{
return L"Fallout - Meshes.bsa";
}
-std::wstring FalloutNVInfo::getNexusPage(bool nmmScheme)
+std::wstring FalloutNVInfo::getNexusPage(bool nmmScheme) const
{
if (nmmScheme) {
return L"http://nmm.nexusmods.com/newvegas";
@@ -114,7 +114,7 @@ int FalloutNVInfo::getNexusModIDStatic()
}
-bool FalloutNVInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t*)
+bool FalloutNVInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t*) const
{
static LPCWSTR profileFiles[] = { L"fallout.ini", L"falloutprefs.ini", L"plugins.txt", nullptr };
@@ -126,4 +126,9 @@ bool FalloutNVInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t*)
return false;
}
+bool FalloutNVInfo::isValidModURL(int modID, std::wstring const &url) const
+{
+ return GameInfo::isValidModURL(modID, url, L"http://newvegas.nexusmods.com");
+}
+
} // namespace MOShared