Ignore:
Timestamp:
Apr 6, 2014, 7:06:02 PM (11 years ago)
Author:
alloc
Message:

Daodan:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Config.h

    r984 r993  
    44#include "stdint.h"
    55
     6typedef enum {
     7        C_BOOL,
     8        C_INT,
     9        C_STRING,
     10        EXT_BOOL
     11} OptionType_t;
     12
     13typedef union {
     14        int intBoolVal;
     15        uint8_t* extBoolVal;
     16        char* stringVal;
     17} OptionValue_t;
     18
     19typedef struct {
     20        char* name;
     21        char* description;
     22        OptionType_t type;
     23        OptionValue_t defaultValue;
     24        OptionValue_t value;
     25} ConfigOption_t;
     26
     27typedef struct {
     28        char* name;
     29        char* description;
     30        ConfigOption_t options[50];
     31} ConfigSection_t;
     32
     33
    634void DDrConfig(int argc, char* argv[]);
    735
    8 extern bool patch_alttab;
    9 extern bool patch_argb8888;
    10 extern bool patch_binkplay;
    11 extern bool patch_bsl;
    12 extern bool patch_cheater;
    13 extern bool patch_cheatsenabled;
    14 extern bool patch_cheattable;
    15 extern bool patch_clipcursor;
    16 extern bool patch_cooldowntimer;
    17 extern bool patch_daodandisplayenum;
    18 extern bool patch_directinput;
    19 extern bool patch_disablecmdline;
    20 extern bool patch_flatline;
    21 extern bool patch_fonttexturecache;
    22 extern bool patch_getcmdline;
    23 extern bool patch_hdscreens_lowres;
    24 extern bool patch_highres_console;
    25 extern bool patch_kickguns;
    26 extern bool patch_killvtune;
    27 extern bool patch_largetextures;
    28 extern bool patch_levelplugins;
    29 extern bool patch_newweapon;
    30 extern bool patch_nomultibyte;
    31 extern bool patch_optionsvisible;
    32 extern bool patch_particledisablebit;
    33 extern bool patch_pathfinding;
    34 extern bool patch_projaware;
    35 extern bool patch_safeprintf;
    36 extern bool patch_showalllasersights;
    37 extern bool patch_showtriggervolumes;
    38 extern bool patch_throwtest;
    39 extern bool patch_usedaodangl;
    40 extern bool patch_usegettickcount;
    41 extern bool patch_wpfadetime;
    42 
    43 extern bool opt_border;
    44 extern bool opt_gamma;
    45 extern bool opt_topmost;
    46 extern bool opt_usedaodanbsl;
    47 
    48 extern bool patch_chinese;
     36ConfigOption_t* DDrConfig_GetOptOfType(const char* fullOptName, OptionType_t type);
     37const char* DDrConfig_GetOptionTypeName(OptionType_t type);
    4938
    5039#endif
Note: See TracChangeset for help on using the changeset viewer.