mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-24 05:18:36 +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:
@@ -157,7 +157,7 @@ template<Model model> class ConcreteMachine:
|
||||
// TODO: possibly accept the +3 ROM in multiple parts?
|
||||
}
|
||||
const auto request = ROM::Request(rom_name);
|
||||
const auto roms = rom_fetcher(request);
|
||||
auto roms = rom_fetcher(request);
|
||||
if(!request.validate(roms)) {
|
||||
throw ROMMachine::Error::MissingROMs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user