MCPcopy Create free account
hub / github.com/ZDoom/Raze / G_BuildSaveName

Function G_BuildSaveName

source/common/menu/savegamemanager.cpp:597–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595//=============================================================================
596
597FString G_BuildSaveName(const char* prefix)
598{
599 FString name = G_GetSavegamesFolder() + prefix;
600 DefaultExtension(name, "." SAVEGAME_EXT); // only add an extension if the prefix doesn't have one already.
601 name = NicePath(name.GetChars());
602 name.Substitute("\\", "/");
603 return name;
604}
605

Callers 5

startSaveGameFunction · 0.85
M_AutosaveFunction · 0.85
CCMDFunction · 0.85
UNSAFE_CCMDFunction · 0.85
BuildSaveNameMethod · 0.85

Calls 5

G_GetSavegamesFolderFunction · 0.85
DefaultExtensionFunction · 0.85
NicePathFunction · 0.85
GetCharsMethod · 0.45
SubstituteMethod · 0.45

Tested by

no test coverage detected