1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
struct PlayStation : System {
auto name() -> string override { return "PlayStation"; }
auto load(string location) -> LoadResult override;
auto save(string location) -> bool override;
};
auto PlayStation::load(string location) -> LoadResult {
auto bios = Pak::read(location);
if(bios.empty()) return romNotFound;
this->location = locate();
pak = std::make_shared<vfs::directory>();
pak->append("bios.rom", bios);
return successful;
}
auto PlayStation::save(string location) -> bool {
return true;
}
|