增加List处理功能
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user