From 89f9a978fc9a42c91d802e62c369451718c1a676 Mon Sep 17 00:00:00 2001 From: d_m Date: Mon, 18 Dec 2023 22:58:21 -0500 Subject: [PATCH] ignore unknown extension UUIDs --- src/devices/system.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/devices/system.c b/src/devices/system.c index 53655d9..3f55aad 100644 --- a/src/devices/system.c +++ b/src/devices/system.c @@ -132,13 +132,14 @@ system_expansion_uxn38_device(Uxn *u, Uint8 *ram, Uint16 addr) { Uint8 dev_id = ram[addr + 1]; Uint8 *uuid = &ram[addr + 2]; - if(dev_id == 0x10 && uuid_eq(uuid, console_uuid) != 0) { - ram[addr + 18] = 0x00; - ram[addr + 19] = 0xff; - } else { - ram[addr + 18] = 0x00; - ram[addr + 19] = 0x00; - } + if(uuid_eq(uuid, console_uuid) != 0) + if(dev_id == 0x10) { + ram[addr + 18] = 0x00; + ram[addr + 19] = 0xff; + } else { + ram[addr + 18] = 0x00; + ram[addr + 19] = 0x00; + } } /* IO */