From 2b02fde5cb314d803a1aafde7d692aa4b0f10b0e Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Wed, 1 Mar 2023 20:00:39 -0500 Subject: [PATCH] reorder startup to core/game/config there was an issue with the original order and cores that poll certain options much earlier than the rest (ie. gambatte and its bootloader option) --- src/minarch/main.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/minarch/main.c b/src/minarch/main.c index dc08f7e..8d5128e 100644 --- a/src/minarch/main.c +++ b/src/minarch/main.c @@ -3919,21 +3919,22 @@ int main(int argc , char* argv[]) { InitSettings(); Core_open(core_path, tag_name); + Game_open(rom_path); + + // restore configs + Config_read(); + setOverclock(overclock); + GFX_setVsync(prevent_tearing); + Core_init(); // TODO: find a better place to do this // mixing static and loaded data is messy options_menu.items[1].desc = (char*)core.version; - Game_open(rom_path); Core_load(); Input_init(NULL); - - // restore configs - Config_read(); - setOverclock(overclock); - GFX_setVsync(prevent_tearing); - + SND_init(core.sample_rate, core.fps); Menu_init();