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