| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected