mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 14:58:36 -07:00
Only loader gives app xp
This commit is contained in:
@@ -35,13 +35,17 @@ static const DolphinDeedWeight dolphin_deed_weights[] = {
|
||||
{2, DolphinAppIbutton}, // DolphinDeedIbuttonAdd
|
||||
|
||||
{3, DolphinAppBadKb}, // DolphinDeedBadKbPlayScript
|
||||
|
||||
{3, DolphinAppPlugin}, // DolphinDeedU2fAuthorized
|
||||
|
||||
{1, DolphinAppPlugin}, // DolphinDeedGpioUartBridge
|
||||
|
||||
{2, DolphinAppPlugin}, // DolphinDeedPluginStart
|
||||
// Values set to 0 to handle deeds in loader not by individual apps
|
||||
{0, DolphinAppPlugin}, // DolphinDeedPluginStart
|
||||
{0, DolphinAppPlugin}, // DolphinDeedPluginGameStart
|
||||
{0, DolphinAppPlugin}, // DolphinDeedPluginGameWin
|
||||
// Only for pentesting apps, yielded by loader
|
||||
{2, DolphinAppPlugin}, // DolphinDeedPluginInternalStart
|
||||
};
|
||||
|
||||
static uint8_t dolphin_deed_limits[] = {
|
||||
|
||||
@@ -53,11 +53,15 @@ typedef enum {
|
||||
DolphinDeedBadKbPlayScript,
|
||||
|
||||
DolphinDeedU2fAuthorized,
|
||||
|
||||
DolphinDeedGpioUartBridge,
|
||||
|
||||
// Values set to 0 to handle deeds in loader not by individual apps
|
||||
DolphinDeedPluginStart,
|
||||
DolphinDeedPluginGameStart,
|
||||
DolphinDeedPluginGameWin,
|
||||
// Only for pentesting apps, yielded by loader
|
||||
DolphinDeedPluginInternalStart,
|
||||
|
||||
DolphinDeedMAX,
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ static void loader_applications_start_app(LoaderApplicationsApp* app) {
|
||||
|
||||
if(!furi_string_start_with_str(app->fap_path, EXT_PATH("apps/Games/")) &&
|
||||
!furi_string_start_with_str(app->fap_path, EXT_PATH("apps/Media/"))) {
|
||||
dolphin_deed(DolphinDeedPluginStart);
|
||||
dolphin_deed(DolphinDeedPluginInternalStart);
|
||||
}
|
||||
|
||||
// load app
|
||||
|
||||
Reference in New Issue
Block a user