projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f84c503
)
No need to tease with excluded options
108/head
author
NHOrus
<jy6x2b32pie9@yahoo.com>
Mon, 19 Jun 2017 16:11:07 +0000
(19:11 +0300)
committer
NHOrus
<jy6x2b32pie9@yahoo.com>
Mon, 19 Jun 2017 16:11:07 +0000
(19:11 +0300)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index db804060408f4263907d2f47cb7c2deda8e19c1d..0100cd40d85a515e11c0df7bc9bbf991b9ff569b 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-91,6
+91,7
@@
int main(int argc, char *argv[])
oldstyle = true;
editline = prompt = false;
break;
oldstyle = true;
editline = prompt = false;
break;
+#ifndef ADVENT_NOSAVE
case 'r':
rfp = fopen(optarg, "r");
if (rfp == NULL)
case 'r':
rfp = fopen(optarg, "r");
if (rfp == NULL)
@@
-99,6
+100,7
@@
int main(int argc, char *argv[])
optarg);
signal(SIGINT, sig_handler);
break;
optarg);
signal(SIGINT, sig_handler);
break;
+#endif
case 's':
editline = false;
break;
case 's':
editline = false;
break;
@@
-109,8
+111,10
@@
int main(int argc, char *argv[])
" where -l creates a log file of your game named as specified'\n");
fprintf(stderr,
" -o 'oldstyle' (no prompt, no command editing, displays 'Initialising...')\n");
" where -l creates a log file of your game named as specified'\n");
fprintf(stderr,
" -o 'oldstyle' (no prompt, no command editing, displays 'Initialising...')\n");
+#ifndef ADVENT_NOSAVE
fprintf(stderr,
" -r indicates restoring from specified saved game file\n");
fprintf(stderr,
" -r indicates restoring from specified saved game file\n");
+#endif
fprintf(stderr,
" -s indicates playing with command editing suppressed\n");
exit(-1);
fprintf(stderr,
" -s indicates playing with command editing suppressed\n");
exit(-1);