Skip to content

Commit 7a6091c

Browse files
committed
Core option manager widget category correction
1 parent ea6d4dd commit 7a6091c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

runloop.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5024,7 +5024,7 @@ bool core_options_create_override(bool game_specific)
50245024
RARCH_LOG("[Core] Core options file created: \"%s\".\n", options_path);
50255025
_msg = msg_hash_to_str(MSG_CORE_OPTIONS_FILE_CREATED_SUCCESSFULLY);
50265026
runloop_msg_queue_push(_msg, strlen(_msg), 1, 100, true, NULL,
5027-
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
5027+
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_SUCCESS);
50285028

50295029
path_set(RARCH_PATH_CORE_OPTIONS, options_path);
50305030
if (game_specific)
@@ -5199,7 +5199,7 @@ bool core_options_remove_override(bool game_specific)
51995199
{
52005200
const char *_msg = msg_hash_to_str(MSG_CORE_OPTIONS_FILE_REMOVED_SUCCESSFULLY);
52015201
runloop_msg_queue_push(_msg, strlen(_msg), 1, 100, true, NULL,
5202-
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
5202+
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_SUCCESS);
52035203
}
52045204

52055205
if (conf)
@@ -5298,6 +5298,8 @@ void core_options_flush(void)
52985298
{
52995299
size_t _len;
53005300
char msg[128];
5301+
enum message_queue_category category
5302+
= MESSAGE_QUEUE_CATEGORY_INFO;
53015303
runloop_state_t *runloop_st = &runloop_state;
53025304
core_option_manager_t *coreopts = runloop_st->core_options;
53035305
const char *path_core_options = path_get(RARCH_PATH_CORE_OPTIONS);
@@ -5368,7 +5370,6 @@ void core_options_flush(void)
53685370

53695371
if (ret)
53705372
{
5371-
/* Log result */
53725373
_len = strlcpy(msg, msg_hash_to_str(MSG_CORE_OPTIONS_FLUSHED),
53735374
sizeof(msg));
53745375
RARCH_LOG(
@@ -5377,19 +5378,19 @@ void core_options_flush(void)
53775378
}
53785379
else
53795380
{
5380-
/* Log result */
53815381
_len = strlcpy(msg, msg_hash_to_str(MSG_CORE_OPTIONS_FLUSH_FAILED),
53825382
sizeof(msg));
5383-
RARCH_LOG(
5383+
RARCH_ERR(
53845384
"[Core] Failed to save core options to \"%s\".\n",
53855385
path_core_options ? path_core_options : "UNKNOWN");
5386+
category = MESSAGE_QUEUE_CATEGORY_ERROR;
53865387
}
53875388

53885389
_len += snprintf(msg + _len, sizeof(msg) - _len, " \"%s\"",
53895390
core_options_file);
53905391

53915392
runloop_msg_queue_push(msg, _len, 1, 100, true, NULL,
5392-
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
5393+
MESSAGE_QUEUE_ICON_DEFAULT, category);
53935394
}
53945395

53955396
void runloop_msg_queue_push(

0 commit comments

Comments
 (0)