mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
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:
committed by
GitHub
parent
7ac98c1068
commit
e8b3746b44
11
user_io.cpp
11
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user