Argumets stored in RL.arg array.

This commit is contained in:
jussi
2023-10-15 22:31:17 +03:00
parent 7af7e70031
commit 95be0403e6
9 changed files with 40 additions and 14 deletions

View File

@@ -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() {