diff --git a/applications/plugins/sam/application.fam b/applications/plugins/sam/application.fam index e26d553d5..31a396272 100644 --- a/applications/plugins/sam/application.fam +++ b/applications/plugins/sam/application.fam @@ -1,6 +1,6 @@ App( appid="SAM", - name="SAM", + name="SAM AYBABTU", apptype=FlipperAppType.PLUGIN, entry_point="sam_app", requires=[ @@ -12,3 +12,31 @@ App( fap_icon="../../../assets/icons/Archive/music_10px.png", fap_category="Music", ) +App( + appid="SAM_YES", + name="SAM YES", + apptype=FlipperAppType.PLUGIN, + entry_point="sam_app_yes", + requires=[ + "gui", + "dialogs", + ], + stack_size=4 * 1024, + order=20, + fap_icon="../../../assets/icons/Archive/music_10px.png", + fap_category="Music", +) +App( + appid="SAM_NO", + name="SAM NO", + apptype=FlipperAppType.PLUGIN, + entry_point="sam_app_no", + requires=[ + "gui", + "dialogs", + ], + stack_size=4 * 1024, + order=20, + fap_icon="../../../assets/icons/Archive/music_10px.png", + fap_category="Music", +) diff --git a/applications/plugins/sam/sam_app.cpp b/applications/plugins/sam/sam_app.cpp index 9f332ddef..7358592e0 100644 --- a/applications/plugins/sam/sam_app.cpp +++ b/applications/plugins/sam/sam_app.cpp @@ -10,5 +10,25 @@ extern "C" int32_t sam_app(void* p) { voice.say( "All your base are belong to us. You have no chance to survive make your time. ha. ha. ha. GOOD BYE. "); + return 0; +} + +extern "C" int32_t sam_app_yes(void* p) { + UNUSED(p); + + voice.begin(); + voice.say( + "Yes"); + + return 0; +} + +extern "C" int32_t sam_app_no(void* p) { + UNUSED(p); + + voice.begin(); + voice.say( + "No"); + return 0; } \ No newline at end of file