20 行
475 B
C++
20 行
475 B
C++
struct MasterSystem : System {
|
|
auto name() -> string override { return "Master System"; }
|
|
auto load(string location) -> bool override;
|
|
auto save(string location) -> bool override;
|
|
};
|
|
|
|
auto MasterSystem::load(string location) -> bool {
|
|
auto bios = Pak::read(location); //optional
|
|
|
|
this->location = locate();
|
|
pak = new vfs::directory;
|
|
if(bios) pak->append("bios.rom", bios);
|
|
|
|
return true;
|
|
}
|
|
|
|
auto MasterSystem::save(string location) -> bool {
|
|
return true;
|
|
}
|