| 3 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 | 
   | 
 #include "stdint.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 6 | 
 < | 
 void DDrConfig(int argc, char* argv[]); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 | 
 > | 
 typedef void (*cmd_callback)(); | 
 
 
 
 
 
 | 7 | 
 > | 
  | 
 
 
 
 
 
 | 8 | 
 > | 
 typedef enum { | 
 
 
 
 
 
 | 9 | 
 > | 
         C_CMD, | 
 
 
 
 
 
 | 10 | 
 > | 
         C_BOOL, | 
 
 
 
 
 
 | 11 | 
 > | 
         C_INT, | 
 
 
 
 
 
 | 12 | 
 > | 
         C_STRING, | 
 
 
 
 
 
 | 13 | 
 > | 
         EXT_BOOL | 
 
 
 
 
 
 | 14 | 
 > | 
 } OptionType_t; | 
 
 
 
 
 
 | 15 | 
 > | 
  | 
 
 
 
 
 
 | 16 | 
 > | 
 typedef union { | 
 
 
 
 
 
 | 17 | 
 > | 
         int intBoolVal; | 
 
 
 
 
 
 | 18 | 
 > | 
         uint8_t* extBoolVal; | 
 
 
 
 
 
 | 19 | 
 > | 
         char* stringVal; | 
 
 
 
 
 
 | 20 | 
 > | 
         cmd_callback callback; | 
 
 
 
 
 
 | 21 | 
 > | 
 } OptionValue_t; | 
 
 
 
 
 
 | 22 | 
 > | 
  | 
 
 
 
 
 
 | 23 | 
 > | 
 typedef struct { | 
 
 
 
 
 
 | 24 | 
 > | 
         char* name; | 
 
 
 
 
 
 | 25 | 
 > | 
         char* description; | 
 
 
 
 
 
 | 26 | 
 > | 
         OptionType_t type; | 
 
 
 
 
 
 | 27 | 
 > | 
         OptionValue_t defaultValue; | 
 
 
 
 
 
 | 28 | 
 > | 
         OptionValue_t value; | 
 
 
 
 
 
 | 29 | 
 > | 
 } ConfigOption_t; | 
 
 
 
 
 
 | 30 | 
 > | 
  | 
 
 
 
 
 
 | 31 | 
 > | 
 typedef struct { | 
 
 
 
 
 
 | 32 | 
 > | 
         char* name; | 
 
 
 
 
 
 | 33 | 
 > | 
         char* description; | 
 
 
 
 
 
 | 34 | 
 > | 
         ConfigOption_t options[20]; | 
 
 
 
 
 
 | 35 | 
 > | 
 } ConfigSection_t; | 
 
 
 
 
 
 
 
 
 
 
 
 | 36 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 | 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; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 37 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 38 | 
 < | 
 extern bool patch_chinese; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 | 
 > | 
 void DDrConfig(int argc, char* argv[]); | 
 
 
 
 
 
 | 39 | 
 > | 
 void DDrConfig_WriteIni(); | 
 
 
 
 
 
 | 40 | 
 > | 
  | 
 
 
 
 
 
 | 41 | 
 > | 
 ConfigOption_t* DDrConfig_GetOptOfType(const char* fullOptName, OptionType_t type); | 
 
 
 
 
 
 | 42 | 
 > | 
 const char* DDrConfig_GetOptionTypeName(OptionType_t type); | 
 
 
 
 
 
 | 43 | 
 > | 
 const char* DDrConfig_GetOptionValueString(ConfigOption_t* opt, char printdefault); | 
 
 
 
 
 
 | 44 | 
 > | 
 char DDrConfig_NonDefaultOptionValue(ConfigOption_t* opt); | 
 
 
 
 
 
 
 
 
 
 
 
 | 45 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 46 | 
   | 
 #endif |