mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 17:48:35 -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
|
{2, DolphinAppIbutton}, // DolphinDeedIbuttonAdd
|
||||||
|
|
||||||
{3, DolphinAppBadKb}, // DolphinDeedBadKbPlayScript
|
{3, DolphinAppBadKb}, // DolphinDeedBadKbPlayScript
|
||||||
|
|
||||||
{3, DolphinAppPlugin}, // DolphinDeedU2fAuthorized
|
{3, DolphinAppPlugin}, // DolphinDeedU2fAuthorized
|
||||||
|
|
||||||
{1, DolphinAppPlugin}, // DolphinDeedGpioUartBridge
|
{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}, // DolphinDeedPluginGameStart
|
||||||
{0, DolphinAppPlugin}, // DolphinDeedPluginGameWin
|
{0, DolphinAppPlugin}, // DolphinDeedPluginGameWin
|
||||||
|
// Only for pentesting apps, yielded by loader
|
||||||
|
{2, DolphinAppPlugin}, // DolphinDeedPluginInternalStart
|
||||||
};
|
};
|
||||||
|
|
||||||
static uint8_t dolphin_deed_limits[] = {
|
static uint8_t dolphin_deed_limits[] = {
|
||||||
|
|||||||
@@ -53,11 +53,15 @@ typedef enum {
|
|||||||
DolphinDeedBadKbPlayScript,
|
DolphinDeedBadKbPlayScript,
|
||||||
|
|
||||||
DolphinDeedU2fAuthorized,
|
DolphinDeedU2fAuthorized,
|
||||||
|
|
||||||
DolphinDeedGpioUartBridge,
|
DolphinDeedGpioUartBridge,
|
||||||
|
|
||||||
|
// Values set to 0 to handle deeds in loader not by individual apps
|
||||||
DolphinDeedPluginStart,
|
DolphinDeedPluginStart,
|
||||||
DolphinDeedPluginGameStart,
|
DolphinDeedPluginGameStart,
|
||||||
DolphinDeedPluginGameWin,
|
DolphinDeedPluginGameWin,
|
||||||
|
// Only for pentesting apps, yielded by loader
|
||||||
|
DolphinDeedPluginInternalStart,
|
||||||
|
|
||||||
DolphinDeedMAX,
|
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/")) &&
|
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/"))) {
|
!furi_string_start_with_str(app->fap_path, EXT_PATH("apps/Media/"))) {
|
||||||
dolphin_deed(DolphinDeedPluginStart);
|
dolphin_deed(DolphinDeedPluginInternalStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
// load app
|
// load app
|
||||||
|
|||||||
Reference in New Issue
Block a user