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

Comparing Daodan/src/Daodan.c (file contents):
Revision 466 by rossy, Sat Oct 17 11:49:49 2009 UTC vs.
Revision 474 by rossy, Fri Oct 30 08:52:50 2009 UTC

# Line 46 | Line 46 | bool patch_safeprintf = true;
46   bool patch_daodandisplayenum = true;
47   bool patch_usegettickcount = true;
48   bool patch_cheatsenabled = true;
49 < bool patch_usedaodangl = false;
50 < bool patch_windowhack = true;
49 > bool patch_usedaodangl = true;
50 > bool patch_windowhack = false;
51   bool patch_daodaninit = true;
52   bool patch_bsl = true;
53   bool patch_cheater = true;
54  
55 + // bool patch_newweapon = true;
56 +
57   bool opt_usedaodanbsl = true;
58 + bool opt_border = true;
59 + bool opt_shadow = false;
60 + bool opt_topmost = false;
61  
62   bool DDrPatch_Init()
63   {
# Line 170 | Line 175 | bool DDrPatch_Init()
175                  DDrPatch_Byte  (OniExe + 0x00135af0, 0x07);
176                  DDrPatch_Byte  (OniExe + 0x00135af4, 0x0B);
177          }
178 +
179 +        //Test newweap patch
180 + //      if (patch_newweapon) {
181 + //              DDrPatch_NOOP( OniExe + 0x000E4DF8, 2);
182 + //      }
183          
184          // Disable loading the vtuneapi.dll
185          if (patch_killvtune)
# Line 212 | Line 222 | bool DDrIniCallback(char* section, bool
222                  case s_options:
223                          if (!stricmp(name, "usedaodanbsl"))
224                                  opt_usedaodanbsl = !stricmp(inifile_cleanstr(value), "true");
225 +                        else if (!stricmp(name, "border"))
226 +                                opt_border = !stricmp(inifile_cleanstr(value), "true");
227 +                        else if (!stricmp(name, "shadow"))
228 +                                opt_shadow = !stricmp(inifile_cleanstr(value), "true");
229 +                        else if (!stricmp(name, "topmost"))
230 +                                opt_topmost = !stricmp(inifile_cleanstr(value), "true");
231 +                        else if (!stricmp(name, "multibyte"))
232 +                                patch_multibyte = !stricmp(inifile_cleanstr(value), "true");
233                          else if (!stricmp(name, "debug"))
234                                  AKgDebug_DebugMaps = !stricmp(inifile_cleanstr(value), "true");
235                          else if (!stricmp(name, "debugfiles"))
# Line 449 | Line 467 | void __cdecl DDrMain(int argc, char* arg
467                                  *option = '\0';
468                                  falseoption = (option[1] == 'n' || option[1] == 'N') && (option[2] = 'o' || option[2] == 'O');
469                                  if (i < (argc - 1) && argv[i + 1][0] != '-')
470 <                                        DDrIniCallback(section, true, option + (falseoption ? 3 : 1), argv[++i]);
470 >                                        DDrIniCallback(section, true, option + 1, argv[++i]);
471                                  else
472                                          DDrIniCallback(section, true, option + (falseoption ? 3 : 1), (falseoption ? "false" : "true"));
473                                  *option = '.';
# Line 459 | Line 477 | void __cdecl DDrMain(int argc, char* arg
477                                  falseoption = (section[0] == 'n' || section[0] == 'N') && (section[1] = 'o' || section[1] == 'O');
478                                  ini_section = s_options;
479                                  if (i < (argc - 1) && argv[i + 1][0] != '-')
480 <                                        DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), argv[++i]);
480 >                                        DDrIniCallback(NULL, false, section, argv[++i]);
481                                  else
482                                          DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), (falseoption ? "false" : "true"));
483                          }

Diff Legend

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