Save bytes, add screenshots into main and more

- Also run script on bootup if a script called startup.te is found on the root of the sd
- Saved bytes by just disabling making exfat partitions, lol
This commit is contained in:
suchmememanyskill
2021-01-10 00:10:28 +01:00
parent 5485f5ca06
commit 3f80693d9e
8 changed files with 18 additions and 9 deletions

View File

@@ -22,4 +22,6 @@ typedef struct {
};
u16 sizeUnion;
};
} FSEntry_t;
} FSEntry_t;
#define newFSEntry(filename) (FSEntry_t) {.name = filename}

View File

@@ -83,7 +83,7 @@ void RunScript(char *path, FSEntry_t entry){
gfx_clearscreen();
scriptCtx_t ctx = createScriptCtx();
ctx.script = runLexar(script, size);
ctx.script = runLexer(script, size);
free(script);
dictVectorAdd(&ctx.varDict, newDict(CpyStr("_CWD"), (newVar(StringType, 0, .stringType = path))));

View File

@@ -3,4 +3,5 @@
typedef void (*fileMenuPath)(char *path, FSEntry_t entry);
void FileMenu(char *path, FSEntry_t entry);
void FileMenu(char *path, FSEntry_t entry);
void RunScript(char *path, FSEntry_t entry);