mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Add resampler directory setting
This commit is contained in:
parent
d4fcdba6cd
commit
94de11b060
@ -152,6 +152,8 @@ static void check_defaults_dirs(void)
|
||||
path_mkdir(g_defaults.sram_dir);
|
||||
if (*g_defaults.system_dir)
|
||||
path_mkdir(g_defaults.system_dir);
|
||||
if (*g_defaults.resampler_dir)
|
||||
path_mkdir(g_defaults.resampler_dir);
|
||||
}
|
||||
|
||||
bool main_load_content(int argc, char **argv, args_type() args,
|
||||
|
@ -184,6 +184,7 @@ struct defaults
|
||||
char port_dir[PATH_MAX];
|
||||
char shader_dir[PATH_MAX];
|
||||
char savestate_dir[PATH_MAX];
|
||||
char resampler_dir[PATH_MAX];
|
||||
char sram_dir[PATH_MAX];
|
||||
char screenshot_dir[PATH_MAX];
|
||||
char system_dir[PATH_MAX];
|
||||
@ -353,6 +354,7 @@ struct settings
|
||||
char cheat_database[PATH_MAX];
|
||||
char cheat_settings_path[PATH_MAX];
|
||||
|
||||
char resampler_directory[PATH_MAX];
|
||||
char screenshot_directory[PATH_MAX];
|
||||
char system_directory[PATH_MAX];
|
||||
|
||||
|
@ -447,6 +447,7 @@ void config_set_defaults(void)
|
||||
*g_settings.content_history_path = '\0';
|
||||
*g_settings.cheat_database = '\0';
|
||||
*g_settings.cheat_settings_path = '\0';
|
||||
*g_settings.resampler_directory = '\0';
|
||||
*g_settings.screenshot_directory = '\0';
|
||||
*g_settings.system_directory = '\0';
|
||||
*g_settings.extraction_directory = '\0';
|
||||
@ -542,6 +543,10 @@ void config_set_defaults(void)
|
||||
strlcpy(g_settings.screenshot_directory,
|
||||
g_defaults.screenshot_dir,
|
||||
sizeof(g_settings.screenshot_directory));
|
||||
if (*g_defaults.resampler_dir)
|
||||
strlcpy(g_settings.resampler_directory,
|
||||
g_defaults.resampler_dir,
|
||||
sizeof(g_settings.resampler_directory));
|
||||
|
||||
if (*g_defaults.config_path)
|
||||
fill_pathname_expand_special(g_extern.config_path,
|
||||
@ -1072,6 +1077,7 @@ bool config_load_file(const char *path, bool set_defaults)
|
||||
}
|
||||
}
|
||||
|
||||
CONFIG_GET_PATH(resampler_directory, "resampler_directory");
|
||||
CONFIG_GET_PATH(extraction_directory, "extraction_directory");
|
||||
CONFIG_GET_PATH(content_directory, "content_directory");
|
||||
CONFIG_GET_PATH(assets_directory, "assets_directory");
|
||||
@ -1506,6 +1512,8 @@ bool config_save_file(const char *path)
|
||||
g_settings.system_directory : "default");
|
||||
config_set_path(conf, "extraction_directory",
|
||||
g_settings.extraction_directory);
|
||||
config_set_path(conf, "resampler_directory",
|
||||
g_settings.resampler_directory);
|
||||
config_set_string(conf, "audio_resampler", g_settings.audio.resampler);
|
||||
config_set_path(conf, "savefile_directory",
|
||||
*g_extern.savefile_dir ? g_extern.savefile_dir : "default");
|
||||
|
@ -2646,6 +2646,7 @@ rarch_setting_t *setting_data_get_list(void)
|
||||
#ifdef HAVE_OVERLAY
|
||||
CONFIG_DIR(g_extern.overlay_dir, "overlay_directory", "Overlay Directory", g_defaults.overlay_dir, "<default>", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_FLAGS(SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR)
|
||||
#endif
|
||||
CONFIG_DIR(g_settings.resampler_directory, "resampler_directory", "Resampler Directory", "", "<Content dir>", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_FLAGS(SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR)
|
||||
CONFIG_DIR(g_settings.screenshot_directory, "screenshot_directory", "Screenshot Directory", "", "<Content dir>", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_FLAGS(SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR)
|
||||
CONFIG_DIR(g_settings.input.autoconfig_dir, "joypad_autoconfig_dir", "Joypad Autoconfig Directory", "", "<default>", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_FLAGS(SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR)
|
||||
CONFIG_DIR(g_settings.playlist_directory, "playlist_directory", "Playlist Directory", "", "<default>", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_FLAGS(SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user