mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-27 01:58:09 -07:00
[FL-3462] External apps icounter (#2928)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ static const DolphinDeedWeight dolphin_deed_weights[] = {
|
||||
|
||||
{1, DolphinAppPlugin}, // DolphinDeedGpioUartBridge
|
||||
|
||||
{1, DolphinAppPlugin}, // DolphinDeedPluginStart
|
||||
{2, DolphinAppPlugin}, // DolphinDeedPluginStart
|
||||
{1, DolphinAppPlugin}, // DolphinDeedPluginGameStart
|
||||
{10, DolphinAppPlugin}, // DolphinDeedPluginGameWin
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <gui/gui.h>
|
||||
#include <gui/view_holder.h>
|
||||
#include <gui/modules/loading.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define TAG "LoaderApplications"
|
||||
|
||||
@@ -119,6 +120,8 @@ static void loader_pubsub_callback(const void* message, void* context) {
|
||||
static void loader_applications_start_app(LoaderApplicationsApp* app) {
|
||||
const char* name = furi_string_get_cstr(app->fap_path);
|
||||
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
|
||||
// load app
|
||||
FuriThreadId thread_id = furi_thread_get_current_id();
|
||||
FuriPubSubSubscription* subscription =
|
||||
|
||||
Reference in New Issue
Block a user