|
|
@@ -3,6 +3,7 @@
|
|
|
#include <notification/notification.h>
|
|
|
#include <notification/notification_messages.h>
|
|
|
#include <storage/storage.h>
|
|
|
+#include <dolphin/dolphin.h>
|
|
|
|
|
|
#include "sandbox.h"
|
|
|
|
|
|
@@ -423,6 +424,8 @@ static void game_event_handler(GameEvent const event) {
|
|
|
sandbox_loop_exit();
|
|
|
}
|
|
|
break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
} else if(event.type == EventTypeTick) {
|
|
|
@@ -431,7 +434,6 @@ static void game_event_handler(GameEvent const event) {
|
|
|
}
|
|
|
|
|
|
static void game_alloc() {
|
|
|
- srand(DWT->CYCCNT);
|
|
|
key_stack_init();
|
|
|
notification = furi_record_open(RECORD_NOTIFICATION);
|
|
|
notification_message_block(notification, &sequence_display_backlight_enforce_on);
|
|
|
@@ -457,6 +459,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();
|