si->bd_skip_hatching = FALSE;
si->bd_scroll_delay = TRUE;
si->bd_show_invisible_outbox = FALSE;
- si->bd_smooth_movements = AUTO;
+ si->bd_smooth_movements = MODE_AUTO;
si->bd_pushing_graphics = TRUE;
si->bd_up_down_graphics = TRUE;
- si->bd_skip_falling_sounds = AUTO;
+ si->bd_skip_falling_sounds = MODE_AUTO;
si->bd_palette_c64 = GD_DEFAULT_PALETTE_C64;
si->bd_palette_c64dtv = GD_DEFAULT_PALETTE_C64DTV;
si->bd_palette_atari = GD_DEFAULT_PALETTE_ATARI;
si->debug.show_frames_per_second = FALSE;
- si->debug.xsn_mode = AUTO;
+ si->debug.xsn_mode = MODE_AUTO;
si->debug.xsn_percent = 0;
si->options.verbose = FALSE;
fprintf(file, "\n");
for (i = 0; i < ARRAY_SIZE(debug_setup_tokens); i++)
if (!strPrefix(debug_setup_tokens[i].text, "debug.xsn_") ||
- setup.debug.xsn_mode != AUTO)
+ setup.debug.xsn_mode != MODE_AUTO)
fprintf(file, "%s\n", getSetupLine(debug_setup_tokens, "", i));
fprintf(file, "\n");
boolean use_bd_smooth_movements(void)
{
return ((setup.bd_smooth_movements == TRUE) ||
- (setup.bd_smooth_movements == AUTO && !use_native_bd_graphics_engine()));
+ (setup.bd_smooth_movements == MODE_AUTO && !use_native_bd_graphics_engine()));
}
// check if player pushing graphics selected in setup menu
boolean use_bd_pushing_graphics(void)
{
return ((setup.bd_pushing_graphics == TRUE) ||
- (setup.bd_pushing_graphics == AUTO && !use_native_bd_graphics_engine()));
+ (setup.bd_pushing_graphics == MODE_AUTO && !use_native_bd_graphics_engine()));
}
// check if player up/down graphics selected in setup menu
boolean use_bd_up_down_graphics(void)
{
return ((setup.bd_up_down_graphics == TRUE) ||
- (setup.bd_up_down_graphics == AUTO && !use_native_bd_graphics_engine()));
+ (setup.bd_up_down_graphics == MODE_AUTO && !use_native_bd_graphics_engine()));
}
// check if skipping falling sounds selected in setup menu
boolean skip_bd_falling_sounds(void)
{
return ((setup.bd_skip_falling_sounds == TRUE) ||
- (setup.bd_skip_falling_sounds == AUTO && !game.use_native_bd_sound_engine));
+ (setup.bd_skip_falling_sounds == MODE_AUTO && !game.use_native_bd_sound_engine));
}
Bitmap **GetTitleScreenBitmaps_BD(void)
if (debug)
setup.debug.xsn_percent = percent;
- if (setup.debug.xsn_mode != AUTO)
+ if (setup.debug.xsn_mode != MODE_AUTO)
percent = setup.debug.xsn_percent;
setup.debug.xsn_percent = percent;
active = (percent > 0);
- if ((active && !active_last) || setup.debug.xsn_mode != AUTO)
+ if ((active && !active_last) || setup.debug.xsn_mode != MODE_AUTO)
removeHideSetupEntry(&setup.debug.xsn_mode);
else if (!active && active_last)
setHideSetupEntry(&setup.debug.xsn_mode);
gfx.override_level_music = FALSE;
// now check if this level set has definitions for custom elements
- if (setup.override_level_graphics == AUTO ||
- setup.override_level_sounds == AUTO ||
- setup.override_level_music == AUTO)
+ if (setup.override_level_graphics == MODE_AUTO ||
+ setup.override_level_sounds == MODE_AUTO ||
+ setup.override_level_music == MODE_AUTO)
redefined_ce_found =
(CheckArtworkTypeForRedefinedCustomElements(ARTWORK_TYPE_GRAPHICS) |
CheckArtworkTypeForRedefinedCustomElements(ARTWORK_TYPE_SOUNDS) |
if (redefined_ce_found)
{
- // this level set has CE definitions: change "AUTO" to "FALSE"
+ // this level set has CE definitions: change "MODE_AUTO" to "FALSE"
gfx.override_level_graphics = (setup.override_level_graphics == TRUE);
gfx.override_level_sounds = (setup.override_level_sounds == TRUE);
gfx.override_level_music = (setup.override_level_music == TRUE);
}
else
{
- // this level set has no CE definitions: change "AUTO" to "TRUE"
+ // this level set has no CE definitions: change "MODE_AUTO" to "TRUE"
gfx.override_level_graphics = (setup.override_level_graphics != FALSE);
gfx.override_level_sounds = (setup.override_level_sounds != FALSE);
gfx.override_level_music = (setup.override_level_music != FALSE);
get_integer_from_string(s) == 1)
result = TRUE;
else if (strEqual(s_lower, "auto"))
- result = AUTO;
+ result = MODE_AUTO;
free(s_lower);
break;
case TYPE_SWITCH3:
- strcpy(value_string, (*(int *)value == AUTO ? "auto" :
+ strcpy(value_string, (*(int *)value == MODE_AUTO ? "auto" :
*(int *)value == FALSE ? "off" : "on"));
break;
break;
case TYPE_YES_NO_AUTO:
- strcpy(value_string, (*(int *)value == AUTO ? "auto" :
+ strcpy(value_string, (*(int *)value == MODE_AUTO ? "auto" :
*(int *)value == FALSE ? "no" : "yes"));
break;
boolean bd_skip_hatching;
boolean bd_scroll_delay;
boolean bd_show_invisible_outbox;
- int bd_smooth_movements; // not boolean -- can also be "AUTO"
- int bd_pushing_graphics; // not boolean -- can also be "AUTO"
- int bd_up_down_graphics; // not boolean -- can also be "AUTO"
- int bd_skip_falling_sounds; // not boolean -- can also be "AUTO"
+ int bd_smooth_movements; // not boolean -- can also be "MODE_AUTO"
+ int bd_pushing_graphics; // not boolean -- can also be "MODE_AUTO"
+ int bd_up_down_graphics; // not boolean -- can also be "MODE_AUTO"
+ int bd_skip_falling_sounds; // not boolean -- can also be "MODE_AUTO"
int bd_palette_c64;
int bd_palette_c64dtv;
int bd_palette_atari;
char *graphics_set;
char *sounds_set;
char *music_set;
- int override_level_graphics; // not boolean -- can also be "AUTO"
- int override_level_sounds; // not boolean -- can also be "AUTO"
- int override_level_music; // not boolean -- can also be "AUTO"
+ int override_level_graphics; // not boolean -- can also be "MODE_AUTO"
+ int override_level_sounds; // not boolean -- can also be "MODE_AUTO"
+ int override_level_music; // not boolean -- can also be "MODE_AUTO"
int volume_simple;
int volume_loops;
#undef FALSE
#endif
-#ifdef AUTO
-#undef AUTO
+#ifdef MODE_AUTO
+#undef MODE_AUTO
#endif
#define TRUE 1
#define FALSE 0
-#define AUTO -1
+
+#define MODE_AUTO -1
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
else if (type & TYPE_BOOLEAN_STYLE)
return (*(boolean *)value ? FONT_OPTION_ON : FONT_OPTION_OFF);
else if (type & TYPE_YES_NO_AUTO)
- return (*(int *)value == AUTO ? FONT_OPTION_ON :
+ return (*(int *)value == MODE_AUTO ? FONT_OPTION_ON :
*(int *)value == FALSE ? FONT_OPTION_OFF : FONT_OPTION_ON);
else if (type & TYPE_PLAYER)
return FONT_VALUE_1;
{
*(int *)si->value =
(dx == -1 ?
- (*(int *)si->value == AUTO ? TRUE :
- *(int *)si->value == TRUE ? FALSE : AUTO) :
- (*(int *)si->value == TRUE ? AUTO :
- *(int *)si->value == AUTO ? FALSE : TRUE));
+ (*(int *)si->value == MODE_AUTO ? TRUE :
+ *(int *)si->value == TRUE ? FALSE : MODE_AUTO) :
+ (*(int *)si->value == TRUE ? MODE_AUTO :
+ *(int *)si->value == MODE_AUTO ? FALSE : TRUE));
}
else if (si->type & TYPE_KEY)
{