MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / LoadPack

Method LoadPack

LuaSTGPlus/LuaWrapper.cpp:522–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520 return 0;
521 }
522 static int LoadPack(lua_State* L)LNOEXCEPT
523 {
524 const char* p = luaL_checkstring(L, 1);
525 const char* pwd = nullptr;
526 if (lua_isstring(L, 2))
527 pwd = luaL_checkstring(L, 2);
528 if (!LRES.LoadPack(p, pwd))
529 return luaL_error(L, "failed to load resource pack '%s'.", p);
530 return 0;
531 }
532 static int UnloadPack(lua_State* L)LNOEXCEPT
533 {
534 const char* p = luaL_checkstring(L, 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected