struct PCEngine : System {
  auto name() -> string override { return "PC Engine"; }
  auto load(string location) -> LoadResult override;
  auto save(string location) -> bool override;
};

auto PCEngine::load(string location) -> LoadResult {
  this->location = locate();
  pak = std::make_shared<vfs::directory>();
  pak->append("backup.ram", 2_KiB);

  Pak::load("backup.ram", ".bram");

  return successful;
}

auto PCEngine::save(string location) -> bool {
  Pak::save("backup.ram", ".bram");

  return true;
}
