MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetTempSaveNames

Function GetTempSaveNames

Source/pfile.cpp:446–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446BOOL GetTempSaveNames(DWORD dwIndex, char *szTemp)
447{
448 const char *fmt;
449
450 if (dwIndex < 17)
451 fmt = "templ%02d";
452 else if (dwIndex < 34) {
453 dwIndex -= 17;
454 fmt = "temps%02d";
455 } else
456 return FALSE;
457
458 sprintf(szTemp, fmt, dwIndex);
459 return TRUE;
460}
461
462void pfile_rename_temp_to_perm()
463{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected