char *story_path;
char *zcode_path;
int restore_mode; /* for a save file passed from command line*/
+
+ bool use_blorb;
+ bool exec_in_blorb;
} f_setup_t;
extern f_setup_t f_setup;
* zcode file and our resources are in a seperate blorb file.
*/
if (isblorb(fp)) { /* Now we know to look */
- u_setup.exec_in_blorb = 1; /* for zcode in the blorb */
+ f_setup.exec_in_blorb = 1; /* for zcode in the blorb */
blorb_fp = fopen(filename, "rb");
} else {
len1 = strlen(filename) + strlen(EXT_BLORB);
/* At this point we know that we're using a naked zcode file */
/* with resources in a seperate Blorb file. */
- u_setup.use_blorb = 1;
+ f_setup.use_blorb = 1;
}
/* Create a Blorb map from this file.
/* Locate the EXEC chunk within the blorb file and record its
* location so os_load_story() can find it.
*/
- if (u_setup.exec_in_blorb) {
+ if (f_setup.exec_in_blorb) {
blorb_err = bb_load_chunk_by_type(blorb_map, bb_method_FilePos,
&blorb_res, bb_make_id('Z','C','O','D'), 0);
- u_setup.exec_in_blorb = 1;
+ f_setup.exec_in_blorb = 1;
}
fclose(fp);
fp = fopen(f_setup.story_file, "rb");
/* Is this a Blorb file containing Zcode? */
- if (u_setup.exec_in_blorb)
+ if (f_setup.exec_in_blorb)
fseek(fp, blorb_res.data.startpos, SEEK_SET);
return fp;
int os_storyfile_seek(FILE * fp, long offset, int whence)
{
/* Is this a Blorb file containing Zcode? */
- if (u_setup.exec_in_blorb)
+ if (f_setup.exec_in_blorb)
{
switch (whence)
{
int os_storyfile_tell(FILE * fp)
{
/* Is this a Blorb file containing Zcode? */
- if (u_setup.exec_in_blorb)
+ if (f_setup.exec_in_blorb)
{
return ftell(fp) - blorb_res.data.startpos;
}
f_setup.err_report_mode = ERR_DEFAULT_REPORT_MODE;
f_setup.restore_mode = 0;
- u_setup.use_blorb = 0;
- u_setup.exec_in_blorb = 0;
+ f_setup.use_blorb = 0;
+ f_setup.exec_in_blorb = 0;
u_setup.disable_color = 0;
u_setup.force_color = 0;
int plain_ascii;
int current_color; /* ux_text.c ux_screen.c */
bool color_enabled; /* ux_init.c ux_pic.c ux_text.c */
-
- bool use_blorb;
- bool exec_in_blorb;
-
int interpreter; /* see frotz.h */
} u_setup_t;