Mesen/Core/FdsLoader.h

22 lines
583 B
C
Raw Permalink Normal View History

2016-01-29 01:47:16 +00:00
#pragma once
#include "stdafx.h"
#include "BaseLoader.h"
2016-01-29 01:47:16 +00:00
struct RomData;
class FdsLoader : public BaseLoader
2016-01-29 01:47:16 +00:00
{
private:
static constexpr size_t FdsDiskSideCapacity = 65500;
2016-01-29 01:47:16 +00:00
private:
void AddGaps(vector<uint8_t>& diskSide, uint8_t* readBuffer);
vector<uint8_t> LoadBios();
public:
using BaseLoader::BaseLoader;
vector<uint8_t> RebuildFdsFile(vector<vector<uint8_t>> diskData, bool needHeader);
void LoadDiskData(vector<uint8_t>& romFile, vector<vector<uint8_t>> &diskData, vector<vector<uint8_t>> &diskHeaders);
void LoadRom(RomData& romData, vector<uint8_t>& romFile);
2016-01-29 01:47:16 +00:00
};