MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Start

Function Start

source/cpu.cpp:666–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664// ***********************************************************************
665
666void Start() {
667 if (!pState->appLoaded) return;
668
669 lua_State* L = pState->pProgramState;
670 lua_getglobal(L, "start");
671 if (lua_isfunction(L, -1)) {
672 if (lua_pcall(L, 0, 0, 0) != LUA_OK) {
673 Log::Warn("Lua Runtime Error: %s", lua_tostring(L, lua_gettop(L)));
674 lua_pop(L, 1);
675 }
676 else {
677 pState->hasStarted = true;
678 }
679 }
680}
681
682// ***********************************************************************
683

Callers 2

OnFileChangedFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected