diff options
| author | Tannin <devnull@localhost> | 2015-01-29 19:26:42 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-29 19:26:42 +0100 |
| commit | 8aa6dc4c7dcf4139cd0144207a327013bd3cb1dc (patch) | |
| tree | 06a28839549304e32b5774b37fba07ca4413bc03 /src/shared/oblivioninfo.h | |
| parent | c3a95bdef1d989a54684b966e042b12bf682046d (diff) | |
extended the game-plugin interface
Diffstat (limited to 'src/shared/oblivioninfo.h')
| -rw-r--r-- | src/shared/oblivioninfo.h | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/src/shared/oblivioninfo.h b/src/shared/oblivioninfo.h index a93f510e..87ba26ff 100644 --- a/src/shared/oblivioninfo.h +++ b/src/shared/oblivioninfo.h @@ -33,8 +33,6 @@ public: virtual ~OblivionInfo() {}
- virtual unsigned long getBSAVersion();
-
static std::wstring getRegPathStatic();
virtual std::wstring getRegPath() { return getRegPathStatic(); }
virtual std::wstring getBinaryName() { return L"Oblivion.exe"; }
@@ -43,14 +41,40 @@ public: virtual std::wstring getGameName() const { return L"Oblivion"; }
virtual std::wstring getGameShortName() const { return L"Oblivion"; }
+/*
+ virtual std::wstring getInvalidationBSA()
+ {
+ return L"Oblivion - Invalidation.bsa";
+ }
- virtual std::wstring getInvalidationBSA();
+ virtual bool isInvalidationBSA(const std::wstring &bsaName)
+ {
+ static LPCWSTR invalidation[] = { L"Oblivion - Invalidation.bsa", L"ArchiveInvalidationInvalidated!.bsa",
+ L"BSARedirection.bsa", nullptr };
- virtual bool isInvalidationBSA(const std::wstring &bsaName);
+ for (int i = 0; invalidation[i] != nullptr; ++i) {
+ if (wcscmp(bsaName.c_str(), invalidation[i]) == 0) {
+ return true;
+ }
+ }
+ return false;
+ }
- virtual std::vector<std::wstring> getPrimaryPlugins();
+ virtual std::vector<std::wstring> getVanillaBSAs()
+ {
+ return boost::assign::list_of(L"Oblivion - Meshes.bsa")
+ (L"Oblivion - Textures - Compressed.bsa")
+ (L"Oblivion - Sounds.bsa")
+ (L"Oblivion - Voices1.bsa")
+ (L"Oblivion - Voices2.bsa")
+ (L"Oblivion - Misc.bsa");
+ }
+
+ virtual std::vector<std::wstring> getPrimaryPlugins()
+ {
+ return boost::assign::list_of(L"oblivion.esm");
+ }*/
- virtual std::vector<std::wstring> getVanillaBSAs();
virtual std::vector<std::wstring> getDLCPlugins();
virtual std::vector<std::wstring> getSavegameAttachmentExtensions();
@@ -58,9 +82,6 @@ public: virtual std::vector<std::wstring> getIniFileNames();
virtual std::wstring getReferenceDataFile();
- virtual std::wstring getOMODExt();
-
- virtual std::wstring getSEName();
virtual std::wstring getNexusPage(bool nmmScheme = true);
static std::wstring getNexusInfoUrlStatic();
|
