From fe9b718f8978cfd792f7303214b2dd45172b8d4b Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Tue, 4 Feb 2025 04:29:07 -0700 Subject: Working on script context --- src/sldj.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sldj.h') diff --git a/src/sldj.h b/src/sldj.h index 1db4331..7788a86 100644 --- a/src/sldj.h +++ b/src/sldj.h @@ -6,8 +6,8 @@ #include #include "sldjConfig.h" -#include "util.h" #include "scripting.h" +#include "libsldj/util.h" #ifndef SLDJ_H #define SLDJ_H @@ -16,10 +16,13 @@ typedef struct Sldj { RenderTexture viewport; uint32_t frameCounter; + + // Used for always using a 0 to 2**16 range when scanning. uint16_t xCount; uint16_t yCount; SldjScripting scripting; + char scriptFilepath[SLDJ_NAMEMAX]; } Sldj; void initSldj(Sldj* sldj); @@ -27,5 +30,7 @@ void updateSldj(Sldj* sldj); void closeSldj(Sldj* sldj); void resetViewport(Sldj* sldj, int width, int height); +void reloadScriptContext(Sldj* sldj); +void reloadScript(Sldj* sldj); #endif -- cgit v1.2.3