revert lua_engine.cpp changes
This commit is contained in:
parent
9fcff65cca
commit
5785b9fdda
@ -58,8 +58,12 @@ static void create_libs(State* L, StateType stateType) {
|
||||
openlib(L, "vec4", vec4lib);
|
||||
openlib(L, "yaml", yamllib);
|
||||
|
||||
if (stateType == StateType::BASE || stateType == StateType::SCRIPT) {
|
||||
if (stateType == StateType::SCRIPT) {
|
||||
openlib(L, "app", applib);
|
||||
} else if (stateType == StateType::BASE) {
|
||||
openlib(L, "__vc_app", applib);
|
||||
}
|
||||
if (stateType == StateType::BASE || stateType == StateType::SCRIPT) {
|
||||
openlib(L, "assets", assetslib);
|
||||
openlib(L, "audio", audiolib);
|
||||
openlib(L, "console", consolelib);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user