mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-16 08:23:28 -05:00
fix: profile the beetle gba bios from its loader
This commit is contained in:
1 parent
0d78a9e074
commit
d021f4d6bc
2 files changed
+22
-2
No files matched your search
@@ -99,5 +99,17 @@ class BeetleLynxBootRom(_Probe):
|
||||
self.assertTrue(self.accepts("beetle_lynx", "lynxboot.img", b"\0" * 1024))
|
||||
|
||||
|
||||
class BeetleGbaBios(_Probe):
|
||||
"""CPUInit copies the BIOS only when it is exactly 0x4000 bytes and
|
||||
otherwise falls back to HLE (mednafen/gba/GBA.cpp:2639-2673 at
|
||||
b158166)."""
|
||||
|
||||
def test_only_16k_is_used(self):
|
||||
self.assertTrue(self.accepts("beetle_gba", "gba_bios.bin", b"\0" * 16384))
|
||||
for size in (1000, 32768):
|
||||
with self.subTest(size=size):
|
||||
self.assertFalse(self.accepts("beetle_gba", "gba_bios.bin", b"\0" * size))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user