forked from github/server
- Lua vm state in global variable
This commit is contained in:
parent
476788755b
commit
7a6935daf7
|
@ -1165,6 +1165,7 @@ typedef struct settings {
|
|||
unsigned int data_turn;
|
||||
boolean disabled[MAXKEYWORDS];
|
||||
struct param * parameters;
|
||||
void * vm_state;
|
||||
} settings;
|
||||
extern settings global;
|
||||
|
||||
|
|
|
@ -645,6 +645,7 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
lua_State * luaState = lua_init();
|
||||
global.vm_state = luaState;
|
||||
if ((i=read_args(argc, argv, luaState))!=0) return i;
|
||||
|
||||
strcat(strcpy(zText, resourcepath()), "/timestrings");
|
||||
|
|
Loading…
Reference in New Issue