@@ -1927,7 +1927,7 @@ bool command_event_save_core_config(
1927
1927
{
1928
1928
const char * _msg = msg_hash_to_str (MSG_CONFIG_DIRECTORY_NOT_SET );
1929
1929
runloop_msg_queue_push (_msg , strlen (_msg ), 1 , 180 , true, NULL ,
1930
- MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_INFO );
1930
+ MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_ERROR );
1931
1931
RARCH_ERR ("[Config] %s\n" , _msg );
1932
1932
return false;
1933
1933
}
@@ -2010,24 +2010,32 @@ void command_event_save_current_config(enum override_type type)
2010
2010
{
2011
2011
size_t _len ;
2012
2012
char msg [256 ];
2013
+ uint8_t msg_cat = MESSAGE_QUEUE_CATEGORY_INFO ;
2013
2014
2014
2015
msg [0 ] = '\0' ;
2015
2016
2016
2017
if (path_is_empty (RARCH_PATH_CONFIG ))
2017
2018
{
2018
- _len = strlcpy (msg , "Config directory not set, cannot save configuration." , sizeof (msg ));
2019
- runloop_msg_queue_push (msg , _len , 1 , 180 , true, NULL ,
2020
- MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_INFO );
2019
+ msg_cat = MESSAGE_QUEUE_CATEGORY_ERROR ;
2020
+ _len = strlcpy (msg , "Config directory not set, cannot save configuration." , sizeof (msg ));
2021
2021
}
2022
2022
else
2023
2023
{
2024
2024
if (runloop_st -> flags & RUNLOOP_FLAG_OVERRIDES_ACTIVE )
2025
- _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_ACTIVE_NOT_SAVING ), sizeof (msg ));
2025
+ {
2026
+ msg_cat = MESSAGE_QUEUE_CATEGORY_ERROR ;
2027
+ _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_ACTIVE_NOT_SAVING ), sizeof (msg ));
2028
+ }
2026
2029
else
2027
- _len = command_event_save_config (path_get (RARCH_PATH_CONFIG ), msg , sizeof (msg ));
2028
- runloop_msg_queue_push (msg , _len , 1 , 180 , true, NULL ,
2029
- MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_INFO );
2030
+ {
2031
+ msg_cat = MESSAGE_QUEUE_CATEGORY_SUCCESS ;
2032
+ _len = command_event_save_config (path_get (RARCH_PATH_CONFIG ), msg , sizeof (msg ));
2033
+ }
2030
2034
}
2035
+
2036
+ RARCH_LOG ("[Overrides] %s\n" , msg );
2037
+ runloop_msg_queue_push (msg , _len , 1 , 180 , true, NULL ,
2038
+ MESSAGE_QUEUE_ICON_DEFAULT , msg_cat );
2031
2039
}
2032
2040
break ;
2033
2041
case OVERRIDE_GAME :
@@ -2036,29 +2044,33 @@ void command_event_save_current_config(enum override_type type)
2036
2044
{
2037
2045
size_t _len ;
2038
2046
char msg [256 ];
2039
- int8_t ret = config_save_overrides (type , & runloop_st -> system , false, NULL );
2047
+ int8_t ret = config_save_overrides (type , & runloop_st -> system , false, NULL );
2048
+ uint8_t msg_cat = MESSAGE_QUEUE_CATEGORY_INFO ;
2040
2049
2041
2050
switch (ret )
2042
2051
{
2043
2052
case 1 :
2044
- _len = strlcpy (msg ,
2053
+ msg_cat = MESSAGE_QUEUE_CATEGORY_SUCCESS ;
2054
+ _len = strlcpy (msg ,
2045
2055
msg_hash_to_str (MSG_OVERRIDES_SAVED_SUCCESSFULLY ), sizeof (msg ));
2046
2056
/* set overrides to active so the original config can be
2047
2057
restored after closing content */
2048
2058
runloop_st -> flags |= RUNLOOP_FLAG_OVERRIDES_ACTIVE ;
2049
2059
break ;
2050
2060
case -1 :
2051
- _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_NOT_SAVED ), sizeof (msg ));
2061
+ msg_cat = MESSAGE_QUEUE_CATEGORY_WARNING ;
2062
+ _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_NOT_SAVED ), sizeof (msg ));
2052
2063
break ;
2053
2064
default :
2054
2065
case 0 :
2066
+ msg_cat = MESSAGE_QUEUE_CATEGORY_ERROR ;
2055
2067
_len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_ERROR_SAVING ), sizeof (msg ));
2056
2068
break ;
2057
2069
}
2058
2070
2059
2071
RARCH_LOG ("[Overrides] %s\n" , msg );
2060
2072
runloop_msg_queue_push (msg , _len , 1 , 180 , true, NULL ,
2061
- MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_INFO );
2073
+ MESSAGE_QUEUE_ICON_DEFAULT , msg_cat );
2062
2074
2063
2075
#ifdef HAVE_MENU
2064
2076
{
@@ -2087,14 +2099,22 @@ void command_event_remove_current_config(enum override_type type)
2087
2099
{
2088
2100
size_t _len ;
2089
2101
char msg [256 ];
2102
+ uint8_t msg_cat = MESSAGE_QUEUE_CATEGORY_INFO ;
2103
+
2090
2104
if (config_save_overrides (type , & runloop_st -> system , true, NULL ))
2091
- _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_REMOVED_SUCCESSFULLY ), sizeof (msg ));
2105
+ {
2106
+ msg_cat = MESSAGE_QUEUE_CATEGORY_SUCCESS ;
2107
+ _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_REMOVED_SUCCESSFULLY ), sizeof (msg ));
2108
+ }
2092
2109
else
2093
- _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_ERROR_REMOVING ), sizeof (msg ));
2110
+ {
2111
+ msg_cat = MESSAGE_QUEUE_CATEGORY_ERROR ;
2112
+ _len = strlcpy (msg , msg_hash_to_str (MSG_OVERRIDES_ERROR_REMOVING ), sizeof (msg ));
2113
+ }
2094
2114
2095
2115
RARCH_LOG ("[Overrides] %s\n" , msg );
2096
2116
runloop_msg_queue_push (msg , _len , 1 , 180 , true, NULL ,
2097
- MESSAGE_QUEUE_ICON_DEFAULT , MESSAGE_QUEUE_CATEGORY_INFO );
2117
+ MESSAGE_QUEUE_ICON_DEFAULT , msg_cat );
2098
2118
#ifdef HAVE_MENU
2099
2119
{
2100
2120
struct menu_state * menu_st = menu_state_get_ptr ();
0 commit comments