diff --git a/config.def.h b/config.def.h index 78ac7d8191..f0073ee3a9 100644 --- a/config.def.h +++ b/config.def.h @@ -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. */ diff --git a/configuration.c b/configuration.c index 3b3499cfe3..581ea58281 100644 --- a/configuration.c +++ b/configuration.c @@ -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); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 3820cd29d0..18d31fc96e 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -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,