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

Function GetSaveDirectory

engine/Poseidon/UI/OptionsUI.cpp:223–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222}
223
224RString GetSaveDirectory()
225{
226 /*
227 RString dir = GetUserDirectory() + RString("Saved");
228 mkdir(dir, nullptr);
229 return dir;
230 */
231 RString dir = GetUserDirectory() + RString("Saved/") + GetBaseDirectory();
232 if (!IsCampaign())
233 {
234 dir = dir + GetBaseSubdirectory() + RString(Glob.header.filenameReal) + RString(".") +
235 RString(Glob.header.worldname) + RString("\\");
236 }
237 CreatePath(dir);
238 return dir;
239}
240
241RString GetTmpSaveDirectory()

Callers 15

SimulateMethod · 0.85
InvokeFunction · 0.85
DisplayMissionMethod · 0.85
SaveContinueFunction · 0.85
RetryMissionMethod · 0.85
OnChildDestroyedMethod · 0.85
DisplayMissionEndMethod · 0.85
StartAutoTestFunction · 0.85
OnSimulateMethod · 0.85
OnChildDestroyedMethod · 0.85
DisplayInterruptMethod · 0.85
DisplayGetReadyMethod · 0.85

Calls 6

GetUserDirectoryFunction · 0.85
GetBaseDirectoryFunction · 0.85
IsCampaignFunction · 0.85
GetBaseSubdirectoryFunction · 0.85
CreatePathFunction · 0.85
RStringClass · 0.50

Tested by

no test coverage detected