X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=saveresume.c;h=575b11f2486a319ec2090b284ad8ed2a7d05a7ff;hb=f07b3ba2d4af0b4178a43cf81c5ed0b3e074e53f;hp=afd04d37af00570a385e85b545bdad1fcced9352;hpb=282842c4a9e9af52e8e7e95260b40af5e5ebee0e;p=open-adventure.git diff --git a/saveresume.c b/saveresume.c index afd04d3..575b11f 100644 --- a/saveresume.c +++ b/saveresume.c @@ -57,7 +57,7 @@ int savefile(FILE *fp, int32_t version) /* Suspend and resume */ -char *strip(char *name) +static char *strip(char *name) { // Trim leading whitespace while(isspace((unsigned char)*name)) @@ -83,7 +83,7 @@ int suspend(void) * If ADVENT_NOSAVE is defined, gripe instead. */ #if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE - rspeak(SAVERESUME_DISABLED) + rspeak(SAVERESUME_DISABLED); return GO_TOP; #endif FILE *fp = NULL; @@ -118,7 +118,7 @@ int resume(void) * If ADVENT_NOSAVE is defined, gripe instead. */ #if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE - rspeak(SAVERESUME_DISABLED) + rspeak(SAVERESUME_DISABLED); return GO_TOP; #endif FILE *fp = NULL; @@ -161,8 +161,8 @@ int restore(FILE* fp) if (save.version != VRSION) { rspeak(VERSION_SKEW, save.version / 10, MOD(save.version, 10), VRSION / 10, MOD(VRSION, 10)); } else if (!is_valid(save.game)) { - rspeak(SAVE_TAMPERING); // LCOV_EXCL_LINE - exit(EXIT_SUCCESS); // LCOV_EXCL_LINE + rspeak(SAVE_TAMPERING); + exit(EXIT_SUCCESS); } else { game = save.game; }