Skip to content

Commit

Permalink
Remove Duplicated Dolphin Deeds
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueMaster committed Aug 2, 2023
1 parent f8a0f6e commit f3edcba
Show file tree
Hide file tree
Showing 47 changed files with 0 additions and 114 deletions.
3 changes: 0 additions & 3 deletions applications/external/4inrow/4inrow.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <input/input.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <dolphin/dolphin.h>

static int matrix[6][7] = {0};
static int cursorx = 3;
Expand Down Expand Up @@ -235,8 +234,6 @@ int32_t four_in_row_app(void* p) {
return 255;
}

dolphin_deed(DolphinDeedPluginGameStart);

// Создаем новый view port
ViewPort* view_port = view_port_alloc();
// Создаем callback отрисовки, без контекста
Expand Down
2 changes: 0 additions & 2 deletions applications/external/airmouse/air_mouse.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "air_mouse.h"

#include <furi.h>
#include <dolphin/dolphin.h>

#include "tracking/imu/imu.h"

Expand Down Expand Up @@ -151,7 +150,6 @@ int32_t air_mouse_app(void* p) {
return -1;
}

dolphin_deed(DolphinDeedPluginStart);
view_dispatcher_run(app->view_dispatcher);

imu_end();
Expand Down
4 changes: 0 additions & 4 deletions applications/external/arkanoid/arkanoid_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <gui/view.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <dolphin/dolphin.h>

#define TAG "Arkanoid"

Expand Down Expand Up @@ -398,9 +397,6 @@ 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);
Expand Down
3 changes: 0 additions & 3 deletions applications/external/blackjack/blackjack.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,6 @@ int32_t blackjack_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, 100);
furi_mutex_acquire(game_state->mutex, FuriWaitForever);
Expand Down
1 change: 0 additions & 1 deletion applications/external/bomberduck/bomberduck.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ int32_t bomberduck_app(void* p) {
return 255;
}

