| 66 | static constexpr unsigned rom_size = 8192; |
| 67 | |
| 68 | static void loadRom(const Path rom_path, uint8_t *dump) |
| 69 | { |
| 70 | FileReader romDump(rom_path); |
| 71 | if (romDump.Read(std::as_writable_bytes(std::span{dump, rom_size})) != rom_size) |
| 72 | throw FmtRuntimeError("Could not load rom dump {:?}", rom_path); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Throws on error. |