(class \fBWatchAttribute\fP, name \fBwatchAttrTest\fP)
Enables watching of attribute testing.
.TP
-.BI \-bg " color"
+.B \-bg <color>
(class \fBBackground\fP, name \fBbackground\fP)
Sets the default background color. In addition to the standard X
color specification formats,
supports the format \fBz:\fP\fInum\fP, which refers to a z-machine
color from 2 to 9.
.TP
-.BI \-c " number"
+.B \-c <number>
(class \fBContextLines\fP, name \fBcontextLines\fP)
Specifies the number of context lines used. When scrolling large
amounts of text,
.I xfrotz
will keep at the top of the next screen.
.TP
-.BI \-fg " color"
+.B \-fg <color>
(class \fBForeground\fP, name \fBforeground\fP)
Sets the default foreground color. See \fB\-bg\fP above.
.TP
-.BI \-fn[\-z|[f][b][i]] " font name"
+.B \-fn[\-z|[f][b][i]] <font name>
(class \fBFont\fP, name \fBfont[Z|[F][B][I]]\fP)
Sets the fonts to be used for various styles. For example,
\fB\-fn\-fbi\fP sets the font for fixed, bold, italic text, and
.I xfrotz
with buggy story files which cause fatal errors.
.TP
-.BI \-lm " number"
+.B \-lm <number>
(class \fBMargin\fP, name \fBleftMargin\fP)
Sets the left margin.
.TP
+.B \-L <filename>
+When the game starts, load this saved game file.
+.TP
.B \-ol
(class \fBWatchObject\fP, name \fBwatchObjLocating\fP)
Enables watching of testing the location of objects.
.I @piracy
opcode. This opcode is seldom used.
.TP
-.BI \-rm " number"
+.B \-rm <number>
(class \fBMargin\fP, name \fBrightMargin\fP)
Sets the right margin.
.TP
-.BI \-rs " number"
+.B \-rs <number>
(class \fBRandomSeed\fP, name \fBrandomSeed\fP)
Set the random seed. By default, the random number generator is
initialized based on the system clock; this allows you to make the
random number generator predictable, for use in recorded scripts or
debugging.
.TP
-.BI \-sc " number"
+.B \-sc <number>
(class \fBScriptColumns\fP, name \fBscriptColumns\fP)
Set the transcript width (default 80). Set to 0 to disable line
splitting in transcripts.
Infocom games. For example, \fIZork I\fP pretends not to have
sequels, and \fIWitness\fP has its language censored.
.TP
-.BI \-u " number"
+.B \-u <number>
(class \fBUndoSlots\fP, name \fBundoSlots\fP)
Set the number of undo slots available. The default number is 25.
Note that many Infocom games do not support an ``undo'' command, and
``again.'' This is convenient when running certain Infocom games
which do not implement these abbreviations.
.TP
-.BI \-xrm " resources"
+.B \-xrm <resources>
This allows setting resources on the command line.
.TP
-.BI \-zs " level"
+.B \-zs <level>
(class \fBZStrict\fP, name \fBzStrict\fP)
Set the reporting level of ``Vile Zero Error From Hell'' bugs. The
possible levels are: 0 to print no error messages, 1 to print just one
{"-fn-fb", ".fontFB", XrmoptionSepArg, (void *)NULL},
{"-fn-fi", ".fontFI", XrmoptionSepArg, (void *)NULL},
{"-fn-fbi", ".fontFBI", XrmoptionSepArg, (void *)NULL},
- {"-fn-z", ".fontZ", XrmoptionSepArg, (void *)NULL}
+ {"-fn-z", ".fontZ", XrmoptionSepArg, (void *)NULL},
+ {"-L", ".loadthis", XrmoptionSepArg, (void *)NULL}
};
static struct {
char *class;
{".Font", ".fontFBI", parse_string,
&font_names[7]},
{".Font", ".fontZ", parse_string,
- &font_names[8]}
+ &font_names[8]},
+ {".Loadthis", ".loadthis", parse_string,
+ &f_setup.tmp_save_name}
};
XtAppContext app_context;
char *str_type_return;
os_quit(EXIT_SUCCESS);
}
+ if (f_setup.tmp_save_name != NULL)
+ f_setup.restore_mode = 1;
+
f_setup.story_file = strdup(argv[1]);
f_setup.story_name = strdup(basename(argv[1]));
memcpy(f_setup.save_name, f_setup.tmp_save_name,
(strlen(f_setup.tmp_save_name) +
strlen(EXT_SAVE)) * sizeof(char));
- free(f_setup.tmp_save_name);
+ /* No need to free f_setup.tmp_save_name */
}
f_setup.aux_name =
void os_init_setup(void)
{
+ memset(&f_setup, 0, sizeof(x_setup));
return;
}