Emulator: Add cli argument to specify bootrom path

This commit is contained in:
Riyyi
2022-08-25 00:16:32 +02:00
parent dd2920b2a4
commit 8e4dacca8a
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ void Loader::init()
Emu::the().addMemorySpace("IE", 0xffff, 0xffff); // 1B, Interrupt Enable register
// Load bootrom
auto bootrom = ruc::File("gbc_bios.bin").data();
auto bootrom = ruc::File(m_bootrom_path).data();
for (size_t i = 0; i < bootrom.length(); ++i) {
// Skip cartridge header memory range
if (i >= 0x0100 && i <= 0x01ff) {