- else
- {
- /* Resume. Read a suspended game back from a file. */
- if (game.loc != 1 || game.abbrev[1] != 1) {
- RSPEAK(RESUME_ABANDON);
- if (!YES(input,THIS_ACCEPTABLE,OK_MAN,OK_MAN)) return GO_CLEAROBJ;
- }
+
+ DATIME(&i, &k);
+ k = i + 650 * k;
+ save.savetime = k;
+ save.mode = -1;
+ save.version = VRSION;
+ memcpy(&save.game, &game, sizeof(struct game_t));
+ save.bird = OBJSND[BIRD];
+ save.bivalve = OBJTXT[OYSTER];
+ IGNORE(fwrite(&save, sizeof(struct save_t), 1, fp));
+ fclose(fp);
+ RSPEAK(RESUME_HELP);
+ exit(0);
+}
+
+int resume(FILE *input)
+{
+ /* Resume. Read a suspended game back from a file.
+ * If ADVENT_NOSAVE is defined, do nothing instead. */
+
+#ifdef ADVENT_NOSAVE
+ return GO_UNKNOWN;
+#endif
+ FILE *fp = NULL;
+
+ if (game.loc != 1 || game.abbrev[1] != 1) {
+ RSPEAK(RESUME_ABANDON);
+ if (!YES(input, THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ;