Exemplo n.º 1
0
    CONFIG_VARIABLE_GENERIC(name, DEFAULT_STRING)

//! @begin_config_file default

static default_t	doom_defaults_list[] =
{
    //!
    // Mouse sensitivity.  This value is used to multiply input mouse
    // movement to control the effect of moving the mouse.
    //
    // The "normal" maximum value available for this through the
    // in-game options menu is 9. A value of 31 or greater will cause
    // the game to crash when entering the options menu.
    //

    CONFIG_VARIABLE_INT(mouse_sensitivity),

    //!
    // Volume of sound effects, range 0-15.
    //

    CONFIG_VARIABLE_INT(sfx_volume),

    //!
    // Volume of in-game music, range 0-15.
    //

    CONFIG_VARIABLE_INT(music_volume),

    //!
    // @game strife
Exemplo n.º 2
0
    { #name, &variable, type, 0, 0, set }

#define CONFIG_VARIABLE_KEY(name, variable, set) \
    CONFIG_VARIABLE_GENERIC(name, variable, DEFAULT_KEY, set)
#define CONFIG_VARIABLE_INT(name, variable, set) \
    CONFIG_VARIABLE_GENERIC(name, variable, DEFAULT_INT, set)
#define CONFIG_VARIABLE_INT_HEX(name, variable, set) \
    CONFIG_VARIABLE_GENERIC(name, variable, DEFAULT_INT_HEX, set)
#define CONFIG_VARIABLE_FLOAT(name, variable, set) \
    CONFIG_VARIABLE_GENERIC(name, variable, DEFAULT_FLOAT, set)
#define CONFIG_VARIABLE_STRING(name, variable, set) \
    CONFIG_VARIABLE_GENERIC(name, variable, DEFAULT_STRING, set)

static default_t doom_defaults_list[] =
{
    CONFIG_VARIABLE_INT   (alwaysrun,           alwaysrun,            1),
    CONFIG_VARIABLE_INT   (bloodsplats,         bloodsplats,          7),
    CONFIG_VARIABLE_INT   (brightmaps,          brightmaps,           1),
    CONFIG_VARIABLE_INT   (corpses,             corpses,             11),
    CONFIG_VARIABLE_INT   (dclick_use,          dclick_use,           1),
    CONFIG_VARIABLE_INT   (episode,             selectedepisode,      8),
    CONFIG_VARIABLE_INT   (expansion,           selectedexpansion,    9),
    CONFIG_VARIABLE_INT   (fullscreen,          fullscreen,           1),
    CONFIG_VARIABLE_INT   (gamepad_automap,     gamepadautomap,       2),
    CONFIG_VARIABLE_INT   (gamepad_fire,        gamepadfire,          2),
    CONFIG_VARIABLE_INT   (gamepad_lefthanded,  gamepadlefthanded,    1),
    CONFIG_VARIABLE_INT   (gamepad_menu,        gamepadmenu,          2),
    CONFIG_VARIABLE_INT   (gamepad_nextweapon,  gamepadnextweapon,    2),
    CONFIG_VARIABLE_INT   (gamepad_prevweapon,  gamepadprevweapon,    2),
    CONFIG_VARIABLE_INT   (gamepad_speed,       gamepadspeed,         2),
    CONFIG_VARIABLE_INT   (gamepad_use,         gamepaduse,           2),
Exemplo n.º 3
0
void bind_cmd_func2(char *cmd, char *parms);

#define CONFIG_VARIABLE_INT(name, set)              { #name, &name, DEFAULT_INT,           set          }
#define CONFIG_VARIABLE_INT_UNSIGNED(name, set)     { #name, &name, DEFAULT_INT_UNSIGNED,  set          }
#define CONFIG_VARIABLE_INT_PERCENT(name, set)      { #name, &name, DEFAULT_INT_PERCENT,   set          }
#define CONFIG_VARIABLE_FLOAT(name, set)            { #name, &name, DEFAULT_FLOAT,         set          }
#define CONFIG_VARIABLE_FLOAT_PERCENT(name, set)    { #name, &name, DEFAULT_FLOAT_PERCENT, set          }
#define CONFIG_VARIABLE_STRING(name, set)           { #name, &name, DEFAULT_STRING,        set          }
#define CONFIG_VARIABLE_OTHER(name, set)            { #name, &name, DEFAULT_OTHER,         set          }
#define BLANKLINE                                   { "",    "",    DEFAULT_OTHER,         NOVALUEALIAS }
#define COMMENT(text)                               { text,  "",    DEFAULT_OTHER,         NOVALUEALIAS }

static default_t cvars[] =
{
    COMMENT("; CVARs\n"),
    CONFIG_VARIABLE_INT          (alwaysrun,                                         BOOLVALUEALIAS     ),
    CONFIG_VARIABLE_INT          (am_allmapcdwallcolor,                              NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_allmapfdwallcolor,                              NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_allmapwallcolor,                                NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_backcolor,                                      NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_cdwallcolor,                                    NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_crosshaircolor,                                 NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_external,                                       BOOLVALUEALIAS     ),
    CONFIG_VARIABLE_INT          (am_fdwallcolor,                                    NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_grid,                                           BOOLVALUEALIAS     ),
    CONFIG_VARIABLE_INT          (am_gridcolor,                                      NOVALUEALIAS       ),
    CONFIG_VARIABLE_OTHER        (am_gridsize,                                       NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_markcolor,                                      NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_path,                                           BOOLVALUEALIAS     ),
    CONFIG_VARIABLE_INT          (am_pathcolor,                                      NOVALUEALIAS       ),
    CONFIG_VARIABLE_INT          (am_playercolor,                                    NOVALUEALIAS       ),
    { #name, &variable, DEFAULT_STRING, 0, 0 }

//! @begin_config_file default.cfg

static default_t	doom_defaults_list[] =
{
    //! 
    // Mouse sensitivity.  This value is used to multiply input mouse
    // movement to control the effect of moving the mouse.
    //
    // The "normal" maximum value available for this through the 
    // in-game options menu is 9. A value of 31 or greater will cause
    // the game to crash when entering the options menu.
    //

    CONFIG_VARIABLE_INT(mouse_sensitivity, mouseSensitivity),

    //!
    // Volume of sound effects, range 0-15.
    //

    CONFIG_VARIABLE_INT(sfx_volume,        sfxVolume),

    //!
    // Volume of in-game music, range 0-15.
    //

    CONFIG_VARIABLE_INT(music_volume,      musicVolume),

    //!
    // If non-zero, messages are displayed on the heads-up display