summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorjussi2022-11-11 19:23:35 +0200
committerjussi2022-11-11 19:23:35 +0200
commit921ed3b07f4e8c643161a08744b75562055077ff (patch)
treeee10fca564fd0c9417aa6c40561e994446748549 /src/state.c
parent1094b1f833553c26125affddf991f8c7f72da225 (diff)
downloadreilua-enhanced-921ed3b07f4e8c643161a08744b75562055077ff.tar.gz
reilua-enhanced-921ed3b07f4e8c643161a08744b75562055077ff.tar.bz2
reilua-enhanced-921ed3b07f4e8c643161a08744b75562055077ff.zip
Lua interpreter mode and easings module.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 8cecdcd..4f7e302 100644
--- a/src/state.c
+++ b/src/state.c
@@ -108,11 +108,20 @@ bool stateInit( const char *exePath ) {
if ( state->run ) {
InitAudioDevice();
state->run = luaInit();
+ // luaRegister();
+ // defineGlobals();
+
+ state->run = luaInit();
}
return state->run;
}
+bool stateInitInterpret() {
+ state = malloc( sizeof( State ) );
+ luaInit();
+}
+
void stateFree() {
for ( int i = 0; i < state->imageCount; ++i ) {
if ( state->images[i] != NULL ) {