Revert "Option to preload extmainapps or not"

This reverts commit 33b8519202.
This commit is contained in:
Willy-JL
2023-06-23 00:47:19 +01:00
parent 4ff29e8910
commit c8ac5cc7b4
3 changed files with 1 additions and 4 deletions
-1
View File
@@ -2,7 +2,6 @@ App(
appid="gpio",
name="GPIO",
apptype=FlipperAppType.EXTMAINAPP,
preload=True,
entry_point="gpio_app",
cdefines=["APP_GPIO"],
requires=["gui"],
@@ -2,7 +2,6 @@ App(
appid="ibutton",
name="iButton",
apptype=FlipperAppType.EXTMAINAPP,
preload=True,
targets=["f7"],
entry_point="ibutton_app",
cdefines=["APP_IBUTTON"],
+1 -2
View File
@@ -45,7 +45,6 @@ class FlipperApplication:
appid: str
apptype: FlipperAppType
preload: Optional[bool] = False
name: Optional[str] = ""
entry_point: Optional[str] = None
flags: List[str] = field(default_factory=lambda: ["Default"])
@@ -381,7 +380,7 @@ class ApplicationsCGenerator:
{{.app = NULL,
.name = "{app.name}",
.appid = "/ext/apps/.Main/{app.appid}.fap",
.stack_size = {1 if app.preload else 0},
.stack_size = 0,
.icon = {f"&{app.icon}" if app.icon else "NULL"},
.flags = {'|'.join(f"FlipperApplicationFlag{flag}" for flag in app.flags)}}}"""
return f"""