From 05d455a8ceaba48e1b2022c2d3d551a4bc7e9423 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 17 Jan 2017 20:07:41 +0100 Subject: [PATCH] Cleanups --- retroarch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/retroarch.c b/retroarch.c index eb5f6596db..786f0877c3 100644 --- a/retroarch.c +++ b/retroarch.c @@ -917,6 +917,8 @@ bool retroarch_validate_game_options(char *s, size_t len, bool mkdir) const char *game_name = NULL; rarch_system_info_t *system = NULL; + config_directory[0] = core_path[0] = '\0'; + runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system); if (system) @@ -927,9 +929,8 @@ bool retroarch_validate_game_options(char *s, size_t len, bool mkdir) if (string_is_empty(core_name) || string_is_empty(game_name)) return false; - config_directory[0] = core_path[0] = '\0'; - - fill_pathname_application_special(config_directory, sizeof(config_directory), + fill_pathname_application_special(config_directory, + sizeof(config_directory), APPLICATION_SPECIAL_DIRECTORY_CONFIG); /* Concatenate strings into full paths for game_path */