From: Holger Schemel Date: Mon, 18 Jun 2018 20:47:58 +0000 (+0200) Subject: replaced constants using #define with enum values X-Git-Tag: 4.1.1.0~109 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=42bdcd19b3737eb4dd9d87f04c6af8d10895c14b;p=rocksndiamonds.git replaced constants using #define with enum values --- diff --git a/src/files.c b/src/files.c index ad84fbc2..8a65cee4 100644 --- a/src/files.c +++ b/src/files.c @@ -8261,202 +8261,232 @@ void SaveScore(int nr) #define TOKEN_STR_PLAYER_PREFIX "player_" /* global setup */ -#define SETUP_TOKEN_PLAYER_NAME 0 -#define SETUP_TOKEN_SOUND 1 -#define SETUP_TOKEN_SOUND_LOOPS 2 -#define SETUP_TOKEN_SOUND_MUSIC 3 -#define SETUP_TOKEN_SOUND_SIMPLE 4 -#define SETUP_TOKEN_TOONS 5 -#define SETUP_TOKEN_SCROLL_DELAY 6 -#define SETUP_TOKEN_SCROLL_DELAY_VALUE 7 -#define SETUP_TOKEN_ENGINE_SNAPSHOT_MODE 8 -#define SETUP_TOKEN_ENGINE_SNAPSHOT_MEMORY 9 -#define SETUP_TOKEN_FADE_SCREENS 10 -#define SETUP_TOKEN_AUTORECORD 11 -#define SETUP_TOKEN_SHOW_TITLESCREEN 12 -#define SETUP_TOKEN_QUICK_DOORS 13 -#define SETUP_TOKEN_TEAM_MODE 14 -#define SETUP_TOKEN_HANDICAP 15 -#define SETUP_TOKEN_SKIP_LEVELS 16 -#define SETUP_TOKEN_INCREMENT_LEVELS 17 -#define SETUP_TOKEN_TIME_LIMIT 18 -#define SETUP_TOKEN_FULLSCREEN 19 -#define SETUP_TOKEN_WINDOW_SCALING_PERCENT 20 -#define SETUP_TOKEN_WINDOW_SCALING_QUALITY 21 -#define SETUP_TOKEN_SCREEN_RENDERING_MODE 22 -#define SETUP_TOKEN_ASK_ON_ESCAPE 23 -#define SETUP_TOKEN_ASK_ON_ESCAPE_EDITOR 24 -#define SETUP_TOKEN_QUICK_SWITCH 25 -#define SETUP_TOKEN_INPUT_ON_FOCUS 26 -#define SETUP_TOKEN_PREFER_AGA_GRAPHICS 27 -#define SETUP_TOKEN_GAME_FRAME_DELAY 28 -#define SETUP_TOKEN_SP_SHOW_BORDER_ELEMENTS 29 -#define SETUP_TOKEN_SMALL_GAME_GRAPHICS 30 -#define SETUP_TOKEN_SHOW_SNAPSHOT_BUTTONS 31 -#define SETUP_TOKEN_GRAPHICS_SET 32 -#define SETUP_TOKEN_SOUNDS_SET 33 -#define SETUP_TOKEN_MUSIC_SET 34 -#define SETUP_TOKEN_OVERRIDE_LEVEL_GRAPHICS 35 -#define SETUP_TOKEN_OVERRIDE_LEVEL_SOUNDS 36 -#define SETUP_TOKEN_OVERRIDE_LEVEL_MUSIC 37 -#define SETUP_TOKEN_VOLUME_SIMPLE 38 -#define SETUP_TOKEN_VOLUME_LOOPS 39 -#define SETUP_TOKEN_VOLUME_MUSIC 40 -#define SETUP_TOKEN_NETWORK_MODE 41 -#define SETUP_TOKEN_NETWORK_PLAYER_NR 42 -#define SETUP_TOKEN_TOUCH_CONTROL_TYPE 43 -#define SETUP_TOKEN_TOUCH_MOVE_DISTANCE 44 -#define SETUP_TOKEN_TOUCH_DROP_DISTANCE 45 -#define SETUP_TOKEN_TOUCH_TRANSPARENCY 46 -#define SETUP_TOKEN_TOUCH_DRAW_OUTLINED 47 -#define SETUP_TOKEN_TOUCH_DRAW_PRESSED 48 -#define SETUP_TOKEN_TOUCH_GRID_XSIZE_0 49 -#define SETUP_TOKEN_TOUCH_GRID_YSIZE_0 50 -#define SETUP_TOKEN_TOUCH_GRID_XSIZE_1 51 -#define SETUP_TOKEN_TOUCH_GRID_YSIZE_1 52 - -#define NUM_GLOBAL_SETUP_TOKENS 53 +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_TIME_LIMIT, + SETUP_TOKEN_FULLSCREEN, + SETUP_TOKEN_WINDOW_SCALING_PERCENT, + SETUP_TOKEN_WINDOW_SCALING_QUALITY, + SETUP_TOKEN_SCREEN_RENDERING_MODE, + SETUP_TOKEN_ASK_ON_ESCAPE, + SETUP_TOKEN_ASK_ON_ESCAPE_EDITOR, + SETUP_TOKEN_QUICK_SWITCH, + SETUP_TOKEN_INPUT_ON_FOCUS, + SETUP_TOKEN_PREFER_AGA_GRAPHICS, + 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_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 */ -#define SETUP_TOKEN_AUTO_EDITOR_ZOOM_TILESIZE 0 +enum +{ + SETUP_TOKEN_AUTO_EDITOR_ZOOM_TILESIZE = 0, -#define NUM_AUTO_SETUP_TOKENS 1 + NUM_AUTO_SETUP_TOKENS +}; /* editor setup */ -#define SETUP_TOKEN_EDITOR_EL_CLASSIC 0 -#define SETUP_TOKEN_EDITOR_EL_CUSTOM 1 -#define SETUP_TOKEN_EDITOR_EL_USER_DEFINED 2 -#define SETUP_TOKEN_EDITOR_EL_DYNAMIC 3 -#define SETUP_TOKEN_EDITOR_EL_HEADLINES 4 -#define SETUP_TOKEN_EDITOR_SHOW_ELEMENT_TOKEN 5 +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, -#define NUM_EDITOR_SETUP_TOKENS 6 + NUM_EDITOR_SETUP_TOKENS +}; /* editor cascade setup */ -#define SETUP_TOKEN_EDITOR_CASCADE_BD 0 -#define SETUP_TOKEN_EDITOR_CASCADE_EM 1 -#define SETUP_TOKEN_EDITOR_CASCADE_EMC 2 -#define SETUP_TOKEN_EDITOR_CASCADE_RND 3 -#define SETUP_TOKEN_EDITOR_CASCADE_SB 4 -#define SETUP_TOKEN_EDITOR_CASCADE_SP 5 -#define SETUP_TOKEN_EDITOR_CASCADE_DC 6 -#define SETUP_TOKEN_EDITOR_CASCADE_DX 7 -#define SETUP_TOKEN_EDITOR_CASCADE_TEXT 8 -#define SETUP_TOKEN_EDITOR_CASCADE_STEELTEXT 9 -#define SETUP_TOKEN_EDITOR_CASCADE_CE 10 -#define SETUP_TOKEN_EDITOR_CASCADE_GE 11 -#define SETUP_TOKEN_EDITOR_CASCADE_REF 12 -#define SETUP_TOKEN_EDITOR_CASCADE_USER 13 -#define SETUP_TOKEN_EDITOR_CASCADE_DYNAMIC 14 - -#define NUM_EDITOR_CASCADE_SETUP_TOKENS 15 +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 */ -#define SETUP_TOKEN_SHORTCUT_SAVE_GAME 0 -#define SETUP_TOKEN_SHORTCUT_LOAD_GAME 1 -#define SETUP_TOKEN_SHORTCUT_TOGGLE_PAUSE 2 -#define SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_1 3 -#define SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_2 4 -#define SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_3 5 -#define SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_4 6 -#define SETUP_TOKEN_SHORTCUT_FOCUS_PLAYER_ALL 7 -#define SETUP_TOKEN_SHORTCUT_TAPE_EJECT 8 -#define SETUP_TOKEN_SHORTCUT_TAPE_EXTRA 9 -#define SETUP_TOKEN_SHORTCUT_TAPE_STOP 10 -#define SETUP_TOKEN_SHORTCUT_TAPE_PAUSE 11 -#define SETUP_TOKEN_SHORTCUT_TAPE_RECORD 12 -#define SETUP_TOKEN_SHORTCUT_TAPE_PLAY 13 -#define SETUP_TOKEN_SHORTCUT_SOUND_SIMPLE 14 -#define SETUP_TOKEN_SHORTCUT_SOUND_LOOPS 15 -#define SETUP_TOKEN_SHORTCUT_SOUND_MUSIC 16 -#define SETUP_TOKEN_SHORTCUT_SNAP_LEFT 17 -#define SETUP_TOKEN_SHORTCUT_SNAP_RIGHT 18 -#define SETUP_TOKEN_SHORTCUT_SNAP_UP 19 -#define SETUP_TOKEN_SHORTCUT_SNAP_DOWN 20 - -#define NUM_SHORTCUT_SETUP_TOKENS 21 +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 */ -#define SETUP_TOKEN_PLAYER_USE_JOYSTICK 0 -#define SETUP_TOKEN_PLAYER_JOY_DEVICE_NAME 1 -#define SETUP_TOKEN_PLAYER_JOY_XLEFT 2 -#define SETUP_TOKEN_PLAYER_JOY_XMIDDLE 3 -#define SETUP_TOKEN_PLAYER_JOY_XRIGHT 4 -#define SETUP_TOKEN_PLAYER_JOY_YUPPER 5 -#define SETUP_TOKEN_PLAYER_JOY_YMIDDLE 6 -#define SETUP_TOKEN_PLAYER_JOY_YLOWER 7 -#define SETUP_TOKEN_PLAYER_JOY_SNAP 8 -#define SETUP_TOKEN_PLAYER_JOY_DROP 9 -#define SETUP_TOKEN_PLAYER_KEY_LEFT 10 -#define SETUP_TOKEN_PLAYER_KEY_RIGHT 11 -#define SETUP_TOKEN_PLAYER_KEY_UP 12 -#define SETUP_TOKEN_PLAYER_KEY_DOWN 13 -#define SETUP_TOKEN_PLAYER_KEY_SNAP 14 -#define SETUP_TOKEN_PLAYER_KEY_DROP 15 - -#define NUM_PLAYER_SETUP_TOKENS 16 +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 */ -#define SETUP_TOKEN_SYSTEM_SDL_VIDEODRIVER 0 -#define SETUP_TOKEN_SYSTEM_SDL_AUDIODRIVER 1 -#define SETUP_TOKEN_SYSTEM_AUDIO_FRAGMENT_SIZE 2 +enum +{ + SETUP_TOKEN_SYSTEM_SDL_VIDEODRIVER = 0, + SETUP_TOKEN_SYSTEM_SDL_AUDIODRIVER, + SETUP_TOKEN_SYSTEM_AUDIO_FRAGMENT_SIZE, -#define NUM_SYSTEM_SETUP_TOKENS 3 + NUM_SYSTEM_SETUP_TOKENS +}; /* internal setup */ -#define SETUP_TOKEN_INT_PROGRAM_TITLE 0 -#define SETUP_TOKEN_INT_PROGRAM_VERSION 1 -#define SETUP_TOKEN_INT_PROGRAM_AUTHOR 2 -#define SETUP_TOKEN_INT_PROGRAM_EMAIL 3 -#define SETUP_TOKEN_INT_PROGRAM_WEBSITE 4 -#define SETUP_TOKEN_INT_PROGRAM_COPYRIGHT 5 -#define SETUP_TOKEN_INT_PROGRAM_COMPANY 6 -#define SETUP_TOKEN_INT_PROGRAM_ICON_FILE 7 -#define SETUP_TOKEN_INT_DEFAULT_GRAPHICS_SET 8 -#define SETUP_TOKEN_INT_DEFAULT_SOUNDS_SET 9 -#define SETUP_TOKEN_INT_DEFAULT_MUSIC_SET 10 -#define SETUP_TOKEN_INT_FALLBACK_GRAPHICS_FILE 11 -#define SETUP_TOKEN_INT_FALLBACK_SOUNDS_FILE 12 -#define SETUP_TOKEN_INT_FALLBACK_MUSIC_FILE 13 -#define SETUP_TOKEN_INT_DEFAULT_LEVEL_SERIES 14 -#define SETUP_TOKEN_INT_CHOOSE_FROM_TOP_LEVELDIR 15 -#define SETUP_TOKEN_INT_SHOW_SCALING_IN_TITLE 16 -#define SETUP_TOKEN_INT_DEFAULT_WINDOW_WIDTH 17 -#define SETUP_TOKEN_INT_DEFAULT_WINDOW_HEIGHT 18 - -#define NUM_INTERNAL_SETUP_TOKENS 19 +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 */ -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_0 0 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_1 1 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_2 2 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_3 3 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_4 4 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_5 5 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_6 6 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_7 7 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_8 8 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_9 9 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_0 10 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_1 11 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_2 12 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_3 13 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_4 14 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_5 15 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_6 16 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_7 17 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_8 18 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_KEY_9 19 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_USE_MOD_KEY 20 -#define SETUP_TOKEN_DEBUG_FRAME_DELAY_GAME_ONLY 21 -#define SETUP_TOKEN_DEBUG_SHOW_FRAMES_PER_SECOND 22 - -#define NUM_DEBUG_SETUP_TOKENS 23 +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 */ -#define SETUP_TOKEN_OPTIONS_VERBOSE 0 +enum +{ + SETUP_TOKEN_OPTIONS_VERBOSE = 0, -#define NUM_OPTIONS_SETUP_TOKENS 1 + NUM_OPTIONS_SETUP_TOKENS +}; static struct SetupInfo si;