Detect PCXT variants in is_pcxt (#1081)

Expand is_pcxt() to recognize Tandy1000 and PCjr as PCXT-class systems, while keeping the cached detection behavior.
This commit is contained in:
Aitor Gómez García
2026-01-08 06:21:33 +01:00
committed by GitHub
parent 7ac98c1068
commit e8b3746b44

View File

@@ -283,7 +283,16 @@ char is_archie()
static int is_pcxt_type = 0;
char is_pcxt()
{
if (!is_pcxt_type) is_pcxt_type = strcasecmp(orig_name, "PCXT") ? 2 : 1;
if (!is_pcxt_type)
{
if (!strcasecmp(orig_name, "PCXT") ||
!strcasecmp(orig_name, "Tandy1000") ||
!strcasecmp(orig_name, "PCjr")
)
is_pcxt_type = 1;
else
is_pcxt_type = 2;
}
return (is_pcxt_type == 1);
}