X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpsp%2Fmenu.c;h=b2b3fc5fa55c9a7cecaa9b1900adc3f90e93fe19;hb=70357ce52578dee0dd3b3663902cf872c3d34258;hp=c878f405594d8082c5687d776f21236f9dcf7fd0;hpb=7d4906bfc93ced40a544534f433f06b00add52b0;p=picodrive.git diff --git a/platform/psp/menu.c b/platform/psp/menu.c index c878f40..b2b3fc5 100644 --- a/platform/psp/menu.c +++ b/platform/psp/menu.c @@ -1032,6 +1032,7 @@ menu_entry opt_entries[] = { "Use SRAM/BRAM savestates", MB_ONOFF, MA_OPT_SRAM_STATES, ¤tConfig.EmuOpt, 0x0001, 0, 0, 1 }, { NULL, MB_NONE, MA_OPT_CONFIRM_STATES,NULL, 0, 0, 0, 1 }, { "Save slot", MB_RANGE, MA_OPT_SAVE_SLOT, &state_slot, 0, 0, 9, 1 }, + { NULL, MB_NONE, MA_OPT_CPU_CLOCKS, NULL, 0, 0, 0, 1 }, { "[Sega/Mega CD options]", MB_NONE, MA_OPT_SCD_OPTS, NULL, 0, 0, 0, 1 }, { "[advanced options]", MB_NONE, MA_OPT_ADV_OPTS, NULL, 0, 0, 0, 1 }, { NULL, MB_NONE, MA_OPT_SAVECFG, NULL, 0, 0, 0, 1 }, @@ -1102,6 +1103,9 @@ static void menu_opt_cust_draw(const menu_entry *entry, int x, int y, void *para } text_out16(x, y, "Confirm savestate %s", str); break; + case MA_OPT_CPU_CLOCKS: + text_out16(x, y, "CPU/bus clock %3i/%3iMHz", currentConfig.CPUclock, currentConfig.CPUclock/2); + break; case MA_OPT_SAVECFG: str24[0] = 0; if (config_slot != 0) sprintf(str24, " (profile: %i)", config_slot); @@ -1250,6 +1254,14 @@ static int menu_loop_options(void) } else {state_slot--; if (state_slot < 0) state_slot = 9; } break; + case MA_OPT_CPU_CLOCKS: + while ((inp = psp_pad_read(0)) & (BTN_LEFT|BTN_RIGHT)) { + currentConfig.CPUclock += (inp & BTN_LEFT) ? -1 : 1; + if (currentConfig.CPUclock < 19) currentConfig.CPUclock = 19; + if (currentConfig.CPUclock > 333) currentConfig.CPUclock = 333; + draw_menu_options(menu_sel); // will wait vsync + } + break; case MA_OPT_SAVECFG: case MA_OPT_SAVECFG_GAME: case MA_OPT_LOADCFG: