diff --git a/applications/plugins/arkanoid/arkanoid_game.c b/applications/plugins/arkanoid/arkanoid_game.c index af9976c98..0b9bb91e9 100644 --- a/applications/plugins/arkanoid/arkanoid_game.c +++ b/applications/plugins/arkanoid/arkanoid_game.c @@ -5,6 +5,7 @@ #include #include #include +#include #define TAG "Arkanoid" @@ -397,6 +398,9 @@ int32_t arkanoid_game_app(void* p) { Gui* gui = furi_record_open(RECORD_GUI); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + GameEvent event; for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); diff --git a/applications/plugins/blackjack/blackjack.c b/applications/plugins/blackjack/blackjack.c index 6f7cc9af8..7e62ec539 100644 --- a/applications/plugins/blackjack/blackjack.c +++ b/applications/plugins/blackjack/blackjack.c @@ -571,6 +571,8 @@ int32_t blackjack_app(void* p) { gui_add_view_port(gui, view_port, GuiLayerFullscreen); AppEvent event; + + // Call dolphin deed on game start DOLPHIN_DEED(DolphinDeedPluginGameStart); for(bool processing = true; processing;) { diff --git a/applications/plugins/doom/doom.c b/applications/plugins/doom/doom.c index 7e64acf81..822f9b6fc 100644 --- a/applications/plugins/doom/doom.c +++ b/applications/plugins/doom/doom.c @@ -13,6 +13,7 @@ #include "level.h" #include #include +#include #define SOUND @@ -989,6 +990,9 @@ int32_t doom_app() { music_player_worker_load_rtttl_from_string(plugin_state->music_instance->worker, dsintro); music_player_worker_start(plugin_state->music_instance->worker); #endif + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); PluginState* plugin_state = (PluginState*)acquire_mutex_block(&state_mutex); diff --git a/applications/plugins/flappy_bird/flappy_bird.c b/applications/plugins/flappy_bird/flappy_bird.c index 2eeaf7816..0ff6f186a 100644 --- a/applications/plugins/flappy_bird/flappy_bird.c +++ b/applications/plugins/flappy_bird/flappy_bird.c @@ -5,6 +5,7 @@ #include #include #include +#include #define TAG "Flappy" #define DEBUG false @@ -307,6 +308,9 @@ int32_t flappy_game_app(void* p) { Gui* gui = furi_record_open(RECORD_GUI); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + GameEvent event; for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); diff --git a/applications/plugins/game15/game15.c b/applications/plugins/game15/game15.c index d9b059466..43d2e12f4 100644 --- a/applications/plugins/game15/game15.c +++ b/applications/plugins/game15/game15.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "sandbox.h" @@ -461,6 +462,10 @@ int32_t game15_app() { sandbox_init( FPS, (SandboxRenderCallback)render_callback, (SandboxEventHandler)game_event_handler); + + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + sandbox_loop(); sandbox_free(); game_free(); diff --git a/applications/plugins/game_2048/game_2048.c b/applications/plugins/game_2048/game_2048.c index e0c4a4cec..1a2f4a4d3 100644 --- a/applications/plugins/game_2048/game_2048.c +++ b/applications/plugins/game_2048/game_2048.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "digits.h" #include "array_utils.h" @@ -382,7 +383,7 @@ int32_t game_2048_app() { ValueMutex state_mutex; if(!init_mutex(&state_mutex, game_state, sizeof(GameState))) { - FURI_LOG_E("SnakeGame", "cannot create mutex\r\n"); + FURI_LOG_E("2048Game", "cannot create mutex\r\n"); free(game_state); return 255; } @@ -397,6 +398,9 @@ int32_t game_2048_app() { Gui* gui = furi_record_open(RECORD_GUI); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + bool is_finished = false; while(!is_finished) { FuriStatus event_status = furi_message_queue_get(event_queue, &input, FuriWaitForever); diff --git a/applications/plugins/heap_defence_game/heap_defence.c b/applications/plugins/heap_defence_game/heap_defence.c index e43bcf425..2981d6c27 100644 --- a/applications/plugins/heap_defence_game/heap_defence.c +++ b/applications/plugins/heap_defence_game/heap_defence.c @@ -15,6 +15,7 @@ #include #include #include +#include #define Y_FIELD_SIZE 6 #define Y_LAST (Y_FIELD_SIZE - 1) @@ -530,6 +531,9 @@ int32_t heap_defence_app(void* p) { game->game_status = 0; game->animation = AnimationPause; + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + GameEvent event = {0}; while(event.input.key != InputKeyBack) { if(furi_message_queue_get(event_queue, &event, 100) != FuriStatusOk) { diff --git a/applications/plugins/minesweeper/minesweeper.c b/applications/plugins/minesweeper/minesweeper.c index fa9fdcc78..d5e2e715d 100644 --- a/applications/plugins/minesweeper/minesweeper.c +++ b/applications/plugins/minesweeper/minesweeper.c @@ -8,6 +8,8 @@ #include #include +#include + #include "assets.h" #define PLAYFIELD_WIDTH 16 @@ -255,6 +257,9 @@ static bool game_won(Minesweeper* minesweeper_state) { dialog_message_set_buttons(message, NULL, "Play again", NULL); dialog_message_set_icon(message, NULL, 72, 17); + // Call dolphin deed when we win the game + DOLPHIN_DEED(DolphinDeedPluginGameWin); + DialogMessageButton choice = dialog_message_show(dialogs, message); dialog_message_free(message); furi_string_free(tempStr); @@ -409,6 +414,9 @@ int32_t minesweeper_app(void* p) { Gui* gui = furi_record_open("gui"); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + PluginEvent event; for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); diff --git a/applications/plugins/solitaire/solitaire.c b/applications/plugins/solitaire/solitaire.c index 1e758f452..26e0187dd 100644 --- a/applications/plugins/solitaire/solitaire.c +++ b/applications/plugins/solitaire/solitaire.c @@ -491,6 +491,8 @@ int32_t solitaire_app(void* p) { gui_add_view_port(gui, view_port, GuiLayerFullscreen); AppEvent event; + + // Call Dolphin deed on game start DOLPHIN_DEED(DolphinDeedPluginGameStart); for(bool processing = true; processing;) { diff --git a/applications/plugins/tetris_game/tetris_game.c b/applications/plugins/tetris_game/tetris_game.c index 8d3b9fb7a..b317d376a 100644 --- a/applications/plugins/tetris_game/tetris_game.c +++ b/applications/plugins/tetris_game/tetris_game.c @@ -6,6 +6,7 @@ #include #include #include +#include #define BORDER_OFFSET 1 #define MARGIN_OFFSET 3 @@ -383,6 +384,9 @@ int32_t tetris_game_app() { Piece* newPiece = malloc(sizeof(Piece)); uint8_t downRepeatCounter = 0; + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + for(bool processing = true; processing;) { // This 10U implicitly sets the game loop speed. downRepeatCounter relies on this value FuriStatus event_status = furi_message_queue_get(event_queue, &event, 10U); diff --git a/applications/plugins/tictactoe_game/tictactoe_game.c b/applications/plugins/tictactoe_game/tictactoe_game.c index fe57d7c62..ec82192a8 100644 --- a/applications/plugins/tictactoe_game/tictactoe_game.c +++ b/applications/plugins/tictactoe_game/tictactoe_game.c @@ -3,6 +3,7 @@ #include #include #include +#include #define TAG "TicTacToe" @@ -330,6 +331,9 @@ int32_t tictactoe_game_app(void* p) { Gui* gui = furi_record_open(RECORD_GUI); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + GameEvent event; for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); diff --git a/applications/plugins/zombiez/zombiez.c b/applications/plugins/zombiez/zombiez.c index bd2a5c97d..2677d13e0 100644 --- a/applications/plugins/zombiez/zombiez.c +++ b/applications/plugins/zombiez/zombiez.c @@ -2,6 +2,7 @@ #include #include #include +#include //ORIGINAL REPO: https://github.com/Dooskington/flipperzero-zombiez //AUTHORS: https://github.com/Dooskington | https://github.com/DevMilanIan @@ -313,6 +314,9 @@ int32_t zombiez_game_app(void* p) { Gui* gui = furi_record_open(RECORD_GUI); gui_add_view_port(gui, view_port, GuiLayerFullscreen); + // Call dolphin deed on game start + DOLPHIN_DEED(DolphinDeedPluginGameStart); + PluginEvent event; bool isRunning = true; while(isRunning) {