增加List处理功能

This commit is contained in:
2025-09-04 14:30:09 +08:00
parent 80390e48a7
commit 4235742d87
13 changed files with 615 additions and 82 deletions
+9 -4
View File
@@ -15,13 +15,18 @@ extern "C"
bool run_lua_file(const char* szLuaFilename)
{
//NPK::IFileList* pNpkList = NPK::createEmptyFileList();
//pNpkList->loadListFromFile(L"d:\\output.txt", "sprite/",
// true, true, true, true, true,
// false);
//pNpkList->applyToLocalNPKFiles(L"D:\\WeGameApps\\地下城与勇士:创新世纪\\ImagePacks2");
//NPK::destoryFileList(pNpkList);
//return true;
lua_State* L = lua_open();
luaL_openlibs(L);
//register global functions
lua_tinker::def(L, "getLastErrorCode", &NPK::getLastErrorCode);
lua_tinker::def(L, "getLastErrorMessage", &NPK::getLastErrorMessage);
//register classes
registerNPKLuaLibs(L);
registerUtilsLuaLibs(L);