Mesen/Core/RomLoader.h

26 lines
576 B
C
Raw Normal View History

2014-06-14 15:27:55 +00:00
#pragma once
#include "stdafx.h"
#include "VirtualFile.h"
2016-01-29 01:47:16 +00:00
#include "RomData.h"
#include "BaseLoader.h"
2016-12-11 15:56:23 +00:00
class ArchiveReader;
2014-06-14 15:27:55 +00:00
class RomLoader : public BaseLoader
2014-06-14 15:27:55 +00:00
{
private:
static constexpr int MaxFilesToCheck = 100;
RomData _romData;
string _filename;
2014-06-14 15:27:55 +00:00
static string FindMatchingRomInFile(string filePath, HashInfo hashInfo, int &iterationCount);
public:
using BaseLoader::BaseLoader;
bool LoadFile(VirtualFile &romFile);
RomData GetRomData();
static string FindMatchingRom(vector<string> romFiles, string romFilename, HashInfo hashInfo, bool useFastSearch);
2014-06-14 15:27:55 +00:00
};