int ignore_errors;
int interpreter_number;
int piracy;
+ int tandy;
int undo_slots;
int expand_abbreviations;
int script_cols;
case 'R': f_setup.restricted_path = strndup(zoptarg, PATH_MAX); break;
case 's': u_setup.random_seed = atoi(zoptarg); break;
case 'S': f_setup.script_cols = atoi(zoptarg); break;
- case 't': u_setup.tandy_bit = 1; break;
+ case 't': f_setup.tandy = 1; break;
case 'u': f_setup.undo_slots = atoi(zoptarg); break;
case 'v': print_version(); os_quit(EXIT_SUCCESS); break;
case 'w': u_setup.screen_width = atoi(zoptarg); break;
/* It's nice to know what terminal we have to work with. */
u_setup.term = strdup(getenv("TERM"));
- if (z_header.version == V3 && u_setup.tandy_bit != 0)
+ if (z_header.version == V3 && f_setup.tandy != 0)
z_header.config |= CONFIG_TANDY;
if (z_header.version == V3)
f_setup.sound = getbool(value);
}
else if (strcmp(varname, "tandy") == 0) {
- u_setup.tandy_bit = getbool(value);
+ f_setup.tandy = getbool(value);
}
else if (strcmp(varname, "expand_abb") == 0) {
f_setup.expand_abbreviations = getbool(value);
u_setup.screen_height = -1;
u_setup.random_seed = -1;
u_setup.random_seed = -1;
- u_setup.tandy_bit = 0;
u_setup.current_text_style = 0;
/* Since I can't use attr_get, which
would make things easier, I need
int screen_width;
int screen_height;
int random_seed;
- int tandy_bit;
int current_text_style; /* also in ux_text.c and ux_screen.c */
int curses_active;
int plain_ascii;
extern int user_reverse_fg;
extern int user_screen_height;
extern int user_screen_width;
-extern int user_tandy_bit;
extern int user_bold_typing;
extern int user_random_seed;
extern int user_font;
int user_reverse_fg = -1;
int user_screen_height = -1;
int user_screen_width = -1;
-int user_tandy_bit = -1;
int user_random_seed = -1;
int user_font = 1;
if (c == 'S')
f_setup.script_cols = num;
if (c == 't')
- user_tandy_bit = 1;
+ f_setup.tandy = 1;
if (c == 'u')
f_setup.undo_slots = num;
if (c == 'v') {
/* Set various bits in the configuration byte. These bits tell
the game which features are supported by the interpreter. */
- if (z_header.version == V3 && user_tandy_bit != -1)
+ if (z_header.version == V3 && f_setup.tandy != -1)
z_header.config |= CONFIG_TANDY;
if (z_header.version == V3)
z_header.config |= CONFIG_SPLITSCREEN;
static int user_text_width = 80;
static int user_text_height = 24;
static int user_random_seed = -1;
-static int user_tandy_bit = 0;
static bool plain_ascii = FALSE;
bool quiet_mode;
f_setup.script_cols = atoi(zoptarg);
break;
case 't':
- user_tandy_bit = 1;
+ f_setup.tandy = 1;
break;
case 'u':
f_setup.undo_slots = atoi(zoptarg);
void os_init_screen(void)
{
- if (z_header.version == V3 && user_tandy_bit)
+ if (z_header.version == V3 && f_setup.tandy)
z_header.config |= CONFIG_TANDY;
if (z_header.version >= V5 && f_setup.undo_slots == 0)
/* various data */
-bool m_tandy = 0;
int m_v6scale_x;
int m_v6scale_y;
double m_gfxScale_w = 1.0;
sf_GetProfileInt("Interpreter", "Ignore Errors", 0);
f_setup.expand_abbreviations =
sf_GetProfileInt("Interpreter", "Expand Abbreviations", 0);
- m_tandy =
+ f_setup.tandy =
sf_GetProfileInt("Interpreter", "Tandy Bit", 0) ? true : false;
f_setup.script_cols =
sf_GetProfileInt("Interpreter", "Wrap Script Lines", 1) ? 80 : 0;
if (z_header.version == V3) {
z_header.config |= CONFIG_SPLITSCREEN;
z_header.config |= CONFIG_PROPORTIONAL;
- if (m_tandy)
+ if (f_setup.tandy)
z_header.config |= CONFIG_TANDY;
else
z_header.config &= ~CONFIG_TANDY;
int user_reverse_fg = -1;
int user_screen_height = -1;
int user_screen_width = -1;
-int user_tandy_bit = -1;
int user_font = 1;
int m_random_seed = -1;
int m_fullscreen = -1;
if (c == 'S')
f_setup.script_cols = num;
if (c == 't')
- user_tandy_bit = 1;
+ f_setup.tandy = 1;
if (c == 'T')
sf_osdialog = NULL;
if (c == 'u')
m_defaultBack = sf_GetColour(user_background);
if (user_foreground != -1)
m_defaultFore = sf_GetColour(user_foreground);
- if (user_tandy_bit != -1)
- m_tandy = user_tandy_bit;
sf_initfonts();
} /* os_process_arguments */
static int saved_argc;
static char **saved_argv;
static char *user_bg, *user_fg;
-static int user_tandy_bit;
static int user_random_seed = -1;
char *x_class;
char *x_name;
{".Piracy", ".piracy", parse_boolean,
&f_setup.piracy},
{".Tandy", ".tandy", parse_boolean,
- &x_setup.tandy_bit},
+ &f_setup.tandy},
{".UndoSlots", ".undoSlots", parse_int,
&f_setup.undo_slots},
{".ShowVersion", ".showVersion", parse_boolean,
XGCValues gc_setup;
/* First, configuration parameters get set up */
- if (z_header.version == V3 && user_tandy_bit != 0)
+ if (z_header.version == V3 && f_setup.tandy != 0)
z_header.config |= CONFIG_TANDY;
if (z_header.version == V3)
z_header.config |= CONFIG_SPLITSCREEN | CONFIG_PROPORTIONAL;
int background_color;
int foreground_color;
int random_seed;
- int tandy_bit;
} x_setup_t;
extern x_setup_t x_setup;