Mesen/Core/NsfLoader.h

23 lines
476 B
C
Raw Normal View History

2016-06-26 00:46:54 +00:00
#pragma once
#include "stdafx.h"
#include "BaseLoader.h"
2016-06-26 00:46:54 +00:00
struct NsfHeader;
struct RomData;
class NsfLoader : public BaseLoader
2016-06-26 00:46:54 +00:00
{
private:
void Read(uint8_t* &data, uint8_t& dest);
void Read(uint8_t* &data, uint16_t& dest);
void Read(uint8_t* &data, char* dest, size_t len);
2016-06-26 00:46:54 +00:00
protected:
void InitializeFromHeader(RomData& romData);
void InitHeader(NsfHeader& header);
2016-06-26 00:46:54 +00:00
public:
using BaseLoader::BaseLoader;
void LoadRom(RomData& romData, vector<uint8_t>& romFile);
2016-06-26 00:46:54 +00:00
};