From e8b3746b446eba32cccd4e2de08ef06096fd2c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 8 Jan 2026 06:21:33 +0100 Subject: [PATCH] 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. --- user_io.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/user_io.cpp b/user_io.cpp index 3a6a1cb..6d4dd36 100644 --- a/user_io.cpp +++ b/user_io.cpp @@ -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); }