使用lua实现npk操作
This commit is contained in:
@@ -27,8 +27,16 @@ bool luaForceCreatePath(const char* szPath)
|
||||
return forceCreatePath(strPath.c_str());
|
||||
}
|
||||
|
||||
//utf8
|
||||
bool luaCreateEmptyPath(const char* szPath)
|
||||
{
|
||||
std::wstring strPath = convertUtf8StringToWide(szPath);
|
||||
return createEmptyPath(strPath.c_str());
|
||||
}
|
||||
|
||||
void registerUtilsLuaLibs(struct lua_State* L)
|
||||
{
|
||||
lua_tinker::def(L, "forceCreatePath", &luaForceCreatePath);
|
||||
lua_tinker::def(L, "forceCreatePathForFile", &luaForceCreatePathForFile);
|
||||
lua_tinker::def(L, "createEmptyPath", &luaCreateEmptyPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user