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

Function GetPermSaveNames

Source/pfile.cpp:490–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490BOOL GetPermSaveNames(DWORD dwIndex, char *szPerm)
491{
492 const char *fmt;
493
494 if (dwIndex < 17)
495 fmt = "perml%02d";
496 else if (dwIndex < 34) {
497 dwIndex -= 17;
498 fmt = "perms%02d";
499 } else
500 return FALSE;
501
502 sprintf(szPerm, fmt, dwIndex);
503 return TRUE;
504}
505
506void pfile_write_save_file(const char *pszName, BYTE *pbData, DWORD dwLen, DWORD qwLen)
507{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected