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

Comparing Daodan/src/Daodan_Config.c (file contents):
Revision 838 by alloc, Mon Apr 29 16:29:16 2013 UTC vs.
Revision 992 by alloc, Sat Apr 5 10:19:11 2014 UTC

# Line 6 | Line 6
6   #include "Daodan_Patch.h"
7   #include "Daodan_Utility.h"
8  
9 < #include "Oni_Symbols.h"
9 > #include "Oni/Oni.h"
10  
11   #include "Inifile_Reader.h"
12  
# Line 20 | Line 20 | bool patch_cheattable = true;
20   bool patch_clipcursor = true;
21   bool patch_cooldowntimer = true;
22   bool patch_daodandisplayenum = true;
23 bool patch_daodaninit = true;
23   bool patch_directinput = true;
24   bool patch_disablecmdline = true;
25 + bool patch_flatline = true;
26   bool patch_fonttexturecache = true;
27   bool patch_getcmdline = true;
28 + bool patch_hdscreens_lowres = true;
29 + bool patch_highres_console = true;
30   bool patch_kickguns = false;
31   bool patch_killvtune = true;
32   bool patch_largetextures = true;
33   bool patch_levelplugins = true;
32 bool patch_multibyte = false;
34   bool patch_newweapon = true;
35 + bool patch_nomultibyte = true;
36   bool patch_optionsvisible = true;
37   bool patch_particledisablebit = false;
38   bool patch_pathfinding = true;
39   bool patch_projaware = true;
40   bool patch_safeprintf = true;
41 + bool patch_showalllasersights = false;
42 + bool patch_showtriggervolumes = true;
43   bool patch_throwtest = false;
44   bool patch_usedaodangl = true;
45   bool patch_usegettickcount = true;
# Line 57 | Line 61 | bool DDrIniCallback(char* section, bool
61          {
62                  if (!_stricmp(section, "options"))
63                          ini_section = s_options;
64 <                else if (!_stricmp(section, "patch"))
64 >                else if (!_stricmp(section, "patch") || !_stricmp(section, "patches"))
65                          ini_section = s_patch;
66                  else if (!_stricmp(section, "bsl"))
67                          ini_section = s_bsl;
# Line 85 | Line 89 | bool DDrIniCallback(char* section, bool
89                                  opt_gamma = !_stricmp(inifile_cleanstr(value), "true");
90                          else if (!_stricmp(name, "ignore_private_data"))
91                                  opt_ignore_private_data = !_stricmp(inifile_cleanstr(value), "true");
92 <                        else if (!_stricmp(name, "multibyte"))
93 <                                patch_multibyte = !_stricmp(inifile_cleanstr(value), "true");
92 >                        else if (!_stricmp(name, "nomultibyte"))
93 >                                patch_nomultibyte = !_stricmp(inifile_cleanstr(value), "true");
94                          else if (!_stricmp(name, "sound"))
95                                  opt_sound = !_stricmp(inifile_cleanstr(value), "true");
96                          else if (!_stricmp(name, "switch"))
# Line 119 | Line 123 | bool DDrIniCallback(char* section, bool
123                                  patch_cooldowntimer = !_stricmp(inifile_cleanstr(value), "true");
124                          else if (!_stricmp(name, "daodandisplayenum"))
125                                  patch_daodandisplayenum = !_stricmp(inifile_cleanstr(value), "true");
122                        else if (!_stricmp(name, "daodaninit"))
123                                patch_daodaninit = !_stricmp(inifile_cleanstr(value), "true");
126                          else if (!_stricmp(name, "directinput"))
127                                  patch_directinput = !_stricmp(inifile_cleanstr(value), "true");
128                          else if (!_stricmp(name, "disablecmdline"))
129                                  patch_disablecmdline = !_stricmp(inifile_cleanstr(value), "true");
130 +                        else if (!_stricmp(name, "flatline"))
131 +                                patch_flatline = !_stricmp(inifile_cleanstr(value), "true");
132                          else if (!_stricmp(name, "fonttexturecache"))
133                                  patch_fonttexturecache = !_stricmp(inifile_cleanstr(value), "true");
134                          else if (!_stricmp(name, "getcmdline"))
135                                  patch_getcmdline = !_stricmp(inifile_cleanstr(value), "true");
136 +                        else if (!_stricmp(name, "hdscreens_lowres"))
137 +                                patch_hdscreens_lowres = !_stricmp(inifile_cleanstr(value), "true");
138 +                        else if (!_stricmp(name, "highres_console"))
139 +                                patch_highres_console = !_stricmp(inifile_cleanstr(value), "true");
140                          else if (!_stricmp(name, "kickguns"))
141                                  patch_kickguns = !_stricmp(inifile_cleanstr(value), "true");
142                          else if (!_stricmp(name, "killvtune"))
# Line 137 | Line 145 | bool DDrIniCallback(char* section, bool
145                                  patch_largetextures = !_stricmp(inifile_cleanstr(value), "true");
146                          else if (!_stricmp(name, "levelplugins"))
147                                  patch_levelplugins = !_stricmp(inifile_cleanstr(value), "true");
148 <                        else if (!_stricmp(name, "multibyte"))
149 <                                patch_multibyte = !_stricmp(inifile_cleanstr(value), "true");
148 >                        else if (!_stricmp(name, "nomultibyte"))
149 >                                patch_nomultibyte = !_stricmp(inifile_cleanstr(value), "true");
150                          else if (!_stricmp(name, "newweap"))
151                                  patch_newweapon = !_stricmp(inifile_cleanstr(value), "true");
152                          else if (!_stricmp(name, "optionsvisible"))
# Line 151 | Line 159 | bool DDrIniCallback(char* section, bool
159                                  patch_projaware = !_stricmp(inifile_cleanstr(value), "true");
160                          else if (!_stricmp(name, "safeprintf"))
161                                  patch_safeprintf = !_stricmp(inifile_cleanstr(value), "true");
162 +                        else if (!_stricmp(name, "showalllasersights"))
163 +                                patch_showalllasersights = !_stricmp(inifile_cleanstr(value), "true");
164 +                        else if (!_stricmp(name, "showtriggervolumes"))
165 +                                patch_showtriggervolumes = !_stricmp(inifile_cleanstr(value), "true");
166                          else if (!_stricmp(name, "throwtest"))
167                                  patch_throwtest = !_stricmp(inifile_cleanstr(value), "true");
168                          else if (!_stricmp(name, "usedaodangl"))
# Line 303 | Line 315 | void DDrConfig(int argc, char* argv[])
315                  if (fp)
316                  {
317                          fputs("[Options]\n", fp);
318 +                        fputs("[Patch]\n", fp);
319 +                        fputs("[BSL]\n", fp);
320 +                        fputs("[Language]\n", fp);
321                          fclose(fp);
322                  }
323          }

Diff Legend

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