naomi: override Region settings if current region BIOS isn't found

This commit is contained in:
Flyinghead 2022-04-20 14:16:15 +02:00
parent 50f5dabf4a
commit 902fc2cbe8
1 changed files with 3 additions and 0 deletions

View File

@ -80,7 +80,10 @@ static bool loadBios(const char *filename, Archive *child_archive, Archive *pare
for (int romid = 0; bios->blobs[romid].filename != NULL; romid++) for (int romid = 0; bios->blobs[romid].filename != NULL; romid++)
{ {
if (region == -1) if (region == -1)
{
region = bios->blobs[romid].region; region = bios->blobs[romid].region;
config::Region.override(region);
}
else else
{ {
if (bios->blobs[romid].region != (u32)region) if (bios->blobs[romid].region != (u32)region)