X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fmenu.c;h=828cfbaad8737edb55b7291884fd9fe00c3967c9;hb=f5f5f5dddc4ab9b4d613fda8e450685689cbc8c7;hp=eda6ed184d703402fe4087aa53bd9a3206895cb0;hpb=fae38d7aa986b5c0c156808b12e155de8fc0713d;p=pcsx_rearmed.git diff --git a/frontend/menu.c b/frontend/menu.c index eda6ed18..828cfbaa 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -2015,9 +2015,6 @@ static int reset_game(void) ClosePlugins(); OpenPlugins(); SysReset(); - if (CheckCdrom() != -1) { - LoadCdrom(); - } return 0; } @@ -2046,13 +2043,17 @@ static int reload_plugins(const char *cdimg) static int run_bios(void) { + boolean origSlowBoot = Config.SlowBoot; + if (bios_sel == 0) return -1; ready_to_go = 0; if (reload_plugins(NULL) != 0) return -1; + Config.SlowBoot = 1; SysReset(); + Config.SlowBoot = origSlowBoot; ready_to_go = 1; return 0; @@ -2656,10 +2657,11 @@ void menu_prepare_emu(void) psxCpu = &psxInt; #endif if (psxCpu != prev_cpu) { + prev_cpu->Notify(R3000ACPU_NOTIFY_BEFORE_SAVE, NULL); prev_cpu->Shutdown(); psxCpu->Init(); - // note that this does not really reset, just clears drc caches psxCpu->Reset(); + psxCpu->Notify(R3000ACPU_NOTIFY_AFTER_LOAD, NULL); } menu_sync_config();