From d2eeb6fab0c80d2634fd8e0451e8e4a9001ec9d4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Jun 2016 05:29:53 +0200 Subject: [PATCH] Create FILE_PATH_CORE_OPTIONS_CONFIG --- file_path_special.h | 3 ++- file_path_str.c | 2 ++ runloop.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/file_path_special.h b/file_path_special.h index b073d00107..56d6d93852 100644 --- a/file_path_special.h +++ b/file_path_special.h @@ -26,7 +26,8 @@ enum file_path_enum { FILE_PATH_UNKNOWN = 0, FILE_PATH_CONTENT_HISTORY, - FILE_PATH_MAIN_CONFIG + FILE_PATH_MAIN_CONFIG, + FILE_PATH_CORE_OPTIONS_CONFIG }; enum application_special_type diff --git a/file_path_str.c b/file_path_str.c index 99af59ab3a..eae46711f3 100644 --- a/file_path_str.c +++ b/file_path_str.c @@ -21,6 +21,8 @@ const char *file_path_str(enum file_path_enum enum_idx) { case FILE_PATH_CONTENT_HISTORY: return "content_history.lpl"; + case FILE_PATH_CORE_OPTIONS_CONFIG: + return "retroarch-core-options.cfg"; case FILE_PATH_MAIN_CONFIG: return "retroarch.cfg"; case FILE_PATH_UNKNOWN: diff --git a/runloop.c b/runloop.c index f39b4a0a5a..a2a8851f94 100644 --- a/runloop.c +++ b/runloop.c @@ -42,6 +42,7 @@ #include "movie.h" #include "retroarch.h" #include "runloop.h" +#include "file_path_special.h" #include "managers/core_option_manager.h" #include "managers/cheat_manager.h" #include "managers/state_manager.h" @@ -1131,7 +1132,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data) if (!*options_path && *global->path.config) { fill_pathname_resolve_relative(buf, global->path.config, - "retroarch-core-options.cfg", sizeof(buf)); + file_path_str(FILE_PATH_CORE_OPTIONS_CONFIG), sizeof(buf)); options_path = buf; }