From c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 21 Nov 2024 23:25:28 +0200 Subject: RL.config and InitWindow. --- src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e4fb569..f35d2bf 100644 --- a/src/main.c +++ b/src/main.c @@ -65,14 +65,15 @@ int main( int argn, const char** argc ) { else { printVersion(); stateInit( argn, argc, basePath ); - state->run = luaCallMain(); + luaCallMain(); + luaCallInit(); while ( state->run ) { + luaCallUpdate(); + luaCallDraw(); if ( WindowShouldClose() ) { state->run = false; } - luaCallUpdate(); - luaCallDraw(); } luaCallExit(); } -- cgit v1.2.3