summaryrefslogtreecommitdiff
path: root/src/archive/SWrapper.h
blob: 5e0096e90119363cc4b4bcc4a00df39e63bc6f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <vector>
#include <string>
#include "BinaryWrapper.h"
#ifdef USE_STORMLIB
#include <StormLib/src/StormLib.h>
#endif

class SWrapper : public BinaryWrapper {
public:
    explicit SWrapper(const std::string& path);

    int32_t CreateArchive(void) override;
    bool AddFile(const std::string& path, std::vector<char> data) override;
    int32_t Close(void) override;
#ifdef USE_STORMLIB
private:
    HANDLE hMpq{};
#endif
};