Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Aug 6, 2023
1 parent 610f791 commit 486ef3a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Quake/lua_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int LUA_Edicts(lua_State* state)
return 3;
}

static void LUA_PrepareState(lua_State* state)
static void LUA_InitStandardLibraries(lua_State* state)
{
// Available standard libraries
static const luaL_Reg stdlibs[] =
Expand Down Expand Up @@ -188,8 +188,13 @@ static void LUA_PrepareState(lua_State* state)
lua_pushnil(state);
lua_setglobal(state, *func);
}
}

static void LUA_PrepareState(lua_State* state)
{
LUA_InitStandardLibraries(state);

// Scripting functions
// Register scripting functions
typedef struct
{
const char* name;
Expand Down

0 comments on commit 486ef3a

Please sign in to comment.