add loaders (WIP)

This commit is contained in:
MihailRis 2026-08-22 00:10:30 +03:00
parent 4b234eb661
commit 9ca809ff94
6 changed files with 100 additions and 10 deletions

View file

@ -74,6 +74,11 @@ static void create_libs(State* L, StateType stateType) {
getglobal(L, "__vc_app");
setregistry(L, "app");
createtable(L, 0, 0);
pushvalue(L, -1);
setglobal(L, "__vc_internals");
setregistry(L, "internals");
if (stateType == StateType::SCRIPT) {
getregistry(L, "app");
setglobal(L, "app");