Merge pull request #399 from negativeExponent/updates

misc updates
This commit is contained in:
Autechre
2020-10-27 16:48:04 +01:00
committed by GitHub
26 changed files with 495 additions and 218 deletions

View File

@@ -1046,7 +1046,7 @@ static void retro_set_custom_palette(void)
* Dendy has PAL framerate and resolution, but ~NTSC timings,
* and has 50 dummy scanlines to force 50 fps.
*/
void FCEUD_RegionOverride(unsigned region)
static void FCEUD_RegionOverride(unsigned region)
{
unsigned pal = 0;
unsigned d = 0;
@@ -1071,8 +1071,6 @@ void FCEUD_RegionOverride(unsigned region)
}
dendy = d;
normal_scanlines = dendy ? 290 : 240;
totalscanlines = normal_scanlines + (overclock_enabled ? extrascanlines : 0);
FCEUI_SetVidSystem(pal);
ResetPalette();
}
@@ -1116,7 +1114,6 @@ static void set_apu_channels(int chan)
static void check_variables(bool startup)
{
struct retro_variable var = {0};
bool palette_updated = false;
char key[256];
int i, enable_apu;
@@ -1879,9 +1876,8 @@ static void retro_run_blit(uint8_t *gfx)
void retro_run(void)
{
unsigned i;
uint8_t *gfx;
int32_t ssize = 0;
int32_t i, ssize = 0;
bool updated = false;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
@@ -1948,7 +1944,7 @@ static int checkGG(char c)
static int GGisvalid(const char *code)
{
size_t len = strlen(code);
int i;
uint32 i;
if (len != 6 && len != 8)
return 0;
@@ -1973,7 +1969,6 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
uint8 v;
int c;
int type = 1;
int ret = 0;
if (code == NULL)
return;