cleanup for psp

This commit is contained in:
kub 2021-03-21 23:04:14 +01:00
parent d5bc6ef7b5
commit c28911fdb1
3 changed files with 4 additions and 129 deletions

View file

@ -669,12 +669,6 @@ int emu_read_config(const char *rom_fname, int no_defaults)
PicoIn.overclockM68k = currentConfig.overclock_68k;
// some sanity checks
#ifdef PSP
/* TODO: mv to plat_validate_config() */
if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200;
if (currentConfig.gamma < -4 || currentConfig.gamma > 16) currentConfig.gamma = 0;
if (currentConfig.gamma2 < 0 || currentConfig.gamma2 > 2) currentConfig.gamma2 = 0;
#endif
if (currentConfig.volume < 0 || currentConfig.volume > 99)
currentConfig.volume = 50;