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

Function pfile_remove_temp_files

Source/pfile.cpp:435–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void pfile_remove_temp_files()
436{
437 if (gbMaxPlayers <= 1) {
438 DWORD save_num = pfile_get_save_num_from_name(plr[myplr]._pName);
439 if (!pfile_open_archive(FALSE, save_num))
440 app_fatal("Unable to write to save file archive");
441 mpqapi_remove_hash_entries(GetTempSaveNames);
442 pfile_flush(TRUE, save_num);
443 }
444}
445
446BOOL GetTempSaveNames(DWORD dwIndex, char *szTemp)
447{

Callers 2

ShowProgressFunction · 0.85
LoadGameFunction · 0.85

Calls 5

pfile_open_archiveFunction · 0.85
app_fatalFunction · 0.85
pfile_flushFunction · 0.85

Tested by

no test coverage detected