From e523280cb0a584d680faf92c286a1164ed531aab Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 26 Feb 2017 06:07:58 +0100 Subject: [PATCH] Add fallback message that informs us when config saving is not working --- command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index 6d7ea502c9..5acf7d1c58 100644 --- a/command.c +++ b/command.c @@ -1621,8 +1621,12 @@ static void command_event_save_current_config(enum override_type type) switch (type) { case OVERRIDE_NONE: - if (!path_is_empty(RARCH_PATH_CONFIG)) + if (path_is_empty(RARCH_PATH_CONFIG)) + strlcpy(msg, "Config directory not set, cannot save configuration.", + sizeof(msg)); + else command_event_save_config(path_get(RARCH_PATH_CONFIG), msg, sizeof(msg)); + else break; case OVERRIDE_GAME: case OVERRIDE_CORE: