1
0
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:
Thomas Harte
2021-06-04 18:54:50 -04:00
parent d923fe72c0
commit f4db4c3a73
12 changed files with 49 additions and 14 deletions
+1 -1
View File
@@ -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;
}