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 451 by rossy, Sun Jul 26 12:04:44 2009 UTC vs.
Revision 452 by rossy, Mon Aug 10 09:09:53 2009 UTC

# Line 47 | Line 47 | bool patch_usedaodangl = false;
47   bool patch_windowhack = true;
48   bool patch_daodaninit = true;
49   bool patch_bsl = true;
50 + bool patch_cheater = true;
51  
52   bool opt_usedaodanbsl = true;
53  
# Line 243 | Line 244 | bool DDrIniCallback(char* section, bool
244                                  patch_daodaninit = !stricmp(inifile_cleanstr(value), "true");
245                          else if (!stricmp(name, "bsl"))
246                                  patch_bsl = !stricmp(inifile_cleanstr(value), "true");
247 +                        else if (!stricmp(name, "cheater"))
248 +                                patch_cheater = !stricmp(inifile_cleanstr(value), "true");
249                          else
250                                  DDrStartupMessage("unrecognised patch \"%s\"", name);
251                          break;
# Line 305 | Line 308 | bool DDrIniCallback(char* section, bool
308                          {
309                                  char* str = strdup(value);
310                                  DDr_CheatTable[11].message_on = str;
311 <                                DDr_CheatTable[cheat_devmodex].message_on = str;
311 >                                DDr_CheatTable[cheat_x].message_on = str;
312                          }
313                          else if (!stricmp(name, "devmode_off"))
314                          {
315                                  char* str = strdup(value);
316                                  DDr_CheatTable[11].message_off = str;
317 <                                DDr_CheatTable[cheat_devmodex].message_off = str;
317 >                                DDr_CheatTable[cheat_x].message_off = str;
318                          }
319                          else if (!stricmp(name, "reservoirdogs_on"))
320                                  DDr_CheatTable[12].message_on = strdup(value);
# Line 431 | Line 434 | void __cdecl DDrMain(int argc, char* arg
434          if (patch_bsl)
435                  SLrDaodan_Patch();
436          
437 +        if (patch_cheater)
438 +                DDrPatch_MakeCall(OniExe + 0x000f618f, DDrCheater);
439 +        
440          init_daodan_gl();
441          
442          ONiMain(argc, argv);

Diff Legend

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