Super-Rogue: fix saving and restoring on Windows.
The problem turned out to be that the save file wasn't being deleted because it was still open.
This commit is contained in:
parent
8df0a6308d
commit
84db7dbc2a
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ restore(char *file, char **envp)
|
||||||
#endif
|
#endif
|
||||||
if (!wizard)
|
if (!wizard)
|
||||||
{
|
{
|
||||||
if (md_unlink(file) < 0)
|
if (md_unlink_open_file(file, md_fdopen(inf, "r")) < 0)
|
||||||
{
|
{
|
||||||
endwin();
|
endwin();
|
||||||
printf("Cannot unlink file\n");
|
printf("Cannot unlink file\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue