[Highly Complete Input] Reject unsupported systems

Reject system identifier numbers that aren't supported, outright, rather
than waiting until the decoder is initialized.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-17 06:39:46 -07:00
parent 39f4d09c1a
commit f696dc2205
1 changed files with 16 additions and 0 deletions

View File

@ -1175,6 +1175,22 @@ static int usf_info(void *context, const char *name, const char *value) {
if(type <= 0)
return NO;
switch(type) {
case 1:
case 2:
case 0x11:
case 0x12:
case 0x21:
case 0x22:
case 0x24:
case 0x25:
case 0x41:
break;
default:
return NO;
}
emulatorCore = nil;
emulatorExtra = nil;