|
30 | 30 |
|
31 | 31 | #include "disk_control_interface.h" |
32 | 32 |
|
| 33 | +#ifdef HAVE_GFX_WIDGETS |
| 34 | +#include "gfx/gfx_widgets.h" |
| 35 | +#endif |
| 36 | + |
33 | 37 | #ifdef HAVE_CHEEVOS |
34 | 38 | #include "cheevos/cheevos.h" |
35 | 39 | #endif |
@@ -369,7 +373,7 @@ bool disk_control_set_eject_state( |
369 | 373 | /* Errors should always be displayed */ |
370 | 374 | if (verbosity || err) |
371 | 375 | runloop_msg_queue_push( |
372 | | - msg, _len, 1, err ? 180 : 60, true, NULL, |
| 376 | + msg, _len, 2, err ? 180 : 60, true, NULL, |
373 | 377 | MESSAGE_QUEUE_ICON_DEFAULT, |
374 | 378 | err ? MESSAGE_QUEUE_CATEGORY_ERROR : MESSAGE_QUEUE_CATEGORY_INFO); |
375 | 379 | } |
@@ -442,10 +446,16 @@ bool disk_control_set_index( |
442 | 446 | RARCH_LOG("[Disc] %s\n", msg); |
443 | 447 |
|
444 | 448 | /* Errors should always be displayed */ |
445 | | - if (verbosity || err) |
446 | | - runloop_msg_queue_push(msg, _len, 1, msg_duration, true, NULL, |
447 | | - MESSAGE_QUEUE_ICON_DEFAULT, |
448 | | - err ? MESSAGE_QUEUE_CATEGORY_ERROR : MESSAGE_QUEUE_CATEGORY_INFO); |
| 449 | + if (verbosity) |
| 450 | +#ifdef HAVE_GFX_WIDGETS |
| 451 | + gfx_widget_set_generic_message(msg, msg_duration * 10); |
| 452 | +#else |
| 453 | + runloop_msg_queue_push(msg, _len, 2, msg_duration, true, NULL, |
| 454 | + MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); |
| 455 | +#endif |
| 456 | + else if (err) |
| 457 | + runloop_msg_queue_push(msg, _len, 2, msg_duration, true, NULL, |
| 458 | + MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR); |
449 | 459 | } |
450 | 460 |
|
451 | 461 | /* If operation was successful, update disk |
@@ -661,8 +671,8 @@ bool disk_control_append_image( |
661 | 671 | msg[++_len] = '\0'; |
662 | 672 | _len += strlcpy(msg + _len, image_filename, sizeof(msg) - _len); |
663 | 673 |
|
664 | | - runloop_msg_queue_push(msg, _len, 0, 180, true, NULL, |
665 | | - MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); |
| 674 | + runloop_msg_queue_push(msg, _len, 2, 180, true, NULL, |
| 675 | + MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_WARNING); |
666 | 676 |
|
667 | 677 | return false; |
668 | 678 | } |
|
0 commit comments