Change setting

This commit is contained in:
twinaphex 2016-01-21 03:49:06 +01:00
parent 99fe70a189
commit 112f564a8f
5 changed files with 7 additions and 10 deletions

View File

@ -692,7 +692,7 @@ static void config_set_defaults(void)
settings->input.libretro_device[i] = RETRO_DEVICE_JOYPAD;
}
settings->core.set_supports_no_game_enable = true;
settings->set_supports_no_game_enable = true;
video_driver_ctl(RARCH_DISPLAY_CTL_RESET_CUSTOM_VIEWPORT, NULL);
@ -1388,7 +1388,7 @@ static bool config_load_file(const char *path, bool set_defaults)
CONFIG_GET_BOOL_BASE(conf, settings, video.force_srgb_disable, "video_force_srgb_disable");
CONFIG_GET_BOOL_BASE(conf, settings, core.set_supports_no_game_enable, "core_set_supports_no_game_enable");
CONFIG_GET_BOOL_BASE(conf, settings, set_supports_no_game_enable, "core_set_supports_no_game_enable");
#ifdef RARCH_CONSOLE
/* TODO - will be refactored later to make it more clean - it's more
@ -2900,7 +2900,7 @@ bool config_save_file(const char *path)
config_set_int(conf, "keyboard_gamepad_mapping_type", settings->input.keyboard_gamepad_mapping_type);
config_set_bool(conf, "core_set_supports_no_game_enable",
settings->core.set_supports_no_game_enable);
settings->set_supports_no_game_enable);
config_set_int(conf, "menu_ok_btn", settings->menu_ok_btn);
config_set_int(conf, "menu_cancel_btn", settings->menu_cancel_btn);

View File

@ -285,10 +285,7 @@ typedef struct settings
bool buildbot_auto_extract_archive;
} network;
struct
{
bool set_supports_no_game_enable;
} core;
bool set_supports_no_game_enable;
struct
{

View File

@ -677,7 +677,7 @@ static bool init_content_file_set_attribs(
attr.i |= (!system->no_content) << 2;
if (content_ctl(CONTENT_CTL_DOES_NOT_NEED_CONTENT, NULL)
&& settings->core.set_supports_no_game_enable)
&& settings->set_supports_no_game_enable)
string_list_append(content, "", attr);
else
{

View File

@ -681,7 +681,7 @@ static int generic_action_ok(const char *path,
#if defined(HAVE_DYNAMIC)
/* No content needed for this core, load core immediately. */
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL) && settings->core.set_supports_no_game_enable)
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL) && settings->set_supports_no_game_enable)
{
runloop_ctl(RUNLOOP_CTL_CLEAR_CONTENT_PATH, NULL);
ret = menu_common_load_content(NULL, NULL, false, CORE_TYPE_PLAIN);

View File

@ -3662,7 +3662,7 @@ static bool setting_append_list_core_options(
CONFIG_BOOL(
list, list_info,
&settings->core.set_supports_no_game_enable,
&settings->set_supports_no_game_enable,
menu_hash_to_str(MENU_LABEL_CORE_SET_SUPPORTS_NO_CONTENT_ENABLE),
menu_hash_to_str(MENU_LABEL_VALUE_CORE_SET_SUPPORTS_NO_CONTENT_ENABLE),
true,