MX hace 2 años
padre
commit
85ec9b0706

+ 5 - 3
non_catalog_apps/chess/application.fam

@@ -1,5 +1,5 @@
 App(
-    appid="flipchess",
+    appid="chess",
     name="Chess",
     apptype=FlipperAppType.EXTERNAL,
     entry_point="flipchess_app",
@@ -7,11 +7,13 @@ App(
         "gui",
     ],
     stack_size=4 * 1024,
-    order=40,
+    order=10,
     fap_icon="flipchess_10px.png",
     fap_icon_assets="icons",
+    fap_icon_assets_symbol="flipchess",
     fap_category="Games",
-    fap_description="Chess for Flipper",
     fap_author="Struan Clark (xtruan)",
     fap_weburl="https://github.com/xtruan/flipper-chess",
+    fap_version=(1, 6),
+    fap_description="Chess for Flipper",
 )

+ 1 - 1
non_catalog_apps/chess/flipchess.h

@@ -16,7 +16,7 @@
 #include "views/flipchess_startscreen.h"
 #include "views/flipchess_scene_1.h"
 
-#define FLIPCHESS_VERSION "v0.1.4"
+#define FLIPCHESS_VERSION "v1.6.0"
 
 #define TEXT_BUFFER_SIZE 96
 #define TEXT_SIZE (TEXT_BUFFER_SIZE - 1)

+ 0 - 1
non_catalog_apps/chess/helpers/flipchess_file.c

@@ -1,6 +1,5 @@
 #include "flipchess_file.h"
 #include <storage/storage.h>
-#include <applications.h>
 #include <loader/loader.h>
 
 // #define FLIPCHESS_APP_BASE_FOLDER APP_BOARDA_PATH("flipchess")

+ 4 - 5
non_catalog_apps/chess/sam/stm32_sam.cpp

@@ -5400,15 +5400,14 @@ void STM32SAM::sam(
         }
     }
 
+    if(i < 256) {
+        input[i] = phonetic ? '\x9b' : '[';
+    }
+
     if(!phonetic) {
-        strncat(input, "[", 256);
         if(!TextToPhonemes((unsigned char*)input)) {
-            // PrintUsage();
             return;
         }
-
-    } else {
-        strncat(input, "\x9b", 256);
     }
 
     SetInput(input);