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)
This commit is contained in:
parent
2402906527
commit
2b02fde5cb
1 changed files with 8 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue