Changeset 2530 for code/branches/bugger/src/core
- Timestamp:
- Dec 23, 2008, 10:40:38 PM (16 years ago)
- Location:
- code/branches/bugger
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bugger
- Property svn:mergeinfo changed
/code/branches/questsystem2 (added) merged: 2109,2146,2159,2191,2193-2196,2205-2206,2208-2209,2221,2226,2228,2251,2258
- Property svn:mergeinfo changed
-
code/branches/bugger/src/core/LuaBind.cc
r2344 r2530 87 87 } 88 88 89 char line[1024 ];89 char line[1024*32]; 90 90 std::string levelString = ""; 91 91 92 92 while (file.good() && !file.eof()) 93 93 { 94 file.getline(line, 1024 );94 file.getline(line, 1024*32); 95 95 levelString += line; 96 96 levelString += "\n"; … … 100 100 //std::string output; 101 101 102 if (luaTags) luaSource_ = replaceLuaTags(levelString); 102 if (luaTags) 103 luaSource_ = replaceLuaTags(levelString); 104 else 105 luaSource_ = levelString; 103 106 COUT(5) << "ParsedSourceCode: " << luaSource_ << std::endl; 104 107 } … … 126 129 isRunning_ = true; 127 130 int error = 0; 128 std::string init = "local scr = orxonox.LuaBind:getInstance()\nlocal debug = print\nprint = function(s)\nscr:luaPrint(s)\nend\ninclude = function(f)\nfile = assert(io.open(\"" + this->includePath_ + "\"..\"/\"..f))\ncontent = file:read(\"*a\")\nfile:close()\nsource = scr:replaceLuaTags(content)\nassert(loadstring(source))()\nend\n"; 131 std::string init = 132 "local scr = orxonox.LuaBind:getInstance()\n \ 133 local debug = print\n \ 134 print = function(s)\n \ 135 scr:luaPrint(s)\n \ 136 end\n \ 137 include = function(f)\n \ 138 file = assert(io.open(\"" + this->includePath_ + "\"..\"/\"..f))\n \ 139 content = file:read(\"*a\")\n \ 140 file:close()\n \ 141 source = scr:replaceLuaTags(content)\n \ 142 assert(loadstring(source))()\n \ 143 end\n"; 129 144 init += luaSource_; 130 145 #if LUA_VERSION_NUM == 501 -
code/branches/bugger/src/core/Template.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/bugger/src/core/Template.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/bugger/src/core/XMLFile.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/bugger/src/core/XMLIncludes.h
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.