From 95be0403e69b3047a0375cf965dedca0ad876409 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 15 Oct 2023 22:31:17 +0300 Subject: Argumets stored in RL.arg array. --- src/state.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 2e1a50f..d1a3329 100644 --- a/src/state.c +++ b/src/state.c @@ -6,7 +6,7 @@ State *state; -bool stateInit( const char *exePath ) { +bool stateInit( int argn, const char **argc, const char *exePath ) { state = malloc( sizeof( State ) ); state->exePath = malloc( STRING_LEN * sizeof( char ) ); @@ -107,15 +107,15 @@ bool stateInit( const char *exePath ) { } if ( state->run ) { InitAudioDevice(); - state->run = luaInit(); + state->run = luaInit( argn, argc ); } return state->run; } -void stateInitInterpret() { +void stateInitInterpret( int argn, const char **argc ) { state = malloc( sizeof( State ) ); - luaInit(); + luaInit( argn, argc ); } void stateFree() { -- cgit v1.2.3