| 201 | } |
| 202 | |
| 203 | DarkmodTxtPtr DarkmodTxt::LoadForCurrentMod() |
| 204 | { |
| 205 | std::string darkmodTxtPath = GetOutputPathForCurrentMod() + NAME(); |
| 206 | |
| 207 | rMessage() << "Trying to open file " << darkmodTxtPath << std::endl; |
| 208 | |
| 209 | ArchiveTextFilePtr file = GlobalFileSystem().openTextFileInAbsolutePath(darkmodTxtPath); |
| 210 | |
| 211 | if (file) |
| 212 | { |
| 213 | std::istream stream(&(file->getInputStream())); |
| 214 | return CreateFromStream(stream); |
| 215 | } |
| 216 | |
| 217 | return std::make_shared<DarkmodTxt>(); |
| 218 | } |
| 219 | |
| 220 | std::string DarkmodTxt::toString() |
| 221 | { |
nothing calls this directly
no test coverage detected