diff options
| author | TanninOne <seppleviathan@gmx.de> | 2015-12-04 22:30:35 +0100 |
|---|---|---|
| committer | TanninOne <seppleviathan@gmx.de> | 2015-12-04 22:30:35 +0100 |
| commit | 688e149c96c29d8249c9db416f5773cfc7baad6d (patch) | |
| tree | 3a59b3fce8da8afec776e275aca979681711d4de /src/shared/skyriminfo.cpp | |
| parent | 87d5fe28f6000e7a711fe56aa5e9bedfd89128fb (diff) | |
| parent | d4754f4d3ca7451d784e89ae1ddef240666dfdf8 (diff) | |
Merge pull request #334 from ThosRTanner/issue/308
Allow right click on module to see web link if supplied in fomod
Diffstat (limited to 'src/shared/skyriminfo.cpp')
| -rw-r--r-- | src/shared/skyriminfo.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/shared/skyriminfo.cpp b/src/shared/skyriminfo.cpp index f66fcef4..7c85fe10 100644 --- a/src/shared/skyriminfo.cpp +++ b/src/shared/skyriminfo.cpp @@ -91,7 +91,7 @@ GameInfo::LoadOrderMechanism SkyrimInfo::getLoadOrderMechanism() const }
}
-std::vector<std::wstring> SkyrimInfo::getDLCPlugins()
+std::vector<std::wstring> SkyrimInfo::getDLCPlugins() const
{
return boost::assign::list_of (L"Dawnguard.esm")
(L"Dragonborn.esm")
@@ -102,23 +102,23 @@ std::vector<std::wstring> SkyrimInfo::getDLCPlugins() ;
}
-std::vector<std::wstring> SkyrimInfo::getSavegameAttachmentExtensions()
+std::vector<std::wstring> SkyrimInfo::getSavegameAttachmentExtensions() const
{
return boost::assign::list_of(L"skse");
}
-std::vector<std::wstring> SkyrimInfo::getIniFileNames()
+std::vector<std::wstring> SkyrimInfo::getIniFileNames() const
{
return boost::assign::list_of(L"skyrim.ini")(L"skyrimprefs.ini");
}
-std::wstring SkyrimInfo::getReferenceDataFile()
+std::wstring SkyrimInfo::getReferenceDataFile() const
{
return L"Skyrim - Meshes.bsa";
}
-std::wstring SkyrimInfo::getNexusPage(bool nmmScheme)
+std::wstring SkyrimInfo::getNexusPage(bool nmmScheme) const
{
if (nmmScheme) {
return L"http://nmm.nexusmods.com/skyrim";
@@ -139,7 +139,7 @@ int SkyrimInfo::getNexusModIDStatic() return 1334;
}
-bool SkyrimInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPath)
+bool SkyrimInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPath) const
{
static LPCWSTR profileFiles[] = { L"skyrim.ini", L"skyrimprefs.ini", L"loadorder.txt", nullptr };
@@ -157,5 +157,10 @@ bool SkyrimInfo::rerouteToProfile(const wchar_t *fileName, const wchar_t *fullPa return false;
}
+bool SkyrimInfo::isValidModURL(int modID, const std::wstring &url) const
+{
+ return GameInfo::isValidModURL(modID, url, L"http://skyrim.nexusmods.com");
+}
+
} // namespace MOShared
|
