Added some missing lua functions.

This commit is contained in:
BenDol 2014-07-12 01:03:21 +12:00
parent 9f7aafac0b
commit 07ac5c27ca
1 changed files with 3 additions and 0 deletions

View File

@ -186,6 +186,7 @@ void Application::registerLuaFunctions()
g_lua.bindSingletonFunction("g_resources", "getUserDir", &ResourceManager::getUserDir, &g_resources); g_lua.bindSingletonFunction("g_resources", "getUserDir", &ResourceManager::getUserDir, &g_resources);
g_lua.bindSingletonFunction("g_resources", "getWriteDir", &ResourceManager::getWriteDir, &g_resources); g_lua.bindSingletonFunction("g_resources", "getWriteDir", &ResourceManager::getWriteDir, &g_resources);
g_lua.bindSingletonFunction("g_resources", "getSearchPaths", &ResourceManager::getSearchPaths, &g_resources); g_lua.bindSingletonFunction("g_resources", "getSearchPaths", &ResourceManager::getSearchPaths, &g_resources);
g_lua.bindSingletonFunction("g_resources", "getRealPath", &ResourceManager::getRealPath, &g_resources);
g_lua.bindSingletonFunction("g_resources", "listDirectoryFiles", &ResourceManager::listDirectoryFiles, &g_resources); g_lua.bindSingletonFunction("g_resources", "listDirectoryFiles", &ResourceManager::listDirectoryFiles, &g_resources);
g_lua.bindSingletonFunction("g_resources", "getDirectoryFiles", &ResourceManager::getDirectoryFiles, &g_resources); g_lua.bindSingletonFunction("g_resources", "getDirectoryFiles", &ResourceManager::getDirectoryFiles, &g_resources);
g_lua.bindSingletonFunction("g_resources", "readFileContents", &ResourceManager::readFileContents, &g_resources); g_lua.bindSingletonFunction("g_resources", "readFileContents", &ResourceManager::readFileContents, &g_resources);
@ -193,6 +194,7 @@ void Application::registerLuaFunctions()
g_lua.bindSingletonFunction("g_resources", "isFileType", &ResourceManager::isFileType, &g_resources); g_lua.bindSingletonFunction("g_resources", "isFileType", &ResourceManager::isFileType, &g_resources);
g_lua.bindSingletonFunction("g_resources", "getFileTime", &ResourceManager::getFileTime, &g_resources); g_lua.bindSingletonFunction("g_resources", "getFileTime", &ResourceManager::getFileTime, &g_resources);
g_lua.bindSingletonFunction("g_resources", "makeDir", &ResourceManager::makeDir, &g_resources); g_lua.bindSingletonFunction("g_resources", "makeDir", &ResourceManager::makeDir, &g_resources);
g_lua.bindSingletonFunction("g_resources", "deleteFile", &ResourceManager::deleteFile, &g_resources);
// Config // Config
g_lua.registerClass<Config>(); g_lua.registerClass<Config>();
@ -206,6 +208,7 @@ void Application::registerLuaFunctions()
g_lua.bindClassMemberFunction<Config>("setNode", &Config::setNode); g_lua.bindClassMemberFunction<Config>("setNode", &Config::setNode);
g_lua.bindClassMemberFunction<Config>("getNode", &Config::getNode); g_lua.bindClassMemberFunction<Config>("getNode", &Config::getNode);
g_lua.bindClassMemberFunction<Config>("mergeNode", &Config::mergeNode); g_lua.bindClassMemberFunction<Config>("mergeNode", &Config::mergeNode);
g_lua.bindClassMemberFunction<Config>("getFileName", &Config::getFileName);
// Module // Module
g_lua.registerClass<Module>(); g_lua.registerClass<Module>();