summaryrefslogtreecommitdiff
path: root/ZAPD/ZRom.h
blob: 6225a1ada0ee4319890f9659cb4c02e8f9835b64 (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
#pragma once

#include <stdint.h>
#include <vector>
#include <map>
#include <string>

class ZRom
{
public:
	ZRom(std::string romPath);

	std::vector<uint8_t> GetFile(std::string fileName);
    bool IsMQ();

protected:
	std::vector<uint8_t> romData;
	std::map<std::string, std::vector<uint8_t>> files;
};

struct RomVersion
{
	std::string version = "None";
	std::string error = "None";
	std::string listPath = "None";
	int offset;
	uint32_t crc;
};