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

Function G_SaveGame

source/core/savegamehelp.cpp:789–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787extern FString savegamefile;
788
789void G_SaveGame(const char* filename, const char* description)
790{
791 if (sendsave || gameaction == ga_savegame)
792 {
793 Printf("%s\n", GStrings.GetString("TXT_SAVEPENDING"));
794 }
795 else if (gamestate != GS_LEVEL)
796 {
797 Printf("%s\n", GStrings.GetString("TXT_NOTINLEVEL"));
798 }
799 else if (!gi->CanSave())
800 {
801 Printf("%s\n", GStrings.GetString("TXT_SPPLAYERDEAD"));
802 }
803 else
804 {
805 savegamefile = filename;
806 savedescription = description;
807 sendsave = true;
808 }
809}
810
811//---------------------------------------------------------------------------
812//

Callers 4

CCMDFunction · 0.85
UNSAFE_CCMDFunction · 0.85
CCMDFunction · 0.85
PerformSaveGameMethod · 0.85

Calls 3

PrintfFunction · 0.85
GetStringMethod · 0.45
CanSaveMethod · 0.45

Tested by

no test coverage detected