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

Function pfile_open_save_archive

Source/pfile.cpp:255–264  ·  view source on GitHub ↗

* @param showFixedMsg Display a dialog if a save file was corrected (deprecated) */

Source from the content-addressed store, hash-verified

253 * @param showFixedMsg Display a dialog if a save file was corrected (deprecated)
254 */
255HANDLE pfile_open_save_archive(BOOL *showFixedMsg, DWORD save_num)
256{
257 char SrcStr[MAX_PATH];
258 HANDLE archive;
259
260 pfile_get_save_path(SrcStr, sizeof(SrcStr), save_num);
261 if (SFileOpenArchive(SrcStr, 0x7000, FS_PC, &archive))
262 return archive;
263 return NULL;
264}
265
266void pfile_SFileCloseArchive(HANDLE hsArchive)
267{

Callers 3

pfile_ui_set_hero_infosFunction · 0.85
pfile_readFunction · 0.85

Calls 2

pfile_get_save_pathFunction · 0.85
SFileOpenArchiveFunction · 0.85

Tested by

no test coverage detected