3DS: Remember to init cfg:u when querying model (fixes #2167)

This commit is contained in:
Vicki Pfau 2021-05-14 23:04:12 -07:00
parent 0ce2972fe6
commit 8089cf8f5f
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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;