mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-05 18:07:01 +00:00
Use correct overlay configs.
Saves input_overlay as well on exit.
This commit is contained in:
parent
6018b4b9de
commit
8614c349f3
@ -210,6 +210,12 @@
|
||||
# Path to input overlay
|
||||
# input_overlay =
|
||||
|
||||
# Overlay opacity
|
||||
# input_overlay_opacity = 1.0
|
||||
|
||||
# Overlay scale
|
||||
# input_overlay_scale = 1.0
|
||||
|
||||
# Enable input auto-detection. Will attempt to autoconfigure
|
||||
# joypads, Plug-and-Play style.
|
||||
# input_autodetect_enable = true
|
||||
|
13
settings.c
13
settings.c
@ -664,8 +664,9 @@ bool config_load_file(const char *path)
|
||||
if (!strcmp(g_extern.overlay_dir, "default"))
|
||||
*g_extern.overlay_dir = '\0';
|
||||
|
||||
CONFIG_GET_FLOAT(input.overlay_opacity, "overlay_opacity");
|
||||
CONFIG_GET_FLOAT(input.overlay_scale, "overlay_scale");
|
||||
CONFIG_GET_PATH(input.overlay, "input_overlay");
|
||||
CONFIG_GET_FLOAT(input.overlay_opacity, "input_overlay_opacity");
|
||||
CONFIG_GET_FLOAT(input.overlay_scale, "input_overlay_scale");
|
||||
#endif
|
||||
|
||||
CONFIG_GET_BOOL(rewind_enable, "rewind_enable");
|
||||
@ -702,9 +703,6 @@ bool config_load_file(const char *path)
|
||||
CONFIG_GET_INT(input.turbo_period, "input_turbo_period");
|
||||
CONFIG_GET_INT(input.turbo_duty_cycle, "input_duty_cycle");
|
||||
|
||||
CONFIG_GET_PATH(input.overlay, "input_overlay");
|
||||
CONFIG_GET_FLOAT(input.overlay_opacity, "input_overlay_opacity");
|
||||
CONFIG_GET_FLOAT(input.overlay_scale, "input_overlay_scale");
|
||||
CONFIG_GET_BOOL(input.debug_enable, "input_debug_enable");
|
||||
|
||||
CONFIG_GET_BOOL(input.autodetect_enable, "input_autodetect_enable");
|
||||
@ -1014,8 +1012,9 @@ bool config_save_file(const char *path)
|
||||
else
|
||||
config_set_string(conf, "overlay_directory", "default");
|
||||
|
||||
config_set_float(conf, "overlay_opacity", g_settings.input.overlay_opacity);
|
||||
config_set_float(conf, "overlay_scale", g_settings.input.overlay_scale);
|
||||
config_set_string(conf, "input_overlay", g_settings.input.overlay);
|
||||
config_set_float(conf, "input_overlay_opacity", g_settings.input.overlay_opacity);
|
||||
config_set_float(conf, "input_overlay_scale", g_settings.input.overlay_scale);
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
|
Loading…
x
Reference in New Issue
Block a user