From 11ebd537d8f2eae6a134aaa164756ed87bc64b50 Mon Sep 17 00:00:00 2001 From: Jeff <57104907+JeffVi@users.noreply.github.com> Date: Sat, 22 Jun 2024 13:22:21 +0200 Subject: [PATCH] Fix compile errors --- source/script/parser.c | 2 +- source/script/scriptError.c | 1 + source/tegraexplorer/tools.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/script/parser.c b/source/script/parser.c index 9323ff2..8780476 100644 --- a/source/script/parser.c +++ b/source/script/parser.c @@ -232,7 +232,7 @@ u8 nextToken(char** inPtr, void** val) { if (!memcmp(t.strToken, in, (t.strToken[1] == '\0') ? 1 : 2)) { //gfx_printf("Token: '%s'\n", t.strToken); ret = Token_Token; - *val = t.token; + *val = (void*)t.token; if (t.strToken[1] != '\0') in++; diff --git a/source/script/scriptError.c b/source/script/scriptError.c index 7feef5b..421bccb 100644 --- a/source/script/scriptError.c +++ b/source/script/scriptError.c @@ -1,6 +1,7 @@ #include "scriptError.h" #include "compat.h" #include +#include "../hid/hid.h" s64 scriptCurrentLine; u8 scriptLastError = 0; diff --git a/source/tegraexplorer/tools.c b/source/tegraexplorer/tools.c index 0c33b42..cd8788f 100644 --- a/source/tegraexplorer/tools.c +++ b/source/tegraexplorer/tools.c @@ -18,6 +18,7 @@ #include #include "../fs/fscopy.h" #include "../utils/utils.h" +#include extern sdmmc_storage_t sd_storage; extern bool is_sd_inited;