From 9b27daefc225752f3f24ea862e9c2be13f8addf6 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 18 Feb 2024 15:26:21 +0200 Subject: Process renamed to update to be more inline with naming of raylib and common convention. --- src/lua_core.c | 4 ++-- src/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lua_core.c b/src/lua_core.c index 53059b4..b9939cb 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -1127,7 +1127,7 @@ bool luaCallMain() { return state->run; } -void luaCallProcess() { +void luaCallUpdate() { #if defined PLATFORM_DESKTOP_SDL && defined LUA_EVENTS platformSendEvents(); @@ -1138,7 +1138,7 @@ void luaCallProcess() { int tracebackidx = lua_gettop(L); lua_getglobal( L, "RL" ); - lua_getfield( L, -1, "process" ); + lua_getfield( L, -1, "update" ); if ( lua_isfunction( L, -1 ) ) { lua_pushnumber( L, GetFrameTime() ); diff --git a/src/main.c b/src/main.c index 75bd693..3557bc5 100644 --- a/src/main.c +++ b/src/main.c @@ -70,7 +70,7 @@ int main( int argn, const char **argc ) { if ( WindowShouldClose() ) { state->run = false; } - luaCallProcess(); + luaCallUpdate(); luaCallDraw(); } luaCallExit(); -- cgit v1.2.3