MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SV_WipeGame_f

Function SV_WipeGame_f

code/server/sv_savegame.cpp:138–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void SV_WipeGame_f(void)
139{
140 if (Cmd_Argc() != 2)
141 {
142 Com_Printf (S_COLOR_RED "USAGE: wipe <name>\n");
143 return;
144 }
145 if (!Q_stricmp (Cmd_Argv(1), "auto") )
146 {
147 Com_Printf (S_COLOR_RED "Can't wipe 'auto'\n");
148 return;
149 }
150 SG_WipeSavegame(Cmd_Argv(1));
151// Com_Printf("%s has been wiped\n", Cmd_Argv(1)); // wurde gel�scht in german, but we've only got one string
152// Com_Printf("Ok\n"); // no localization of this
153}
154
155/*
156// Store given string in saveGameComment for later use when game is

Callers

nothing calls this directly

Calls 5

Q_stricmpFunction · 0.85
SG_WipeSavegameFunction · 0.85
Cmd_ArgcFunction · 0.50
Com_PrintfFunction · 0.50
Cmd_ArgvFunction · 0.50

Tested by

no test coverage detected