Skip to content

Commit

Permalink
3DS: Remember to init cfg:u when querying model (fixes #2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed May 15, 2021
1 parent 0ce2972 commit 8089cf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -3,6 +3,7 @@ Emulation fixes:
- GB Video: Clear VRAM on reset (fixes mgba.io/i/2152)
- GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149)
Other fixes:
- 3DS: Fix disabling "wide" mode on 2DS (fixes mgba.io/i/2167)
- Core: Fix memory leak in opening games from the library
- GB Core: Fix GBC colors setting breaking default model overrides (fixes mgba.io/i/2161)
- Qt: Fix infrequent deadlock when using sync to video
Expand Down
2 changes: 2 additions & 0 deletions src/platform/3ds/main.c
Expand Up @@ -845,10 +845,12 @@ int main() {
gfxInit(GSP_BGR8_OES, GSP_BGR8_OES, true);

u8 model = 0;
cfguInit();
CFGU_GetSystemModel(&model);
if (model != 3 /* o2DS */) {
gfxSetWide(true);
}
cfguExit();

if (!_initGpu()) {
outputTexture[0].data = 0;
Expand Down

0 comments on commit 8089cf8

Please sign in to comment.