aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/src/Fallout3DummyPluginService.h
blob: 83103ad54c6728ce0a6084646baccdfbe19600fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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