Changeset 2685 for code/branches/buildsystem3/src/core/LuaBind.cc
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/core/LuaBind.cc
r2664 r2685 37 37 } 38 38 #include <tolua/tolua++.h> 39 39 #include <boost/filesystem.hpp> 40 41 #include "util/String.h" 42 #include "util/Debug.h" 40 43 #include "ToluaBindCore.h" 41 #include "util/String.h" 42 #include "CoreIncludes.h" 44 #include "Core.h" 43 45 44 46 namespace orxonox … … 50 52 assert(LuaBind::singletonRef_s == 0); 51 53 LuaBind::singletonRef_s = this; 54 55 this->includePath_ = Core::getMediaPath(); 52 56 53 57 luaState_ = lua_open(); … … 82 86 void LuaBind::loadFile(std::string filename, bool luaTags) 83 87 { 88 boost::filesystem::path filepath(filename); 89 84 90 output_ = ""; 85 91 std::ifstream file; 86 file.open(file name.c_str(), std::fstream::in);92 file.open(filepath.native_file_string().c_str(), std::fstream::in); 87 93 88 94 if (!file.is_open())
Note: See TracChangeset
for help on using the changeset viewer.