ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_Config.h
(Generate patch)

Comparing Daodan/src/Daodan_Config.h (file contents):
Revision 994 by alloc, Mon Apr 7 10:33:27 2014 UTC vs.
Revision 1162 by rossy, Sun Oct 24 02:50:32 2021 UTC

# Line 9 | Line 9 | typedef enum {
9          C_CMD,
10          C_BOOL,
11          C_INT,
12 +        C_FLOAT,
13          C_STRING,
14          EXT_BOOL
15   } OptionType_t;
16  
17   typedef union {
18          int intBoolVal;
19 +        float floatVal;
20          uint8_t* extBoolVal;
21          char* stringVal;
22          cmd_callback callback;
# Line 31 | Line 33 | typedef struct {
33   typedef struct {
34          char* name;
35          char* description;
36 <        ConfigOption_t options[50];
36 >        ConfigOption_t options[20];
37   } ConfigSection_t;
38  
39  
40   void DDrConfig(int argc, char* argv[]);
41 + void DDrConfig_WriteIni();
42  
43   ConfigOption_t* DDrConfig_GetOptOfType(const char* fullOptName, OptionType_t type);
44   const char* DDrConfig_GetOptionTypeName(OptionType_t type);
45 + const char* DDrConfig_GetOptionValueString(ConfigOption_t* opt, char printdefault);
46 + char DDrConfig_NonDefaultOptionValue(ConfigOption_t* opt);
47  
48   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)