2014-06-14 11:27:55 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2017-07-30 09:03:54 -04:00
|
|
|
#include "../Utilities/VirtualFile.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-07-30 09:03:54 -04:00
|
|
|
static string FindMatchingRomInFile(string filePath, HashInfo hashInfo);
|
2014-07-10 19:25:35 -04:00
|
|
|
|
|
|
|
public:
|
2017-07-30 09:03:54 -04:00
|
|
|
bool LoadFile(VirtualFile romFile);
|
2017-06-28 19:00:08 -04:00
|
|
|
bool LoadFile(string filename, vector<uint8_t> &fileData);
|
|
|
|
|
2016-01-28 20:47:16 -05:00
|
|
|
RomData GetRomData();
|
2017-09-01 18:45:53 -04:00
|
|
|
static string FindMatchingRom(vector<string> romFiles, string romFilename, HashInfo hashInfo, bool useFastSearch);
|
2014-06-14 11:27:55 -04:00
|
|
|
};
|