From 832d685d6067fbb55c4da2043419ea66adc6ad5a Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Fri, 9 May 2014 07:52:02 -0700 Subject: [PATCH] rogue4: fix restoring saved games on Windows/MinGW. --- README.txt | 4 ++-- rogue4/save.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index a76b346..1ed2d1c 100644 --- a/README.txt +++ b/README.txt @@ -34,8 +34,8 @@ fixed soon. It is recommended to run 'configure' with the '--disable-logfile' option, and 'make' with the 'LDFLAGS=-static' option. -The games should all build with MinGW, but there are still bugs with arrow keys -and saving/restoring. +The games should all build with MinGW and run, but Super-Rogue has problems +with restoring saved games. See the individual games' subdirectories for further documentation. Some of the manpages may be outdated, but the guides to playing should be accurate. diff --git a/rogue4/save.c b/rogue4/save.c index 608f0b5..38ed64f 100644 --- a/rogue4/save.c +++ b/rogue4/save.c @@ -276,7 +276,7 @@ char **envp; #ifdef WIZARD !wizard && #endif - md_unlink(file) < 0) + md_unlink_open_file(file, inf) < 0) { endwin(); printf("Cannot unlink file\n");