mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-22 23:39:50 +00:00
Rename variables
This commit is contained in:
parent
3caaf33553
commit
f013283755
10
libretro.cpp
10
libretro.cpp
@ -26,8 +26,6 @@
|
||||
#endif
|
||||
|
||||
static bool old_cdimagecache = false;
|
||||
extern int setting_pce_fast_initial_scanline;
|
||||
extern int setting_pce_fast_last_scanline;
|
||||
|
||||
extern MDFNGI EmulatedPCE_Fast;
|
||||
MDFNGI *MDFNGameInfo = &EmulatedPCE_Fast;
|
||||
@ -1397,8 +1395,8 @@ void retro_init(void)
|
||||
else
|
||||
perf_get_cpu_features_cb = NULL;
|
||||
|
||||
setting_pce_fast_initial_scanline = 0;
|
||||
setting_pce_fast_last_scanline = 242;
|
||||
setting_initial_scanline = 0;
|
||||
setting_last_scanline = 242;
|
||||
|
||||
check_system_specs();
|
||||
}
|
||||
@ -1477,14 +1475,14 @@ static void check_variables(void)
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
{
|
||||
setting_pce_fast_initial_scanline = atoi(var.value);
|
||||
setting_initial_scanline = atoi(var.value);
|
||||
}
|
||||
|
||||
var.key = "pce_last_scanline";
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
{
|
||||
setting_pce_fast_last_scanline = atoi(var.value);
|
||||
setting_last_scanline = atoi(var.value);
|
||||
}
|
||||
|
||||
bool do_cdsettings = false;
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include <string>
|
||||
#include "settings.h"
|
||||
|
||||
int setting_pce_fast_initial_scanline = 0;
|
||||
int setting_pce_fast_last_scanline = 242;
|
||||
int setting_initial_scanline = 0;
|
||||
int setting_last_scanline = 242;
|
||||
int setting_pce_fast_nospritelimit = 0;
|
||||
int setting_pce_fast_cddavolume = 100;
|
||||
int setting_pce_fast_adpcmvolume = 100;
|
||||
@ -48,9 +48,9 @@ uint64 MDFN_GetSettingUI(const char *name)
|
||||
if (!strcmp("pce_fast.ocmultiplier", name)) /* make configurable */
|
||||
return 1;
|
||||
if (!strcmp("pce_fast.slstart", name))
|
||||
return setting_pce_fast_initial_scanline;
|
||||
return setting_initial_scanline;
|
||||
if (!strcmp("pce_fast.slend", name))
|
||||
return setting_pce_fast_last_scanline;
|
||||
return setting_last_scanline;
|
||||
|
||||
fprintf(stderr, "unhandled setting UI: %s\n", name);
|
||||
return 0;
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
|
||||
#if defined(WANT_PCE_FAST_EMU)
|
||||
extern int setting_initial_scanline;
|
||||
extern int setting_last_scanline;
|
||||
extern int setting_pce_fast_nospritelimit;
|
||||
extern int setting_pce_fast_cddavolume;
|
||||
extern int setting_pce_fast_adpcmvolume;
|
||||
|
Loading…
Reference in New Issue
Block a user