diff options
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 9 |
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 ) { |
