Dolphin deeds done in loader, exclude games/media

This commit is contained in:
Willy-JL
2023-08-03 23:19:23 +02:00
parent 21eeb53960
commit 09533b36e0
41 changed files with 8 additions and 112 deletions

View File

@@ -1,5 +1,4 @@
#include <stdlib.h>
#include <dolphin/dolphin.h>
#include <furi.h>
#include <gui/canvas_i.h>
#include "defines.h"
@@ -276,7 +275,6 @@ void tick(GameState* game_state, NotificationApp* notification) {
if(game_state->state == GameStatePlay) {
if(game_state->top_cards[0].character == 11 && game_state->top_cards[1].character == 11 &&
game_state->top_cards[2].character == 11 && game_state->top_cards[3].character == 11) {
// dolphin_deed(DolphinDeedPluginGameWin);
game_state->state = GameStateAnimate;
return;
}
@@ -491,9 +489,6 @@ int32_t solitaire_app(void* p) {
AppEvent event;
// Call Dolphin deed on game start
// dolphin_deed(DolphinDeedPluginGameStart);
for(bool processing = true; processing;) {
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 150);
furi_mutex_acquire(game_state->mutex, FuriWaitForever);
@@ -567,4 +562,4 @@ free_and_exit:
free(game_state);
furi_message_queue_free(event_queue);
return return_code;
}
}