From 8089cf8f5ff5d7a5462e9afbe8e012f0754d600e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 14 May 2021 23:04:12 -0700 Subject: [PATCH] 3DS: Remember to init cfg:u when querying model (fixes #2167) --- CHANGES | 1 + src/platform/3ds/main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index cd086e762..b73ec7831 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index e9626fa77..a9ec0c25f 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -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;