Skip to content

Commit df20fa3

Browse files
libretroadminLibretroAdmin
authored andcommitted
settings: migrate a batch of extended-row tables to single-source def files
Each table individually performed and gated by tools/settings_migrate_group.py with the standard battery including the platform-profile lanes and the integrated enum consolidation stage; the batch is squashed for review convenience.
1 parent 47f22c6 commit df20fa3

9 files changed

Lines changed: 713 additions & 80 deletions

configuration.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,8 @@ static struct config_bool_setting *populate_settings_bool(
19541954
#include "settings/settings_def_video_fullscreen.h"
19551955
#define SETTINGS_DEF_CONFIG_PASS
19561956
#include "settings/settings_def_video_sync.h"
1957+
#include "settings/settings_def_refresh_autoswitch.h"
1958+
#include "settings/settings_def_audio_skew.h"
19571959
#include "settings/settings_def_wifi.h"
19581960
#ifdef HAVE_MIST
19591961
#include "settings/settings_def_steam_presence.h"
@@ -2581,6 +2583,8 @@ static struct config_float_setting *populate_settings_float(
25812583
#include "settings/settings_def_video_fullscreen.h"
25822584
#define SETTINGS_DEF_CONFIG_PASS
25832585
#include "settings/settings_def_video_sync.h"
2586+
#include "settings/settings_def_refresh_autoswitch.h"
2587+
#include "settings/settings_def_audio_skew.h"
25842588
#include "settings/settings_def_wifi.h"
25852589
#ifdef HAVE_MIST
25862590
#include "settings/settings_def_steam_presence.h"
@@ -3003,15 +3007,13 @@ static struct config_float_setting *populate_settings_float(
30033007
SETTING_FLOAT("fastforward_ratio", &settings->floats.fastforward_ratio, true, DEFAULT_FASTFORWARD_RATIO, false);
30043008

30053009
SETTING_FLOAT("audio_rate_control_delta", &settings->floats.audio_rate_control_delta, true, DEFAULT_RATE_CONTROL_DELTA, false);
3006-
SETTING_FLOAT("audio_max_timing_skew", &settings->floats.audio_max_timing_skew, true, DEFAULT_MAX_TIMING_SKEW, false);
30073010
SETTING_FLOAT("audio_volume", &settings->floats.audio_volume, true, DEFAULT_AUDIO_VOLUME, false);
30083011
#ifdef HAVE_AUDIOMIXER
30093012
SETTING_FLOAT("audio_mixer_volume", &settings->floats.audio_mixer_volume, true, DEFAULT_AUDIO_MIXER_VOLUME, false);
30103013
#endif
30113014

30123015
SETTING_FLOAT("video_aspect_ratio", &settings->floats.video_aspect_ratio, true, DEFAULT_ASPECT_RATIO, false);
30133016
SETTING_FLOAT("video_refresh_rate", &settings->floats.video_refresh_rate, true, DEFAULT_REFRESH_RATE, false);
3014-
SETTING_FLOAT("video_autoswitch_pal_threshold", &settings->floats.video_autoswitch_pal_threshold, true, DEFAULT_AUTOSWITCH_PAL_THRESHOLD, false);
30153017
SETTING_FLOAT("crt_video_refresh_rate", &settings->floats.crt_video_refresh_rate, true, DEFAULT_CRT_REFRESH_RATE, false);
30163018
SETTING_FLOAT("video_message_pos_x", &settings->floats.video_msg_pos_x, true, DEFAULT_MESSAGE_POS_OFFSET_X, false);
30173019
SETTING_FLOAT("video_message_pos_y", &settings->floats.video_msg_pos_y, true, DEFAULT_MESSAGE_POS_OFFSET_Y, false);
@@ -3112,7 +3114,6 @@ static struct config_uint_setting *populate_settings_uint(
31123114

31133115
SETTING_UINT("audio_out_rate", &settings->uints.audio_output_sample_rate, true, DEFAULT_OUTPUT_RATE, false);
31143116
SETTING_UINT("audio_latency", &settings->uints.audio_latency, false, 0 /* TODO */, false);
3115-
SETTING_UINT("audio_block_frames", &settings->uints.audio_block_frames, true, 0, false);
31163117

31173118

31183119
#ifdef HAVE_MICROPHONE
@@ -3128,7 +3129,6 @@ static struct config_uint_setting *populate_settings_uint(
31283129
SETTING_UINT("custom_viewport_x", (unsigned*)&settings->video_vp_custom.x, false, 0 /* TODO */, false);
31293130
SETTING_UINT("custom_viewport_y", (unsigned*)&settings->video_vp_custom.y, false, 0 /* TODO */, false);
31303131
SETTING_UINT("aspect_ratio_index", &settings->uints.video_aspect_ratio_idx, true, DEFAULT_ASPECT_RATIO_IDX, false);
3131-
SETTING_UINT("video_autoswitch_refresh_rate", &settings->uints.video_autoswitch_refresh_rate, true, DEFAULT_AUTOSWITCH_REFRESH_RATE, false);
31323132
SETTING_UINT("video_windowed_position_x", &settings->uints.window_position_x, true, 0, false);
31333133
SETTING_UINT("video_windowed_position_y", &settings->uints.window_position_y, true, 0, false);
31343134
SETTING_UINT("video_windowed_position_width", &settings->uints.window_position_width, true, DEFAULT_WINDOW_WIDTH, false);
@@ -3181,6 +3181,8 @@ static struct config_uint_setting *populate_settings_uint(
31813181
#include "settings/settings_def_video_fullscreen.h"
31823182
#define SETTINGS_DEF_CONFIG_PASS
31833183
#include "settings/settings_def_video_sync.h"
3184+
#include "settings/settings_def_refresh_autoswitch.h"
3185+
#include "settings/settings_def_audio_skew.h"
31843186
#include "settings/settings_def_wifi.h"
31853187
#ifdef HAVE_MIST
31863188
#include "settings/settings_def_steam_presence.h"
@@ -3761,6 +3763,8 @@ static struct config_int_setting *populate_settings_int(
37613763
#include "settings/settings_def_video_fullscreen.h"
37623764
#define SETTINGS_DEF_CONFIG_PASS
37633765
#include "settings/settings_def_video_sync.h"
3766+
#include "settings/settings_def_refresh_autoswitch.h"
3767+
#include "settings/settings_def_audio_skew.h"
37643768
#include "settings/settings_def_wifi.h"
37653769
#ifdef HAVE_MIST
37663770
#include "settings/settings_def_steam_presence.h"
@@ -4189,6 +4193,8 @@ static struct config_int_setting *populate_settings_int(
41894193
#include "settings/settings_def_video_fullscreen.h"
41904194
#define SETTINGS_DEF_CONFIG_PASS
41914195
#include "settings/settings_def_video_sync.h"
4196+
#include "settings/settings_def_refresh_autoswitch.h"
4197+
#include "settings/settings_def_audio_skew.h"
41924198
#include "settings/settings_def_wifi.h"
41934199
#ifdef HAVE_MIST
41944200
#include "settings/settings_def_steam_presence.h"

intl/msg_hash_lbl.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ MSG_HASH(
6767
MENU_ENUM_LABEL_NETPLAY_TAB,
6868
MENU_ENUM_LABEL_NETPLAY_TAB_STR
6969
)
70-
MSG_HASH(
71-
MENU_ENUM_LABEL_AUDIO_BLOCK_FRAMES,
72-
MENU_ENUM_LABEL_AUDIO_BLOCK_FRAMES_STR
73-
)
7470
MSG_HASH(
7571
MENU_ENUM_LABEL_AUDIO_DEVICE,
7672
MENU_ENUM_LABEL_AUDIO_DEVICE_STR
@@ -230,10 +226,6 @@ MSG_HASH(
230226
MENU_ENUM_LABEL_AUDIO_LATENCY,
231227
MENU_ENUM_LABEL_AUDIO_LATENCY_STR
232228
)
233-
MSG_HASH(
234-
MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW,
235-
MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW_STR
236-
)
237229
MSG_HASH(
238230
MENU_ENUM_LABEL_AUDIO_MUTE,
239231
MENU_ENUM_LABEL_AUDIO_MUTE_STR
@@ -3431,14 +3423,6 @@ MSG_HASH(
34313423
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_POLLED,
34323424
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_POLLED_STR
34333425
)
3434-
MSG_HASH(
3435-
MENU_ENUM_LABEL_VIDEO_AUTOSWITCH_REFRESH_RATE,
3436-
MENU_ENUM_LABEL_VIDEO_AUTOSWITCH_REFRESH_RATE_STR
3437-
)
3438-
MSG_HASH(
3439-
MENU_ENUM_LABEL_VIDEO_AUTOSWITCH_PAL_THRESHOLD,
3440-
MENU_ENUM_LABEL_VIDEO_AUTOSWITCH_PAL_THRESHOLD_STR
3441-
)
34423426
MSG_HASH(
34433427
MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER,
34443428
MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER_STR

intl/msg_hash_us.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ static const char *const msg_hash_us_lbl_strs[] = {
559559
#define S_ACTION_EX_NS(T, n, sd, ok, rp, c, us) n,
560560
#include "../settings/settings_def_video_fullscreen.h"
561561
#include "../settings/settings_def_video_sync.h"
562+
#include "../settings/settings_def_refresh_autoswitch.h"
563+
#include "../settings/settings_def_audio_skew.h"
562564
#include "../settings/settings_def_wifi.h"
563565
#include "../settings/settings_def_steam_presence.h"
564566
#include "../settings/settings_def_playlist_sorting.h"
@@ -812,6 +814,8 @@ static const uint32_t msg_hash_us_lbl_ids[] = {
812814
#define S_ACTION_EX_NS(T, n, sd, ok, rp, c, us) (uint32_t)MENU_ENUM_LABEL_##T,
813815
#include "../settings/settings_def_video_fullscreen.h"
814816
#include "../settings/settings_def_video_sync.h"
817+
#include "../settings/settings_def_refresh_autoswitch.h"
818+
#include "../settings/settings_def_audio_skew.h"
815819
#include "../settings/settings_def_wifi.h"
816820
#include "../settings/settings_def_steam_presence.h"
817821
#include "../settings/settings_def_playlist_sorting.h"

0 commit comments

Comments
 (0)