mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: start reworking sheduling
This commit is contained in:
parent
9b5713af95
commit
ed4402a7df
17 changed files with 180 additions and 163 deletions
|
@ -319,11 +319,14 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
|
|||
return 1;
|
||||
|
||||
case MA_32XOPT_MSH2_CYCLES:
|
||||
case MA_32XOPT_SSH2_CYCLES: {
|
||||
int *mul = (me->id == MA_32XOPT_MSH2_CYCLES) ? &p32x_msh2_multiplier : &p32x_ssh2_multiplier;
|
||||
*mul = ((unsigned int)atoi(val) << SH2_MULTI_SHIFT) / 7670;
|
||||
currentConfig.msh2_khz = atoi(val);
|
||||
Pico32xSetClocks(currentConfig.msh2_khz * 1000, 0);
|
||||
return 1;
|
||||
|
||||
case MA_32XOPT_SSH2_CYCLES:
|
||||
currentConfig.ssh2_khz = atoi(val);
|
||||
Pico32xSetClocks(0, currentConfig.ssh2_khz * 1000);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* PSP */
|
||||
case MA_OPT3_SCALE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue