add scripts to the main menu, fix script parser reading beyond EOF
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#pragma once
|
||||
#include "../../utils/vector.h"
|
||||
#include "../../gfx/menu.h"
|
||||
#include "../fstypes.h"
|
||||
|
||||
void FileExplorer(char *path);
|
||||
void FileExplorer(char *path);
|
||||
MenuEntry_t MakeMenuOutFSEntry(FSEntry_t entry);
|
||||
@@ -101,7 +101,7 @@ void RunScript(char *path, FSEntry_t entry){
|
||||
gfx_printf("Init gc\n");
|
||||
initGarbageCollector();
|
||||
gfx_printf("Parsing\n");
|
||||
ParserRet_t ret = parseScript(script);
|
||||
ParserRet_t ret = parseScript(script, size);
|
||||
free(script);
|
||||
gfx_printf("Init vars\n");
|
||||
setStaticVars(&ret.staticVarHolder);
|
||||
|
||||
Reference in New Issue
Block a user