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

Function GetString_FailedToOpenSaveGame

code/server/sv_savegame.cpp:96–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94#endif
95
96static const char *GetString_FailedToOpenSaveGame(const char *psFilename, qboolean bOpen)
97{
98 static char sTemp[256];
99
100 strcpy(sTemp,S_COLOR_RED);
101
102#ifdef JK2_MODE
103 const char *psReference = bOpen ? "MENUS3_FAILED_TO_OPEN_SAVEGAME" : "MENUS3_FAILED_TO_CREATE_SAVEGAME";
104#else
105 const char *psReference = bOpen ? "MENUS_FAILED_TO_OPEN_SAVEGAME" : "MENUS3_FAILED_TO_CREATE_SAVEGAME";
106#endif
107 Q_strncpyz(sTemp + strlen(sTemp), va( SE_GetString(psReference), psFilename),sizeof(sTemp));
108 strcat(sTemp,"\n");
109 return sTemp;
110}
111
112void SG_WipeSavegame(
113 const char* psPathlessBaseName)

Callers 2

sv_savegame.cppFile · 0.85
SG_ReadSavegameFunction · 0.85

Calls 3

Q_strncpyzFunction · 0.85
vaFunction · 0.50
SE_GetStringFunction · 0.50

Tested by

no test coverage detected