Changeset 6655 for code/branches/gamestate/src/libraries
- Timestamp:
- Mar 29, 2010, 11:27:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/src/libraries/core/LuaState.cc
r6629 r6655 114 114 luaInput = code; 115 115 116 if (sourceFileInfo != NULL) 117 { 118 // Also fill a map with the actual source code. This is just for the include* commands 119 // where the content of sourceFileInfo->filename doesn't match 'code' 120 this->sourceCodeMap_[sourceFileInfo->filename] = code; 121 } 122 116 123 this->doString(luaInput, sourceFileInfo); 124 125 if (sourceFileInfo != NULL) 126 { 127 // Delete source code entry 128 if (sourceFileInfo != NULL) 129 this->sourceCodeMap_.erase(sourceFileInfo->filename); 130 } 117 131 } 118 132 … … 140 154 // The '@' is a Lua convention to identify the chunk name as filename 141 155 chunkname = '@' + sourceFileInfo->filename; 142 143 // Also fill a map with the actual source code. This is just for the include* commands144 // where the content of sourceFileInfo->filename doesn't match 'code'145 this->sourceCodeMap_[sourceFileInfo->filename] = code;146 156 } 147 157 else … … 184 194 // Load the old info again 185 195 sourceFileInfo_ = oldSourceFileInfo; 186 187 // Delete source code entry188 if (sourceFileInfo != NULL)189 this->sourceCodeMap_.erase(sourceFileInfo->filename);190 196 } 191 197
Note: See TracChangeset
for help on using the changeset viewer.