aboutsummaryrefslogtreecommitdiff
path: root/libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h')
-rw-r--r--libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h b/libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h
new file mode 100644
index 0000000..f62d015
--- /dev/null
+++ b/libs/game_bethesda/src/games/oblivion/oblivionmoddatachecker.h
@@ -0,0 +1,35 @@
+#ifndef OBLIVION_MODATACHECKER_H
+#define OBLIVION_MODATACHECKER_H
+
+#include <gamebryomoddatachecker.h>
+
+class OblivionModDataChecker : public GamebryoModDataChecker
+{
+public:
+ using GamebryoModDataChecker::GamebryoModDataChecker;
+
+ CheckReturn
+ dataLooksValid(std::shared_ptr<const MOBase::IFileTree> fileTree) const override;
+ std::shared_ptr<MOBase::IFileTree>
+ fix(std::shared_ptr<MOBase::IFileTree> fileTree) const override;
+
+protected:
+ virtual const FileNameSet& possibleFolderNames() const override
+ {
+ static FileNameSet result{"fonts", "interface", "menus",
+ "meshes", "music", "scripts",
+ "shaders", "sound", "strings",
+ "textures", "trees", "video",
+ "facegen", "obse", "distantlod",
+ "asi", "distantland", "mits",
+ "dllplugins", "CalienteTools", "NetScriptFramework"};
+ return result;
+ }
+ virtual const FileNameSet& possibleFileExtensions() const override
+ {
+ static FileNameSet result{"esp", "esm", "bsa", "modgroups", "ini"};
+ return result;
+ }
+};
+
+#endif // OBLIVION_MODATACHECKER_H