mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-23 16:00:08 +00:00
commit
698ccafd29
12
libretro.cpp
12
libretro.cpp
@ -1312,7 +1312,14 @@ static void check_variables(void)
|
||||
else if (strcmp(var.value, "enabled") == 0)
|
||||
setting_pce_fast_nospritelimit = 1;
|
||||
}
|
||||
|
||||
|
||||
var.key = "pce_ocmultiplier";
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
{
|
||||
setting_pce_overclocked = atoi(var.value);
|
||||
}
|
||||
|
||||
var.key = "pce_hoverscan";
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
@ -1750,8 +1757,9 @@ void retro_set_environment(retro_environment_t cb)
|
||||
static const struct retro_variable vars[] = {
|
||||
{ "pce_fast_cdimagecache", "CD Image Cache (Restart); disabled|enabled" },
|
||||
{ "pce_nospritelimit", "No Sprite Limit (Restart); disabled|enabled" },
|
||||
{ "pce_ocmultiplier", "CPU Overclock Multiplier (Restart); 1|2|3|4|5|6|7|8|9|10|20|30|40|50" },
|
||||
{ "pce_hoverscan", "Horizontal Overscan; disabled|enabled" },
|
||||
{ "pce_initial_scanline", "Initial scanline; 3|4|5|6|7|8|9|10|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|0|1|2" },
|
||||
{ "pce_initial_scanline", "Initial scanline; 3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|0|1|2" },
|
||||
{ "pce_last_scanline", "Last scanline; 242|208|209|210|211|212|213|214|215|216|217|218|219|220|221|222|223|224|225|226|227|228|229|230|231|232|233|234|235|236|237|238|239|240|241" },
|
||||
{ "pce_cddavolume", "(CD) CDDA Volume %; 100|110|120|130|140|150|160|170|180|190|200|0|10|20|30|40|50|60|70|80|90" },
|
||||
{ "pce_adpcmvolume", "(CD) ADPCM Volume %; 100|110|120|130|140|150|160|170|180|190|200|0|10|20|30|40|50|60|70|80|90" },
|
||||
|
@ -25,6 +25,7 @@ int setting_initial_scanline = 0;
|
||||
int setting_last_scanline = 242;
|
||||
int setting_pce_hoverscan = 0;
|
||||
int setting_pce_fast_nospritelimit = 0;
|
||||
int setting_pce_overclocked = 1;
|
||||
int setting_pce_fast_cddavolume = 100;
|
||||
int setting_pce_fast_adpcmvolume = 100;
|
||||
int setting_pce_fast_cdpsgvolume = 100;
|
||||
@ -40,8 +41,8 @@ uint64 MDFN_GetSettingUI(const char *name)
|
||||
return setting_pce_fast_cdpsgvolume;
|
||||
if (!strcmp("pce_fast.cdspeed", name))
|
||||
return setting_pce_fast_cdspeed;
|
||||
if (!strcmp("pce_fast.ocmultiplier", name)) /* make configurable */
|
||||
return 1;
|
||||
if (!strcmp("pce_fast.ocmultiplier", name))
|
||||
return setting_pce_overclocked;
|
||||
if (!strcmp("pce_fast.slstart", name))
|
||||
return setting_initial_scanline;
|
||||
if (!strcmp("pce_fast.slend", name))
|
||||
|
@ -6,6 +6,7 @@
|
||||
extern int setting_initial_scanline;
|
||||
extern int setting_last_scanline;
|
||||
extern int setting_pce_fast_nospritelimit;
|
||||
extern int setting_pce_overclocked;
|
||||
extern int setting_pce_hoverscan;
|
||||
extern int setting_pce_fast_cddavolume;
|
||||
extern int setting_pce_fast_adpcmvolume;
|
||||
|
Loading…
Reference in New Issue
Block a user