diff --git a/cheevos-new/cheevos.c b/cheevos-new/cheevos.c index e5ff1ede1c..2745fa877f 100644 --- a/cheevos-new/cheevos.c +++ b/cheevos-new/cheevos.c @@ -504,9 +504,12 @@ static void rcheevos_award(rcheevos_cheevo_t* cheevo, int mode) /* Show the OSD message. */ #if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS) - if (!menu_widgets_ready() || !menu_widgets_push_achievement(cheevo->info->title, cheevo->info->badge)) + if (!menu_widgets_ready()) #endif { +#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS) + menu_widgets_push_achievement(cheevo->info->title, cheevo->info->badge); +#endif snprintf(buffer, sizeof(buffer), "Achievement Unlocked: %s", cheevo->info->title); runloop_msg_queue_push(buffer, 0, 2 * 60, false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); runloop_msg_queue_push(cheevo->info->description, 0, 3 * 60, false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); diff --git a/menu/widgets/menu_widgets.c b/menu/widgets/menu_widgets.c index b268f3dff4..8236bff783 100644 --- a/menu/widgets/menu_widgets.c +++ b/menu/widgets/menu_widgets.c @@ -2261,7 +2261,7 @@ static void menu_widgets_get_badge_texture(menu_texture_item *tex, const char *b tex, TEXTURE_FILTER_MIPMAP_LINEAR, NULL, NULL); } -bool menu_widgets_push_achievement(const char *title, const char *badge) +void menu_widgets_push_achievement(const char *title, const char *badge) { menu_widgets_achievement_free(NULL); @@ -2271,8 +2271,6 @@ bool menu_widgets_push_achievement(const char *title, const char *badge) menu_widgets_get_badge_texture(&cheevo_badge, badge); menu_widgets_start_achievement_notification(); - - return true; } static void menu_widgets_generic_message_fadeout(void *userdata) diff --git a/menu/widgets/menu_widgets.h b/menu/widgets/menu_widgets.h index f1f9570319..c4aa1a62c5 100644 --- a/menu/widgets/menu_widgets.h +++ b/menu/widgets/menu_widgets.h @@ -53,11 +53,6 @@ void menu_widgets_volume_update_and_show(void); void menu_widgets_iterate(unsigned width, unsigned height); -bool menu_widgets_task_msg_queue_push(retro_task_t *task, - const char *msg, - unsigned prio, unsigned duration, - bool flush); - void menu_widgets_screenshot_taken(const char *shotname, const char *filename); void menu_widgets_start_load_content_animation(const char *content_name, bool remove_extension); @@ -68,7 +63,7 @@ void menu_widgets_context_reset(bool is_threaded, void menu_widgets_context_destroy(void); -bool menu_widgets_push_achievement(const char *title, const char *badge); +void menu_widgets_push_achievement(const char *title, const char *badge); /* Warning: not thread safe! */ void menu_widgets_set_message(char *message);