Skip to content

Commit

Permalink
loader: use accurate reads by default
Browse files Browse the repository at this point in the history
can be disabled from the command line
  • Loading branch information
rickgaiser committed Feb 6, 2024
1 parent 0335193 commit 98beff8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ee/loader/src/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 98beff8

Please sign in to comment.