2014-06-14 11:27:55 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2016-01-28 20:47:16 -05:00
|
|
|
#include "RomData.h"
|
2016-12-11 10:56:23 -05:00
|
|
|
class ArchiveReader;
|
2014-06-14 11:27:55 -04:00
|
|
|
|
2016-01-28 20:47:16 -05:00
|
|
|
class RomLoader
|
2014-06-14 11:27:55 -04:00
|
|
|
{
|
|
|
|
private:
|
2016-01-28 20:47:16 -05:00
|
|
|
RomData _romData;
|
2015-07-11 08:27:22 -04:00
|
|
|
string _filename;
|
2014-06-14 11:27:55 -04:00
|
|
|
|
2017-04-22 13:19:21 -04:00
|
|
|
static int32_t FindMatchingRomInFile(string filename, HashInfo hashInfo);
|
2014-07-10 19:25:35 -04:00
|
|
|
|
|
|
|
public:
|
2017-06-28 19:00:08 -04:00
|
|
|
bool LoadFile(string filename, int32_t archiveFileIndex);
|
|
|
|
bool LoadFile(string filename, vector<uint8_t> &fileData);
|
|
|
|
|
2016-01-28 20:47:16 -05:00
|
|
|
RomData GetRomData();
|
2017-04-22 13:19:21 -04:00
|
|
|
static string FindMatchingRomInFolder(string folder, string romFilename, HashInfo hashInfo, bool useFastSearch, int32_t &archiveFileIndex);
|
2014-06-14 11:27:55 -04:00
|
|
|
};
|