From 98beff897928d4489baa101d6a345cac5bd6adb9 Mon Sep 17 00:00:00 2001 From: Rick Gaiser Date: Tue, 6 Feb 2024 22:43:21 +0100 Subject: [PATCH] loader: use accurate reads by default can be disabled from the command line --- ee/loader/src/compat.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ee/loader/src/compat.c b/ee/loader/src/compat.c index 4027970..f6c1ef1 100644 --- a/ee/loader/src/compat.c +++ b/ee/loader/src/compat.c @@ -33,13 +33,20 @@ static const gamecompat_t default_game_compat[] = { uint32_t get_compat(const char *id) { + // Default compatibility mode + uint32_t compat = COMPAT_MODE_1; + + // Game specific compatibility mode const gamecompat_t *p = &default_game_compat[0]; while (p->game != NULL) { - if (strcmp(id, p->game) == 0) - return p->flags; + if (strcmp(id, p->game) == 0) { + compat |= p->flags; + break; + } p++; } - return 0; + + return compat; }