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

Function startSaveGame

source/core/savegamehelp.cpp:817–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815//---------------------------------------------------------------------------
816
817void startSaveGame(int player, uint8_t** stream, bool skip)
818{
819 auto s = ReadString(stream);
820 savegamefile = s;
821 delete[] s;
822 s = ReadString(stream);
823 savedescription = s;
824 if (!skip && gi->CanSave())
825 {
826 if (player != consoleplayer)
827 {
828 // Paths sent over the network will be valid for the system that sent
829 // the save command. For other systems, the path needs to be changed.
830 savegamefile = G_BuildSaveName(ExtractFileBase(savegamefile.GetChars(), true).GetChars());
831 }
832 gameaction = ga_savegame;
833 }
834}
835
836//---------------------------------------------------------------------------
837//

Callers

nothing calls this directly

Calls 5

ReadStringFunction · 0.85
G_BuildSaveNameFunction · 0.85
ExtractFileBaseFunction · 0.85
CanSaveMethod · 0.45
GetCharsMethod · 0.45

Tested by

no test coverage detected