mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
JS: C define to move JS runner to flash (still external for now)
This commit is contained in:
@@ -42,7 +42,11 @@ const char* archive_get_flipper_app_name(ArchiveFileTypeEnum file_type) {
|
||||
case ArchiveFileTypeDiskImage:
|
||||
return EXT_PATH("apps/USB/mass_storage.fap");
|
||||
case ArchiveFileTypeJS:
|
||||
#ifdef JS_RUNNER_FAP
|
||||
return EXT_PATH("apps/assets/js_app.fap");
|
||||
#else
|
||||
return "JS Runner";
|
||||
#endif
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,11 @@
|
||||
|
||||
#define TAG "LoaderApplications"
|
||||
|
||||
#ifdef JS_RUNNER_FAP
|
||||
#define JS_RUNNER_APP EXT_PATH("apps/assets/js_app.fap")
|
||||
#else
|
||||
#define JS_RUNNER_APP "JS Runner"
|
||||
#endif
|
||||
|
||||
struct LoaderApplications {
|
||||
FuriThread* thread;
|
||||
|
||||
@@ -3,6 +3,8 @@ App(
|
||||
name="JS Runner",
|
||||
apptype=FlipperAppType.EXTERNAL,
|
||||
entry_point="js_app",
|
||||
cdefines=["JS_RUNNER_FAP"],
|
||||
# Sources separation breaks linking when internal, comment as needed
|
||||
sources=[
|
||||
"*.c*",
|
||||
"!modules",
|
||||
|
||||
Reference in New Issue
Block a user