aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/src/Fallout3DummyPluginService.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bsapacker/src/Fallout3DummyPluginService.h')
-rw-r--r--libs/bsapacker/src/Fallout3DummyPluginService.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/libs/bsapacker/src/Fallout3DummyPluginService.h b/libs/bsapacker/src/Fallout3DummyPluginService.h
new file mode 100644
index 0000000..83103ad
--- /dev/null
+++ b/libs/bsapacker/src/Fallout3DummyPluginService.h
@@ -0,0 +1,41 @@
+#ifndef FALLOUT3DUMMYPLUGINSERVICE_H
+#define FALLOUT3DUMMYPLUGINSERVICE_H
+
+#include "bsapacker_global.h"
+#include <bsapacker/IDummyPluginLogic.h>
+#include <bsapacker/IDummyPluginService.h>
+#include <bsapacker/IFileWriterService.h>
+
+namespace BsaPacker
+{
+ class BSAPACKER_EXPORT Fallout3DummyPluginService : public IDummyPluginService
+ {
+ public:
+ Fallout3DummyPluginService(const IFileWriterService* fileWriterService,
+ const IDummyPluginLogic* dummyPluginLogic);
+ ~Fallout3DummyPluginService() override = default;
+ bool CreatePlugin(const QString& modPath,
+ const QString& archiveNameBase) const override;
+
+ static constexpr unsigned char RAW_FALLOUT3[] = {
+ 0x54, 0x45, 0x53, 0x34, 0x41, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00,
+ 0x48, 0x45, 0x44, 0x52, 0x0C, 0x00, 0xD7, 0xA3,
+ 0x70, 0x3F, 0x00, 0x00, 0x00, 0x00, 0xA6, 0x0E,
+ 0x00, 0x00, 0x43, 0x4E, 0x41, 0x4D, 0x08, 0x00,
+ 0x44, 0x45, 0x46, 0x41, 0x55, 0x4C, 0x54, 0x00,
+ 0x4D, 0x41, 0x53, 0x54, 0x0D, 0x00, 0x46, 0x61,
+ 0x6C, 0x6C, 0x6F, 0x75, 0x74, 0x33, 0x2E, 0x65,
+ 0x73, 0x6D, 0x00, 0x44, 0x41, 0x54, 0x41, 0x08,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00,
+ };
+
+ private:
+ const IFileWriterService* m_FileWriterService = nullptr;
+ const IDummyPluginLogic* m_DummyPluginLogic = nullptr;
+ };
+}
+
+#endif // FALLOUT3DUMMYPLUGINSERVICE_H