Changeset 2710 for code/trunk/src/core/LuaBind.cc
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/core/LuaBind.cc
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/code/branches/buildsystem3/src/core/LuaBind.cc merged eligible /code/branches/lodfinal/src/core/LuaBind.cc merged eligible /code/branches/network/src/core/LuaBind.cc merged eligible /code/branches/objecthierarchy2/src/core/LuaBind.cc merged eligible /code/branches/pickups2/src/core/LuaBind.cc merged eligible /code/branches/presentation/src/core/LuaBind.cc merged eligible /code/branches/questsystem2/src/core/LuaBind.cc merged eligible /code/branches/weapon2/src/core/LuaBind.cc merged eligible /code/branches/buildsystem/src/core/LuaBind.cc 1874-2276,2278-2400 /code/branches/buildsystem/src/core/Script.cc 1874-2238 /code/branches/buildsystem2/src/core/LuaBind.cc 2506-2658 /code/branches/ceguilua/src/core/LuaBind.cc 1802-1808 /code/branches/core3/src/core/LuaBind.cc 1572-1739 /code/branches/gcc43/src/core/LuaBind.cc 1580 /code/branches/gui/src/core/LuaBind.cc 1635-1723 /code/branches/input/src/core/LuaBind.cc 1629-1636 /code/branches/network64/src/core/LuaBind.cc 2210-2355 /code/branches/objecthierarchy/src/core/LuaBind.cc 1911-2085,2100,2110-2169 /code/branches/overlay/src/core/LuaBind.cc 2117-2385 /code/branches/physics/src/core/LuaBind.cc 1912-2055,2107-2439 /code/branches/physics_merge/src/core/LuaBind.cc 2436-2457 /code/branches/pickups/src/core/LuaBind.cc 1926-2086,2127 /code/branches/questsystem/src/core/LuaBind.cc 1894-2088 /code/branches/script_trigger/src/core/LuaBind.cc 1295-1953,1955 /code/branches/weapon/src/core/LuaBind.cc 1925-2094
r2662 r2710 32 32 #include <map> 33 33 34 #include "lua/lua.hpp" 35 #include "tolua/tolua++.h" 36 #include "tolua/tolua_bind.h" 34 extern "C" { 35 #include <lua.h> 36 #include <lualib.h> 37 } 38 #include <tolua/tolua++.h> 39 #include <boost/filesystem.hpp> 40 37 41 #include "util/String.h" 38 #include "CoreIncludes.h" 42 #include "util/Debug.h" 43 #include "ToluaBindCore.h" 44 #include "Core.h" 39 45 40 46 namespace orxonox … … 46 52 assert(LuaBind::singletonRef_s == 0); 47 53 LuaBind::singletonRef_s = this; 54 55 this->includePath_ = Core::getMediaPathPOSIXString(); 48 56 49 57 luaState_ = lua_open(); … … 78 86 void LuaBind::loadFile(std::string filename, bool luaTags) 79 87 { 88 boost::filesystem::path filepath(filename); 89 80 90 output_ = ""; 81 91 std::ifstream file; 82 file.open(file name.c_str(), std::fstream::in);92 file.open(filepath.file_string().c_str(), std::fstream::in); 83 93 84 94 if (!file.is_open()) -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.