MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CreatePath

Function CreatePath

engine/Poseidon/UI/OptionsUI.cpp:205–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 return FindLocalizedMissionHtmlFile(GetMissionDirectory(), "briefing");
204}
205
206void CreatePath(RString path)
207{
208 // string will be changed temporarily
209 char* start = (char*)path.Data();
210 char* end = start;
211 while (*end)
212 {
213 if (*end == '\\' || *end == '/')
214 {
215 char saved = *end;
216 *end = 0;
217 ::CreateDirectory(path, nullptr);
218 *end = saved;
219 }
220 end++;
221 }
222}
223
224RString GetSaveDirectory()

Callers 11

CreateOperativePathMethod · 0.85
DoProcessXMLMethod · 0.85
ReceiveFileSegmentMethod · 0.85
TransferFaceMethod · 0.85
TransferCustomRadioMethod · 0.85
OnMessageMethod · 0.85
SaveFileFunction · 0.85
CreateMissionMethod · 0.85
GetSaveDirectoryFunction · 0.85
GetTmpSaveDirectoryFunction · 0.85
ConfigSaveFunction · 0.85

Calls 1

DataMethod · 0.45

Tested by

no test coverage detected