| 41 | } |
| 42 | |
| 43 | ReadmeTxtPtr ReadmeTxt::LoadForCurrentMod() |
| 44 | { |
| 45 | std::string readmeTxtPath = GetOutputPathForCurrentMod() + NAME(); |
| 46 | |
| 47 | rMessage() << "Trying to open file " << readmeTxtPath << std::endl; |
| 48 | |
| 49 | ArchiveTextFilePtr file = GlobalFileSystem().openTextFileInAbsolutePath(readmeTxtPath); |
| 50 | |
| 51 | if (file) |
| 52 | { |
| 53 | std::istream stream(&(file->getInputStream())); |
| 54 | return CreateFromStream(stream); |
| 55 | } |
| 56 | |
| 57 | return std::make_shared<ReadmeTxt>(); |
| 58 | } |
| 59 | |
| 60 | std::string ReadmeTxt::toString() |
| 61 | { |
nothing calls this directly
no test coverage detected