-// global setup
-enum
-{
- SETUP_TOKEN_PLAYER_NAME = 0,
- SETUP_TOKEN_SOUND,
- SETUP_TOKEN_SOUND_LOOPS,
- SETUP_TOKEN_SOUND_MUSIC,
- SETUP_TOKEN_SOUND_SIMPLE,
- SETUP_TOKEN_TOONS,
- SETUP_TOKEN_SCROLL_DELAY,
- SETUP_TOKEN_SCROLL_DELAY_VALUE,
- SETUP_TOKEN_ENGINE_SNAPSHOT_MODE,
- SETUP_TOKEN_ENGINE_SNAPSHOT_MEMORY,
- SETUP_TOKEN_FADE_SCREENS,
- SETUP_TOKEN_AUTORECORD,
- SETUP_TOKEN_SHOW_TITLESCREEN,
- SETUP_TOKEN_QUICK_DOORS,
- SETUP_TOKEN_TEAM_MODE,
- SETUP_TOKEN_HANDICAP,
- SETUP_TOKEN_SKIP_LEVELS,
- SETUP_TOKEN_INCREMENT_LEVELS,
- SETUP_TOKEN_AUTO_PLAY_NEXT_LEVEL,
- SETUP_TOKEN_SKIP_SCORES_AFTER_GAME,
- SETUP_TOKEN_TIME_LIMIT,
- SETUP_TOKEN_FULLSCREEN,
- SETUP_TOKEN_WINDOW_SCALING_PERCENT,
- SETUP_TOKEN_WINDOW_SCALING_QUALITY,
- SETUP_TOKEN_SCREEN_RENDERING_MODE,
- SETUP_TOKEN_VSYNC_MODE,
- SETUP_TOKEN_ASK_ON_ESCAPE,
- SETUP_TOKEN_ASK_ON_ESCAPE_EDITOR,
- SETUP_TOKEN_ASK_ON_GAME_OVER,
- SETUP_TOKEN_QUICK_SWITCH,
- SETUP_TOKEN_INPUT_ON_FOCUS,
- SETUP_TOKEN_PREFER_AGA_GRAPHICS,
- SETUP_TOKEN_GAME_SPEED_EXTENDED,
- SETUP_TOKEN_GAME_FRAME_DELAY,
- SETUP_TOKEN_SP_SHOW_BORDER_ELEMENTS,
- SETUP_TOKEN_SMALL_GAME_GRAPHICS,
- SETUP_TOKEN_SHOW_SNAPSHOT_BUTTONS,
- SETUP_TOKEN_GRAPHICS_SET,
- SETUP_TOKEN_SOUNDS_SET,
- SETUP_TOKEN_MUSIC_SET,
- SETUP_TOKEN_OVERRIDE_LEVEL_GRAPHICS,
- SETUP_TOKEN_OVERRIDE_LEVEL_SOUNDS,
- SETUP_TOKEN_OVERRIDE_LEVEL_MUSIC,
- SETUP_TOKEN_VOLUME_SIMPLE,
- SETUP_TOKEN_VOLUME_LOOPS,
- SETUP_TOKEN_VOLUME_MUSIC,
- SETUP_TOKEN_NETWORK_MODE,
- SETUP_TOKEN_NETWORK_PLAYER_NR,
- SETUP_TOKEN_NETWORK_SERVER_HOSTNAME,
- SETUP_TOKEN_TOUCH_CONTROL_TYPE,
- SETUP_TOKEN_TOUCH_MOVE_DISTANCE,
- SETUP_TOKEN_TOUCH_DROP_DISTANCE,
- SETUP_TOKEN_TOUCH_TRANSPARENCY,
- SETUP_TOKEN_TOUCH_DRAW_OUTLINED,
- SETUP_TOKEN_TOUCH_DRAW_PRESSED,
- SETUP_TOKEN_TOUCH_GRID_XSIZE_0,
- SETUP_TOKEN_TOUCH_GRID_YSIZE_0,
- SETUP_TOKEN_TOUCH_GRID_XSIZE_1,
- SETUP_TOKEN_TOUCH_GRID_YSIZE_1,
-
- NUM_GLOBAL_SETUP_TOKENS
-};
-
-// auto setup
-enum
-{
- SETUP_TOKEN_AUTO_EDITOR_ZOOM_TILESIZE = 0,
-
- NUM_AUTO_SETUP_TOKENS
-};
-
-// editor setup
-enum
-{
- SETUP_TOKEN_EDITOR_EL_CLASSIC = 0,
- SETUP_TOKEN_EDITOR_EL_CUSTOM,
- SETUP_TOKEN_EDITOR_EL_USER_DEFINED,
- SETUP_TOKEN_EDITOR_EL_DYNAMIC,
- SETUP_TOKEN_EDITOR_EL_HEADLINES,
- SETUP_TOKEN_EDITOR_SHOW_ELEMENT_TOKEN,
-
- NUM_EDITOR_SETUP_TOKENS
-};
-
-// editor cascade setup
-enum
-{
- SETUP_TOKEN_EDITOR_CASCADE_BD = 0,
- SETUP_TOKEN_EDITOR_CASCADE_EM,
- SETUP_TOKEN_EDITOR_CASCADE_EMC,
- SETUP_TOKEN_EDITOR_CASCADE_RND,
- SETUP_TOKEN_EDITOR_CASCADE_SB,
- SETUP_TOKEN_EDITOR_CASCADE_SP,
- SETUP_TOKEN_EDITOR_CASCADE_DC,
- SETUP_TOKEN_EDITOR_CASCADE_DX,
- SETUP_TOKEN_EDITOR_CASCADE_TEXT,
- SETUP_TOKEN_EDITOR_CASCADE_STEELTEXT,
- SETUP_TOKEN_EDITOR_CASCADE_CE,
- SETUP_TOKEN_EDITOR_CASCADE_GE,
- SETUP_TOKEN_EDITOR_CASCADE_REF,
- SETUP_TOKEN_EDITOR_CASCADE_USER,
- SETUP_TOKEN_EDITOR_CASCADE_DYNAMIC,
-
- NUM_EDITOR_CASCADE_SETUP_TOKENS
-};
-
-// shortcut setup
-enum
-{
- SETUP_TOKEN_SHORTCUT_SAVE_GAME = 0,
- SETUP_TOKEN_SHORTCUT_LOAD_GAME,
- SETUP_TOKEN_SHORTCUT_TOGGLE_PAUSE,
- SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_1,
- SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_2,
- SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_3,
- SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_4,
- SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_ALL,
- SETUP_TOKEN_SHORTCUT_TAPE_EJECT,
- SETUP_TOKEN_SHORTCUT_TAPE_EXTRA,
- SETUP_TOKEN_SHORTCUT_TAPE_STOP,
- SETUP_TOKEN_SHORTCUT_TAPE_PAUSE,
- SETUP_TOKEN_SHORTCUT_TAPE_RECORD,
- SETUP_TOKEN_SHORTCUT_TAPE_PLAY,
- SETUP_TOKEN_SHORTCUT_SOUND_SIMPLE,
- SETUP_TOKEN_SHORTCUT_SOUND_LOOPS,
- SETUP_TOKEN_SHORTCUT_SOUND_MUSIC,
- SETUP_TOKEN_SHORTCUT_SNAP_LEFT,
- SETUP_TOKEN_SHORTCUT_SNAP_RIGHT,
- SETUP_TOKEN_SHORTCUT_SNAP_UP,
- SETUP_TOKEN_SHORTCUT_SNAP_DOWN,
-
- NUM_SHORTCUT_SETUP_TOKENS
-};
-
-// player setup
-enum
-{
- SETUP_TOKEN_PLAYER_USE_JOYSTICK = 0,
- SETUP_TOKEN_PLAYER_JOY_DEVICE_NAME,
- SETUP_TOKEN_PLAYER_JOY_XLEFT,
- SETUP_TOKEN_PLAYER_JOY_XMIDDLE,
- SETUP_TOKEN_PLAYER_JOY_XRIGHT,
- SETUP_TOKEN_PLAYER_JOY_YUPPER,
- SETUP_TOKEN_PLAYER_JOY_YMIDDLE,
- SETUP_TOKEN_PLAYER_JOY_YLOWER,
- SETUP_TOKEN_PLAYER_JOY_SNAP,
- SETUP_TOKEN_PLAYER_JOY_DROP,
- SETUP_TOKEN_PLAYER_KEY_LEFT,
- SETUP_TOKEN_PLAYER_KEY_RIGHT,
- SETUP_TOKEN_PLAYER_KEY_UP,
- SETUP_TOKEN_PLAYER_KEY_DOWN,
- SETUP_TOKEN_PLAYER_KEY_SNAP,
- SETUP_TOKEN_PLAYER_KEY_DROP,
-
- NUM_PLAYER_SETUP_TOKENS
-};
-
-// system setup
-enum
-{
- SETUP_TOKEN_SYSTEM_SDL_VIDEODRIVER = 0,
- SETUP_TOKEN_SYSTEM_SDL_AUDIODRIVER,
- SETUP_TOKEN_SYSTEM_AUDIO_FRAGMENT_SIZE,
-
- NUM_SYSTEM_SETUP_TOKENS
-};
-
-// internal setup
-enum
-{
- SETUP_TOKEN_INT_PROGRAM_TITLE = 0,
- SETUP_TOKEN_INT_PROGRAM_VERSION,
- SETUP_TOKEN_INT_PROGRAM_AUTHOR,
- SETUP_TOKEN_INT_PROGRAM_EMAIL,
- SETUP_TOKEN_INT_PROGRAM_WEBSITE,
- SETUP_TOKEN_INT_PROGRAM_COPYRIGHT,
- SETUP_TOKEN_INT_PROGRAM_COMPANY,
- SETUP_TOKEN_INT_PROGRAM_ICON_FILE,
- SETUP_TOKEN_INT_DEFAULT_GRAPHICS_SET,
- SETUP_TOKEN_INT_DEFAULT_SOUNDS_SET,
- SETUP_TOKEN_INT_DEFAULT_MUSIC_SET,
- SETUP_TOKEN_INT_FALLBACK_GRAPHICS_FILE,
- SETUP_TOKEN_INT_FALLBACK_SOUNDS_FILE,
- SETUP_TOKEN_INT_FALLBACK_MUSIC_FILE,
- SETUP_TOKEN_INT_DEFAULT_LEVEL_SERIES,
- SETUP_TOKEN_INT_CHOOSE_FROM_TOP_LEVELDIR,
- SETUP_TOKEN_INT_SHOW_SCALING_IN_TITLE,
- SETUP_TOKEN_INT_DEFAULT_WINDOW_WIDTH,
- SETUP_TOKEN_INT_DEFAULT_WINDOW_HEIGHT,
-
- NUM_INTERNAL_SETUP_TOKENS
-};
-
-// debug setup
-enum
-{
- SETUP_TOKEN_DEBUG_FRAME_DELAY_0 = 0,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_1,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_2,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_3,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_4,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_5,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_6,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_7,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_8,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_9,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_0,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_1,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_2,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_3,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_4,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_5,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_6,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_7,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_8,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_9,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_USE_MOD_KEY,
- SETUP_TOKEN_DEBUG_FRAME_DELAY_GAME_ONLY,
- SETUP_TOKEN_DEBUG_SHOW_FRAMES_PER_SECOND,
-
- NUM_DEBUG_SETUP_TOKENS
-};
-
-// options setup
-enum
-{
- SETUP_TOKEN_OPTIONS_VERBOSE = 0,
-
- NUM_OPTIONS_SETUP_TOKENS
-};
-
-
-static struct SetupInfo si;
-static struct SetupAutoSetupInfo sasi;
-static struct SetupEditorInfo sei;
-static struct SetupEditorCascadeInfo seci;
-static struct SetupShortcutInfo ssi;
-static struct SetupInputInfo sii;
-static struct SetupSystemInfo syi;
-static struct SetupInternalInfo sxi;
-static struct SetupDebugInfo sdi;
-static struct OptionInfo soi;