fix: warn on an unknown nestopia fds bios

This commit is contained in:
Abdessamad Derraz committed 2026-10-16 07:03:28 +02:00
1 parent 7301c8605c
commit 6289c7ebf0
2 files changed
+13 -1

No files matched your search

+10
View File
@@ -291,5 +291,15 @@ class MgbaGameBoyBootRoms(_Probe):
self.assertFalse(self.accepts("mgba", name, b"\0" * size))
class NestopiaFdsBios(_Probe):
"""Fds::Bios logs "warning, unknown BIOS ROM!" for a CRC32 other than the
Famicom and Twin Famicom ones and uses the ROM (source/core/NstFds.cpp
57-127 at b9fdc9c). The profile declared the check with no value."""
def test_an_unknown_bios_only_warns(self):
self.assertTrue(self.accepts("nestopia", "disksys.rom", b"\0" * 8192))
self.assertFalse(self.accepts("nestopia", "disksys.rom", b"\0" * 8192, strict=True))
if __name__ == "__main__":
unittest.main()