From 73acc68e50117190ffba70500201b2f3dec32a34 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 18 Aug 2012 15:53:04 -0300 Subject: [PATCH] Fix compilation for ubuntu --- src/framework/CMakeLists.txt | 2 +- src/otclient/luafunctions.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt index 04b708ee..44352404 100644 --- a/src/framework/CMakeLists.txt +++ b/src/framework/CMakeLists.txt @@ -177,7 +177,7 @@ if(WIN32) endif() set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_LIBS ${USE_STATIC_LIBS}) -find_package(Boost 1.50.0 COMPONENTS ${REQUIRED_BOOST_COMPONENTS} REQUIRED) +find_package(Boost 1.46.0 COMPONENTS ${REQUIRED_BOOST_COMPONENTS} REQUIRED) #find lua if(LUAJIT) diff --git a/src/otclient/luafunctions.cpp b/src/otclient/luafunctions.cpp index 4f0d980a..26509972 100644 --- a/src/otclient/luafunctions.cpp +++ b/src/otclient/luafunctions.cpp @@ -53,6 +53,8 @@ void OTClient::registerLuaFunctions() g_lua.bindSingletonFunction("g_things", "loadDat", &ThingTypeManager::loadDat, &g_things); g_lua.bindSingletonFunction("g_things", "loadOtb", &ThingTypeManager::loadOtb, &g_things); g_lua.bindSingletonFunction("g_things", "loadXml", &ThingTypeManager::loadXml, &g_things); + g_lua.bindSingletonFunction("g_things", "isDatLoaded", &ThingTypeManager::isDatLoaded, &g_things); + g_lua.bindSingletonFunction("g_things", "isOtbLoaded", &ThingTypeManager::isOtbLoaded, &g_things); g_lua.bindSingletonFunction("g_things", "getDatSignature", &ThingTypeManager::getDatSignature, &g_things); g_lua.bindSingletonFunction("g_things", "getDatSignature", &ThingTypeManager::getDatSignature, &g_things); g_lua.bindSingletonFunction("g_things", "getThingType", &ThingTypeManager::getThingType, &g_things);