File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,11 @@ void Pico32xStateLoaded(int is_early)
658
658
659
659
void Pico32xPrepare (void )
660
660
{
661
- Pico32xSetClocks (PICO_MSH2_HZ , PICO_SSH2_HZ );
661
+ // fallback in case it was missing in saved config
662
+ if (msh2 .mult_m68k_to_sh2 == 0 || msh2 .mult_sh2_to_m68k == 0 )
663
+ Pico32xSetClocks (PICO_MSH2_HZ , 0 );
664
+ if (ssh2 .mult_m68k_to_sh2 == 0 || ssh2 .mult_sh2_to_m68k == 0 )
665
+ Pico32xSetClocks (0 , PICO_SSH2_HZ );
662
666
663
667
sh2_execute_prepare (& msh2 , PicoIn .opt & POPT_EN_DRC );
664
668
sh2_execute_prepare (& ssh2 , PicoIn .opt & POPT_EN_DRC );
Original file line number Diff line number Diff line change @@ -542,6 +542,8 @@ static int mh_opt_sh2cycles(int id, int keys)
542
542
else if (* khz > 0x7fffffff / 1000 )
543
543
* khz = 0x7fffffff / 1000 ;
544
544
545
+ Pico32xSetClocks (currentConfig .msh2_khz * 1000 , currentConfig .ssh2_khz * 1000 );
546
+
545
547
return 0 ;
546
548
}
547
549
@@ -573,8 +575,6 @@ static int menu_loop_32x_options(int id, int keys)
573
575
me_enable (e_menu_32x_options , MA_32XOPT_RENDERER , 0 );
574
576
me_loop_d (e_menu_32x_options , & sel , menu_draw_prep , NULL );
575
577
576
- Pico32xSetClocks (currentConfig .msh2_khz * 1000 , currentConfig .msh2_khz * 1000 );
577
-
578
578
return 0 ;
579
579
}
580
580
You can’t perform that action at this time.
0 commit comments