Be consistent about the type of check_frames. Fixes warnings.

This commit is contained in:
Gregor Richards 2016-12-19 14:54:13 -05:00
parent 5ca7344436
commit 30beee6004
3 changed files with 3 additions and 3 deletions

View File

@ -805,7 +805,7 @@ static const bool netplay_nat_traversal = false;
static const unsigned netplay_delay_frames = 16;
static const unsigned netplay_check_frames = 30;
static const int netplay_check_frames = 30;
/* On save state load, block SRAM from being overwritten.
* This could potentially lead to buggy games. */

View File

@ -948,7 +948,7 @@ static int populate_settings_int(settings_t *settings, struct config_int_setting
SETTING_INT("state_slot", (unsigned*)&settings->state_slot, false, 0 /* TODO */, false);
#ifdef HAVE_NETWORKING
SETTING_INT("netplay_ip_port", &settings->netplay.port, true, RARCH_DEFAULT_PORT, false);
SETTING_INT("netplay_check_frames", &settings->netplay.check_frames, true, netplay_check_frames, false);
SETTING_INT("netplay_check_frames", (unsigned*)&settings->netplay.check_frames, true, netplay_check_frames, false);
#endif
#ifdef HAVE_LANGEXTRA
SETTING_INT("user_language", &settings->user_language, true, RETRO_LANGUAGE_ENGLISH, false);

View File

@ -5610,7 +5610,7 @@ static bool setting_append_list(
general_read_handler,
SD_FLAG_NONE);
CONFIG_UINT(
CONFIG_INT(
list, list_info,
&settings->netplay.check_frames,
MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES,