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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user