cleanups in stead stack
This commit is contained in:
parent
151697b99e
commit
b9dea63f0a
|
@ -411,14 +411,17 @@ int instead_init(void)
|
|||
return -1;
|
||||
luaL_openlibs(L);
|
||||
luaL_register(L, "_G", base_funcs);
|
||||
if (dofile(L,STEAD_PATH"/stead.lua")) {
|
||||
if (dofile(L,STEAD_PATH"/stead.lua")) {
|
||||
instead_clear();
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (dofile(L,STEAD_PATH"/gui.lua")) {
|
||||
instead_clear();
|
||||
return -1;
|
||||
}
|
||||
/* cleanup Lua */
|
||||
instead_clear();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue