MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / LoadForCurrentMod

Method LoadForCurrentMod

plugins/dm.editing/DarkmodTxt.cpp:203–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203DarkmodTxtPtr 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
220std::string DarkmodTxt::toString()
221{

Callers

nothing calls this directly

Calls 2

rMessageFunction · 0.85

Tested by

no test coverage detected