Add fallback message that informs us when config saving is not working

This commit is contained in:
twinaphex 2017-02-26 06:07:58 +01:00
parent 24b9237669
commit e523280cb0

View File

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