X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Femu.c;h=6a8c940b22726e2a2cfb8df81fb1025a52f5bba4;hb=9db6a54485501b56b0f2f5db4d093c38fe495bda;hp=7f375a3c593bcbe74eee221ab927a323858dfbb7;hpb=f7e40c9b2e6d5ca446cb8c2edf9e7601dd9c97cd;p=picodrive.git diff --git a/platform/common/emu.c b/platform/common/emu.c index 7f375a3..6a8c940 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -973,6 +973,9 @@ void emu_set_fastforward(int set_on) currentConfig.EmuOpt = set_EmuOpt; PsndRerate(1); is_on = 0; + // mainly to unbreak pcm + if (PicoAHW & PAHW_MCD) + pcd_state_loaded(); } } @@ -1138,6 +1141,8 @@ static void run_events_ui(unsigned int which) emu_status_msg("SAVE SLOT %i [%s]", state_slot, emu_check_save_file(state_slot, NULL) ? "USED" : "FREE"); } + if (which & PEV_RESET) + emu_reset_game(); if (which & PEV_MENU) engineState = PGS_Menu; } @@ -1427,7 +1432,7 @@ void emu_loop(void) printf("%s\n", fpsbuff); #else if (currentConfig.EmuOpt & EOPT_SHOW_FPS) - sprintf(fpsbuff, "%02i/%02i ", frames_shown, frames_done); + snprintf(fpsbuff, 8, "%02i/%02i ", frames_shown, frames_done); #endif frames_shown = frames_done = 0; timestamp_fps_x3 += ms_to_ticks(1000) * 3;