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

Function pfile_delete_save

Source/pfile.cpp:366–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366BOOL pfile_delete_save(_uiheroinfo *hero_info)
367{
368 DWORD save_num;
369 char FileName[MAX_PATH];
370
371 save_num = pfile_get_save_num_from_name(hero_info->name);
372 if (save_num < MAX_CHARACTERS) {
373 hero_names[save_num][0] = '\0';
374 pfile_get_save_path(FileName, sizeof(FileName), save_num);
375 RemoveFile(FileName);
376 }
377 return TRUE;
378}
379
380void pfile_read_player_from_save()
381{

Callers

nothing calls this directly

Calls 3

pfile_get_save_pathFunction · 0.85
RemoveFileFunction · 0.85

Tested by

no test coverage detected