1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 02:22:39 +00:00

Implements ROM::Request::validate.

It now also validates ROM sizes, so can no longer take a const Map.
This commit is contained in:
Thomas Harte
2021-06-04 18:54:50 -04:00
parent d923fe72c0
commit f4db4c3a73
12 changed files with 49 additions and 14 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ class ConcreteMachine:
const bool is_japanese = target.region == Target::Region::Japan;
const ROM::Name bios_name = is_japanese ? ROM::Name::MasterSystemJapaneseBIOS : ROM::Name::MasterSystemWesternBIOS;
ROM::Request request(bios_name, true);
const auto roms = rom_fetcher(request);
auto roms = rom_fetcher(request);
request.validate(roms);
const auto rom = roms.find(bios_name);
if(rom == roms.end()) {