2016-01-29 01:47:16 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2018-02-25 16:27:32 +00:00
|
|
|
#include "BaseLoader.h"
|
2016-01-29 01:47:16 +00:00
|
|
|
|
2018-07-02 18:49:19 +00:00
|
|
|
struct RomData;
|
|
|
|
|
2018-02-25 16:27:32 +00:00
|
|
|
class FdsLoader : public BaseLoader
|
2016-01-29 01:47:16 +00:00
|
|
|
{
|
|
|
|
private:
|
2018-07-02 18:49:19 +00:00
|
|
|
static constexpr size_t FdsDiskSideCapacity = 65500;
|
2016-01-29 01:47:16 +00:00
|
|
|
|
|
|
|
private:
|
2018-07-02 18:49:19 +00:00
|
|
|
void AddGaps(vector<uint8_t>& diskSide, uint8_t* readBuffer);
|
|
|
|
vector<uint8_t> LoadBios();
|
2017-11-20 04:08:23 +00:00
|
|
|
|
|
|
|
public:
|
2018-02-25 16:27:32 +00:00
|
|
|
using BaseLoader::BaseLoader;
|
|
|
|
|
2018-07-02 18:49:19 +00:00
|
|
|
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);
|
2020-01-01 01:23:26 +00:00
|
|
|
void LoadRom(RomData& romData, vector<uint8_t>& romFile);
|
2016-01-29 01:47:16 +00:00
|
|
|
};
|