ignore unknown extension UUIDs

This commit is contained in:
~d6 2023-12-18 22:58:21 -05:00
parent df13838f99
commit 89f9a978fc
1 changed files with 8 additions and 7 deletions

View File

@ -132,13 +132,14 @@ system_expansion_uxn38_device(Uxn *u, Uint8 *ram, Uint16 addr)
{ {
Uint8 dev_id = ram[addr + 1]; Uint8 dev_id = ram[addr + 1];
Uint8 *uuid = &ram[addr + 2]; Uint8 *uuid = &ram[addr + 2];
if(dev_id == 0x10 && uuid_eq(uuid, console_uuid) != 0) { if(uuid_eq(uuid, console_uuid) != 0)
ram[addr + 18] = 0x00; if(dev_id == 0x10) {
ram[addr + 19] = 0xff; ram[addr + 18] = 0x00;
} else { ram[addr + 19] = 0xff;
ram[addr + 18] = 0x00; } else {
ram[addr + 19] = 0x00; ram[addr + 18] = 0x00;
} ram[addr + 19] = 0x00;
}
} }
/* IO */ /* IO */