mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-30 21:58:55 -07:00
Option to preload extmainapps or not
This commit is contained in:
@@ -42,6 +42,7 @@ 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"])
|
||||
@@ -373,7 +374,7 @@ class ApplicationsCGenerator:
|
||||
{{.app = NULL,
|
||||
.name = "{app.name}",
|
||||
.appid = "/ext/apps/.Main/{app.appid}.fap",
|
||||
.stack_size = 0,
|
||||
.stack_size = {1 if app.preload else 0},
|
||||
.icon = {f"&{app.icon}" if app.icon else "NULL"},
|
||||
.flags = {'|'.join(f"FlipperApplicationFlag{flag}" for flag in app.flags)}}}"""
|
||||
return f"""
|
||||
|
||||
Reference in New Issue
Block a user