mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
Fix dolphin deed's
This commit is contained in:
@@ -83,7 +83,7 @@ int32_t dtmf_dolphin_app(void* p) {
|
||||
UNUSED(p);
|
||||
DTMFDolphinApp* app = app_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
|
||||
app_free(app);
|
||||
|
||||
@@ -321,7 +321,7 @@ int32_t esp8266_deauth_app(void* p) {
|
||||
|
||||
SWiFiDeauthApp* app = malloc(sizeof(SWiFiDeauthApp));
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
esp8266_deauth_app_init(app);
|
||||
|
||||
furi_hal_gpio_init_simple(app->m_GpioButtons.pinButtonUp, GpioModeOutputPushPull);
|
||||
|
||||
@@ -97,7 +97,7 @@ 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);
|
||||
dolphin_deed(DolphinDeedGpioUartBridge);
|
||||
scene_manager_next_scene(app->scene_manager, GpioSceneUsbUart);
|
||||
} else {
|
||||
scene_manager_next_scene(app->scene_manager, GpioSceneUsbUartCloseRpc);
|
||||
|
||||
@@ -161,7 +161,7 @@ static void app_input_callback(InputEvent* input_event, void* ctx) {
|
||||
int32_t infrared_remote_app(void* p) {
|
||||
UNUSED(p);
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(InputEvent));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
// App button string
|
||||
IRApp* app = malloc(sizeof(IRApp));
|
||||
|
||||
@@ -287,7 +287,7 @@ void start_mjthread(PluginState* plugin_state) {
|
||||
int32_t mousejacker_app(void* p) {
|
||||
UNUSED(p);
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
PluginState* plugin_state = malloc(sizeof(PluginState));
|
||||
mousejacker_state_init(plugin_state);
|
||||
|
||||
2
applications/external/multi_fuzzer/fuzzer.c
vendored
2
applications/external/multi_fuzzer/fuzzer.c
vendored
@@ -21,7 +21,7 @@ static void fuzzer_app_tick_event_callback(void* context) {
|
||||
}
|
||||
|
||||
PacsFuzzerApp* fuzzer_app_alloc() {
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
PacsFuzzerApp* app = malloc(sizeof(PacsFuzzerApp));
|
||||
|
||||
|
||||
2
applications/external/nfc_magic/nfc_magic.c
vendored
2
applications/external/nfc_magic/nfc_magic.c
vendored
@@ -174,7 +174,7 @@ int32_t nfc_magic_app(void* p) {
|
||||
UNUSED(p);
|
||||
NfcMagic* nfc_magic = nfc_magic_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);
|
||||
|
||||
view_dispatcher_run(nfc_magic->view_dispatcher);
|
||||
|
||||
2
applications/external/nrf24scan/nrf24scan.c
vendored
2
applications/external/nrf24scan/nrf24scan.c
vendored
@@ -1332,7 +1332,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
||||
int32_t nrf24scan_app(void* p) {
|
||||
UNUSED(p);
|
||||
APP = malloc(sizeof(Nrf24Scan));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
APP->event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
|
||||
PluginState* plugin_state = malloc(sizeof(PluginState));
|
||||
plugin_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
||||
|
||||
2
applications/external/nrfsniff/nrfsniff.c
vendored
2
applications/external/nrfsniff/nrfsniff.c
vendored
@@ -315,7 +315,7 @@ static void start_sniffing() {
|
||||
|
||||
int32_t nrfsniff_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
uint8_t address[5] = {0};
|
||||
uint32_t start = 0;
|
||||
hexlify(address, 5, top_address);
|
||||
|
||||
2
applications/external/picopass/picopass.c
vendored
2
applications/external/picopass/picopass.c
vendored
@@ -201,7 +201,7 @@ int32_t picopass_app(void* p) {
|
||||
UNUSED(p);
|
||||
picopass_migrate_from_old_folder();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
Picopass* picopass = picopass_alloc();
|
||||
|
||||
scene_manager_next_scene(picopass->scene_manager, PicopassSceneStart);
|
||||
|
||||
@@ -202,7 +202,7 @@ int32_t pocsag_pager_app(void* p) {
|
||||
UNUSED(p);
|
||||
POCSAGPagerApp* pocsag_pager_app = pocsag_pager_app_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
view_dispatcher_run(pocsag_pager_app->view_dispatcher);
|
||||
|
||||
pocsag_pager_app_free(pocsag_pager_app);
|
||||
|
||||
2
applications/external/protoview/app.c
vendored
2
applications/external/protoview/app.c
vendored
@@ -262,7 +262,7 @@ static bool keyboard_view_dispatcher_navigation_callback(void* ctx) {
|
||||
int32_t protoview_app_entry(void* p) {
|
||||
UNUSED(p);
|
||||
ProtoViewApp* app = protoview_app_alloc();
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
/* Create a timer. We do data analysis in the callback. */
|
||||
FuriTimer* timer = furi_timer_alloc(timer_callback, FuriTimerTypePeriodic, app);
|
||||
|
||||
@@ -85,7 +85,7 @@ int32_t sentry_safe_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(Event));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
SentryState* sentry_state = malloc(sizeof(SentryState));
|
||||
|
||||
|
||||
@@ -403,7 +403,7 @@ void spectrum_analyzer_free(SpectrumAnalyzer* instance) {
|
||||
int32_t spectrum_analyzer_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
SpectrumAnalyzer* spectrum_analyzer = spectrum_analyzer_alloc();
|
||||
InputEvent input;
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ void subbrute_popup_closed_callback(void* context) {
|
||||
int32_t subbrute_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
SubBruteState* instance = subbrute_alloc();
|
||||
view_dispatcher_attach_to_gui(
|
||||
instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen);
|
||||
|
||||
@@ -697,7 +697,7 @@ void playlist_free(Playlist* app) {
|
||||
|
||||
int32_t playlist_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
// create playlist folder
|
||||
{
|
||||
|
||||
@@ -147,7 +147,7 @@ void subghz_remote_app_free(SubGhzRemoteApp* app) {
|
||||
|
||||
int32_t subghz_remote_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
SubGhzRemoteApp* subghz_remote_app = subghz_remote_app_alloc();
|
||||
|
||||
furi_string_set(subghz_remote_app->file_path, SUBREM_APP_FOLDER);
|
||||
|
||||
@@ -25,7 +25,7 @@ static void wifi_deauther_app_tick_event_callback(void* context) {
|
||||
|
||||
WifideautherApp* wifi_deauther_app_alloc() {
|
||||
WifideautherApp* app = malloc(sizeof(WifideautherApp));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
app->gui = furi_record_open(RECORD_GUI);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ static void wifi_marauder_app_tick_event_callback(void* context) {
|
||||
|
||||
WifiMarauderApp* wifi_marauder_app_alloc() {
|
||||
WifiMarauderApp* app = malloc(sizeof(WifiMarauderApp));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
app->gui = furi_record_open(RECORD_GUI);
|
||||
app->dialogs = furi_record_open(RECORD_DIALOGS);
|
||||
|
||||
2
applications/external/zombiez/zombiez.c
vendored
2
applications/external/zombiez/zombiez.c
vendored
@@ -231,7 +231,7 @@ static void tick(PluginState* const plugin_state) {
|
||||
free(z);
|
||||
plugin_state->zombies[i] = NULL;
|
||||
plugin_state->score++;
|
||||
//if(plugin_state->score % 15 == 0) DOLPHIN_DEED(getRandomDeed());
|
||||
//if(plugin_state->score % 15 == 0) dolphin_deed(getRandomDeed());
|
||||
//}
|
||||
} else if(z->position.x <= WALL_X && z->position.x > 0) { // zombie got to the wall
|
||||
plugin_state->zombies_count -= 1;
|
||||
|
||||
@@ -730,7 +730,7 @@ static int32_t bad_kb_worker(void* context) {
|
||||
if(flags & WorkerEvtEnd) {
|
||||
break;
|
||||
} else if(flags & WorkerEvtStartStop) { // Start executing script
|
||||
DOLPHIN_DEED(DolphinDeedBadKbPlayScript);
|
||||
dolphin_deed(DolphinDeedBadKbPlayScript);
|
||||
delay_val = 0;
|
||||
bad_kb->buf_len = 0;
|
||||
bad_kb->st.line_cur = 0;
|
||||
@@ -754,7 +754,7 @@ static int32_t bad_kb_worker(void* context) {
|
||||
if(flags & WorkerEvtEnd) {
|
||||
break;
|
||||
} else if(flags & WorkerEvtConnect) { // Start executing script
|
||||
DOLPHIN_DEED(DolphinDeedBadKbPlayScript);
|
||||
dolphin_deed(DolphinDeedBadKbPlayScript);
|
||||
delay_val = 0;
|
||||
bad_kb->buf_len = 0;
|
||||
bad_kb->st.line_cur = 0;
|
||||
|
||||
@@ -296,7 +296,7 @@ int32_t nfc_app(char* p) {
|
||||
dolphin_deed(DolphinDeedNfcEmulate);
|
||||
} else if(nfc->dev->format == NfcDeviceSaveFormatBankCard) {
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneDeviceInfo);
|
||||
DOLPHIN_DEED(DolphinDeedNfcEmulate);
|
||||
dolphin_deed(DolphinDeedNfcEmulate);
|
||||
} else {
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneEmulateUid);
|
||||
dolphin_deed(DolphinDeedNfcEmulate);
|
||||
|
||||
@@ -53,9 +53,9 @@ bool nfc_scene_felica_menu_on_event(void* context, SceneManagerEvent event) {
|
||||
} else if(event.event == SubmenuIndexEmulate) {
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneFelicaEmulate);
|
||||
if(scene_manager_has_previous_scene(nfc->scene_manager, NfcSceneSetType)) {
|
||||
DOLPHIN_DEED(DolphinDeedNfcAddEmulate);
|
||||
dolphin_deed(DolphinDeedNfcAddEmulate);
|
||||
} else {
|
||||
DOLPHIN_DEED(DolphinDeedNfcEmulate);
|
||||
dolphin_deed(DolphinDeedNfcEmulate);
|
||||
}
|
||||
consumed = true;
|
||||
} else if(event.event == SubmenuIndexUnlock) {
|
||||
|
||||
@@ -49,9 +49,9 @@ bool nfc_scene_nfcf_menu_on_event(void* context, SceneManagerEvent event) {
|
||||
} else if(event.event == SubmenuIndexEmulate) {
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneFelicaEmulate);
|
||||
if(scene_manager_has_previous_scene(nfc->scene_manager, NfcSceneSetType)) {
|
||||
DOLPHIN_DEED(DolphinDeedNfcAddEmulate);
|
||||
dolphin_deed(DolphinDeedNfcAddEmulate);
|
||||
} else {
|
||||
DOLPHIN_DEED(DolphinDeedNfcEmulate);
|
||||
dolphin_deed(DolphinDeedNfcEmulate);
|
||||
}
|
||||
consumed = true;
|
||||
} else if(event.event == SubmenuIndexUnlock) {
|
||||
|
||||
@@ -92,7 +92,7 @@ bool nfc_scene_read_on_event(void* context, SceneManagerEvent event) {
|
||||
} else if(event.event == NfcWorkerEventReadBankCard) {
|
||||
notification_message(nfc->notifications, &sequence_success);
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneEmvReadSuccess);
|
||||
DOLPHIN_DEED(DolphinDeedNfcReadSuccess);
|
||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||
consumed = true;
|
||||
} else if(event.event == NfcWorkerEventReadMfClassicDictAttackRequired) {
|
||||
if(mf_classic_dict_check_presence(MfClassicDictTypeSystem)) {
|
||||
@@ -104,12 +104,12 @@ bool nfc_scene_read_on_event(void* context, SceneManagerEvent event) {
|
||||
} else if(event.event == NfcWorkerEventReadUidNfcF) {
|
||||
notification_message(nfc->notifications, &sequence_success);
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneNfcfReadSuccess);
|
||||
DOLPHIN_DEED(DolphinDeedNfcReadSuccess);
|
||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||
consumed = true;
|
||||
} else if(event.event == NfcWorkerEventReadFelica) {
|
||||
notification_message(nfc->notifications, &sequence_success);
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneFelicaReadSuccess);
|
||||
DOLPHIN_DEED(DolphinDeedNfcReadSuccess);
|
||||
dolphin_deed(DolphinDeedNfcReadSuccess);
|
||||
consumed = true;
|
||||
} else if(event.event == NfcWorkerEventCardDetected) {
|
||||
nfc_scene_read_set_state(nfc, NfcSceneReadStateReading);
|
||||
|
||||
Reference in New Issue
Block a user