diff options
Diffstat (limited to 'libs/bsapacker/src/Fallout4DummyPluginService.h')
| -rw-r--r-- | libs/bsapacker/src/Fallout4DummyPluginService.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libs/bsapacker/src/Fallout4DummyPluginService.h b/libs/bsapacker/src/Fallout4DummyPluginService.h new file mode 100644 index 0000000..534dd5c --- /dev/null +++ b/libs/bsapacker/src/Fallout4DummyPluginService.h @@ -0,0 +1,34 @@ +#ifndef FALLOUT4DUMMYPLUGINSERVICE_H +#define FALLOUT4DUMMYPLUGINSERVICE_H + +#include "bsapacker_global.h" +#include <bsapacker/IDummyPluginLogic.h> +#include <bsapacker/IDummyPluginService.h> +#include <bsapacker/IFileWriterService.h> + +namespace BsaPacker +{ + class BSAPACKER_EXPORT Fallout4DummyPluginService : public IDummyPluginService + { + public: + Fallout4DummyPluginService(const IFileWriterService* fileWriterService, + const IDummyPluginLogic* dummyPluginLogic); + ~Fallout4DummyPluginService() override = default; + bool CreatePlugin(const QString& modPath, + const QString& archiveNameBase) const override; + + static constexpr unsigned char RAW_FALLOUT4[] = { + 0x54, 0x45, 0x53, 0x34, 0x19, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x00, 0x00, 0x00, + 0x48, 0x45, 0x44, 0x52, 0x0C, 0x00, 0x33, 0x33, 0x73, 0x3F, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x43, 0x4E, 0x41, 0x4D, 0x01, 0x00, + 0x00 + }; + + private: + const IFileWriterService* m_FileWriterService = nullptr; + const IDummyPluginLogic* m_DummyPluginLogic = nullptr; + }; +} + +#endif // FALLOUT4DUMMYPLUGINSERVICE_H |