dolphin_deed(DolphinDeedPluginGameStart);
// Создаем новый view port
ViewPort* view_port = view_port_alloc();
// Создаем callback отрисовки, без контекста
Expand Down
2 changes: 0 additions & 2 deletions applications/external/bt_trigger/bt_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ __int32_t bt_trigger_app(void* p) {
furi_hal_bt_start_advertising();
bt_set_status_changed_callback(app->bt, bt_hid_connection_status_changed_callback, app);

dolphin_deed(DolphinDeedPluginStart);

//An event
IosTriggerEvent event;
//List of 8 events
Expand Down
1 change: 0 additions & 1 deletion applications/external/bt_trigger/bt_trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <storage/storage.h>
#include <gui/modules/dialog_ex.h>
#include <gui/modules/popup.h>
#include <dolphin/dolphin.h>
#include "bt_trigger_icons.h"

#define HID_BT_KEYS_STORAGE_PATH EXT_PATH("apps_data/hid_ble/.bt_hid.keys")
Expand Down
1 change: 0 additions & 1 deletion applications/external/color_guess/views/color_guess_play.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ void color_guess_play_exit(void* context) {
void color_guess_play_enter(void* context) {
furi_assert(context);
ColorGuessPlay* instance = (ColorGuessPlay*)context;
dolphin_deed(DolphinDeedPluginGameStart);
with_view_model(
instance->view,
ColorGuessPlayModel * model,
Expand Down
3 changes: 0 additions & 3 deletions applications/external/dcf77/dcf77_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <gui/gui.h>
#include <input/input.h>
#include <stdlib.h>
#include <dolphin/dolphin.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>

Expand Down Expand Up @@ -350,8 +349,6 @@ int32_t dcf77_app_main(void* p) {
;
}

dolphin_deed(DolphinDeedPluginGameStart);

AppEvent event;
for(bool processing = true; processing;) {
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100);
Expand Down
3 changes: 0 additions & 3 deletions applications/external/doom/doom.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "level.h"
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <dolphin/dolphin.h>

#define SOUND

Expand Down Expand Up @@ -994,8 +993,6 @@ 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);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/dtmf_dolphin/dtmf_dolphin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <furi.h>
#include <furi_hal.h>
#include <dolphin/dolphin.h>

static bool dtmf_dolphin_app_custom_event_callback(void* context, uint32_t event) {
furi_assert(context);
Expand Down Expand Up @@ -83,7 +82,6 @@ int32_t dtmf_dolphin_app(void* p) {
UNUSED(p);
DTMFDolphinApp* app = app_alloc();

dolphin_deed(DolphinDeedPluginStart);
view_dispatcher_run(app->view_dispatcher);

app_free(app);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "../uart_terminal_app_i.h"
#include <dolphin/dolphin.h>

// For each command, define whether additional arguments are needed
// (enabling text input to fill them out), and whether the console
Expand Down Expand Up @@ -285,8 +284,6 @@ static void uart_terminal_scene_start_var_list_enter_callback(void* context, uin
furi_assert(index < NUM_MENU_ITEMS);
const UART_TerminalItem* item = &items[index];

dolphin_deed(DolphinDeedGpioUartBridge);

const int selected_option_index = app->selected_option_index[index];
furi_assert(selected_option_index < item->num_options_menu);
app->selected_tx_string = item->actual_commands[selected_option_index];
Expand Down
3 changes: 0 additions & 3 deletions applications/external/flappy_bird/flappy_bird.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ 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);
Expand Down
4 changes: 0 additions & 4 deletions applications/external/game15/game15.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <storage/storage.h>
#include <dolphin/dolphin.h>

#include "sandbox.h"

Expand Down Expand Up @@ -466,9 +465,6 @@ 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();
Expand Down
4 changes: 0 additions & 4 deletions applications/external/game_2048/game_2048.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <gui/gui.h>
#include <input/input.h>
#include <storage/storage.h>
#include <dolphin/dolphin.h>

#include "digits.h"
#include "array_utils.h"
Expand Down Expand Up @@ -402,9 +401,6 @@ 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);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/gpioreader/scenes/gpio_scene_start.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "../gpio_app_i.h"
#include "furi_hal_power.h"
#include "furi_hal_usb.h"
#include <dolphin/dolphin.h>

enum GpioItem {
GpioItemUsbUart,
Expand Down Expand Up @@ -97,7 +96,6 @@ bool gpio_scene_start_on_event(void* context, SceneManagerEvent event) {
} else if(event.event == GpioStartEventUsbUart) {
scene_manager_set_scene_state(app->scene_manager, GpioSceneStart, GpioItemUsbUart);
if(!furi_hal_usb_is_locked()) {
dolphin_deed(DolphinDeedGpioUartBridge);
scene_manager_next_scene(app->scene_manager, GpioSceneUsbUart);
} else {
scene_manager_next_scene(app->scene_manager, GpioSceneUsbUartCloseRpc);
Expand Down
4 changes: 0 additions & 4 deletions applications/external/heap_defence_game/heap_defence.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <input/input.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <dolphin/dolphin.h>

#define Y_FIELD_SIZE 6
#define Y_LAST (Y_FIELD_SIZE - 1)
Expand Down Expand Up @@ -533,9 +532,6 @@ 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) {
Expand Down
2 changes: 0 additions & 2 deletions applications/external/ledpulser/ledpulser.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <input/input.h>
#include <notification/notification_messages.h>
#include "ledpulser_icons.h"
#include <dolphin/dolphin.h>

const int color_green = 1;
const int color_blue = 2;
Expand Down Expand Up @@ -108,7 +107,6 @@ int32_t ledpulser_app(void* p) {
}
plugin_state->direction = 0;
plugin_state->intensity = 0;
dolphin_deed(DolphinDeedPluginStart);

// Configure view port
ViewPort* view_port = view_port_alloc();
Expand Down
3 changes: 0 additions & 3 deletions applications/external/logic_analyzer/logic_analyzer_app.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


#include "logic_analyzer_app.h"
#include "logic_analyzer_icons.h"

Expand Down Expand Up @@ -301,7 +299,6 @@ int32_t logic_analyzer_app_main(void* p) {
AppFSM* app = malloc(sizeof(AppFSM));
app_init(app);

dolphin_deed(DolphinDeedPluginGameStart);
notification_message_block(app->notification, &sequence_display_backlight_enforce_on);

while(app->processing) {
Expand Down
1 change: 0 additions & 1 deletion applications/external/logic_analyzer/logic_analyzer_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <input/input.h>
#include <storage/storage.h>
#include <stdlib.h>
#include <dolphin/dolphin.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>

Expand Down
1 change: 0 additions & 1 deletion applications/external/mfkey32/mfkey32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@ void start_mfkey32_thread(ProgramState* program_state) {
int32_t mfkey32_main() {
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));

dolphin_deed(DolphinDeedPluginStart);
ProgramState* program_state = malloc(sizeof(ProgramState));

mfkey32_state_init(program_state);
Expand Down
3 changes: 0 additions & 3 deletions applications/external/minesweeper/minesweeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ int32_t minesweeper_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;
for(bool processing = true; processing;) {
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100);
Expand Down
1 change: 0 additions & 1 deletion applications/external/mousejacker/mousejacker.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ static int32_t mj_worker_thread(void* ctx) {
int32_t mousejacker_app(void* p) {
UNUSED(p);
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
dolphin_deed(getRandomDeed());

PluginState* plugin_state = malloc(sizeof(PluginState));
mousejacker_state_init(plugin_state);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/nfc_magic/nfc_magic.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "nfc_magic_i.h"
#include <dolphin/dolphin.h>

bool nfc_magic_custom_event_callback(void* context, uint32_t event) {
furi_assert(context);
Expand Down Expand Up @@ -174,7 +173,6 @@ int32_t nfc_magic_app(void* p) {
UNUSED(p);
NfcMagic* nfc_magic = nfc_magic_alloc();

dolphin_deed(DolphinDeedPluginStart);
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);

view_dispatcher_run(nfc_magic->view_dispatcher);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/nfc_magic_gen1/nfc_magic.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "nfc_magic_i.h"
#include <dolphin/dolphin.h>

bool nfc_magic_custom_event_callback(void* context, uint32_t event) {
furi_assert(context);
Expand Down Expand Up @@ -161,7 +160,6 @@ int32_t nfc_magic_g1_app(void* p) {
UNUSED(p);
NfcMagic* nfc_magic = nfc_magic_alloc();

dolphin_deed(DolphinDeedPluginStart);
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);

view_dispatcher_run(nfc_magic->view_dispatcher);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/nfc_magic_gen4/nfc_magic.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "nfc_magic_i.h"
#include <dolphin/dolphin.h>

bool nfc_magic_custom_event_callback(void* context, uint32_t event) {
furi_assert(context);
Expand Down Expand Up @@ -174,7 +173,6 @@ int32_t nfc_magic_g4_app(void* p) {
UNUSED(p);
NfcMagic* nfc_magic = nfc_magic_alloc();

dolphin_deed(DolphinDeedPluginStart);
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);

view_dispatcher_run(nfc_magic->view_dispatcher);
Expand Down
1 change: 0 additions & 1 deletion applications/external/nrfsniff/nrfsniff.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ static void start_sniffing() {

int32_t nrfsniff_app(void* p) {
UNUSED(p);
dolphin_deed(DolphinDeedPluginStart);
uint8_t address[5] = {0};
uint32_t start = 0;
hexlify(address, 5, top_address);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/picopass/picopass.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "picopass_i.h"
#include <dolphin/dolphin.h>

#define TAG "PicoPass"

Expand Down Expand Up @@ -219,7 +218,6 @@ int32_t picopass_app(void* p) {
UNUSED(p);
picopass_migrate_from_old_folder();

dolphin_deed(DolphinDeedPluginStart);
Picopass* picopass = picopass_alloc();

scene_manager_next_scene(picopass->scene_manager, PicopassSceneStart);
Expand Down
2 changes: 0 additions & 2 deletions applications/external/playlist/playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <lib/subghz/transmitter.h>
#include <lib/subghz/protocols/raw.h>
#include <dolphin/dolphin.h>

#include "playlist_file.h"
#include "canvas_helper.h"
Expand Down Expand Up @@ -724,7 +723,6 @@ void playlist_free(Playlist* app) {

int32_t playlist_app(void* p) {
UNUSED(p);
dolphin_deed(DolphinDeedPluginStart);

// create playlist folder
{
Expand Down
2 changes: 0 additions & 2 deletions applications/external/pocsag_pager/pocsag_pager_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <furi_hal.h>
#include <lib/flipper_format/flipper_format.h>
#include "protocols/protocol_items.h"
#include <dolphin/dolphin.h>
#include <storage/storage.h>

static bool pocsag_pager_app_custom_event_callback(void* context, uint32_t event) {
Expand Down Expand Up @@ -200,7 +199,6 @@ int32_t pocsag_pager_app(void* p) {
UNUSED(p);
POCSAGPagerApp* pocsag_pager_app = pocsag_pager_app_alloc();

dolphin_deed(DolphinDeedPluginStart);
view_dispatcher_run(pocsag_pager_app->view_dispatcher);

pocsag_pager_app_free(pocsag_pager_app);
Expand Down
Loading

0 comments on commit f3edcba

Please sign in to comment.