revert lua_engine.cpp changes

This commit is contained in:
MihailRis 2025-08-07 23:05:50 +03:00
parent 9fcff65cca
commit 5785b9fdda

View File

@ -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);