Silence warnings and fixes

- Silence warning [-Wmaybe-uninitialized]
- m359: Fix value overflow
- m534: Silence warnings
- mmc1: Silence warnings
- Silence more warnings
This commit is contained in:
negativeExponent
2020-02-17 10:11:55 +08:00
parent ddb1fe786a
commit f9fb33d8e8
9 changed files with 19 additions and 27 deletions

View File

@@ -81,7 +81,6 @@ static unsigned turbo_delay = 0;
static unsigned input_type[MAX_PLAYERS + 1] = {0}; /* 4-players + famicom expansion */
enum RetroZapperInputModes{RetroLightgun, RetroMouse, RetroPointer};
static enum RetroZapperInputModes zappermode = RetroLightgun;
static unsigned show_advance_sound_options;
/* emulator-specific variables */
@@ -2215,7 +2214,7 @@ bool retro_load_game(const struct retro_game_info *game)
FCEU_printf(" Loading custom palette: %s%cnes.pal\n", dir, slash);
/* Save region and dendy mode for region-auto detect */
systemRegion = (dendy << 1) | retro_get_region() & 1;
systemRegion = (dendy << 1) | (retro_get_region() & 1);
retro_set_custom_palette();
FCEUD_SoundToggle();