Mercurial > hg > early-roguelike
comparison urogue/save.c @ 259:096d3cfd9afd
UltraRogue: add the -n option.
| author | John "Elwin" Edwards |
|---|---|
| date | Thu, 09 Feb 2017 16:29:45 -0500 |
| parents | c495a4f288c6 |
| children | ac42afd962e4 |
comparison
equal
deleted
inserted
replaced
| 258:2908dc47f9e2 | 259:096d3cfd9afd |
|---|---|
| 88 if (strcmp(file, "-r") == 0) | 88 if (strcmp(file, "-r") == 0) |
| 89 file = file_name; | 89 file = file_name; |
| 90 | 90 |
| 91 if ((infd = fopen(file, "r")) == NULL) | 91 if ((infd = fopen(file, "r")) == NULL) |
| 92 { | 92 { |
| 93 if (use_savedir && errno == ENOENT) | |
| 94 return TRUE; | |
| 93 perror(file); | 95 perror(file); |
| 94 return(FALSE); | 96 return(FALSE); |
| 95 } | 97 } |
| 96 | 98 |
| 97 if ( restore_file(infd) == FALSE ) | 99 if ( restore_file(infd) == FALSE ) |
