Create FILE_PATH_CORE_OPTIONS_CONFIG

This commit is contained in:
twinaphex 2016-06-20 05:29:53 +02:00
parent 35b078857d
commit d2eeb6fab0
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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:

View File

@ -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;
}