mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-10 05:59:08 -07:00
Dolphin deeds done in loader, exclude games/media
This commit is contained in:
7
applications/external/solitaire/solitaire.c
vendored
7
applications/external/solitaire/solitaire.c
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user