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 689 by alloc, Mon Mar 4 15:52:19 2013 UTC vs.
Revision 690 by alloc, Wed Mar 6 18:33:15 2013 UTC

# Line 54 | Line 54 | bool patch_cheater = true;
54   bool patch_newweapon = true;
55   bool opt_usedaodanbsl = true;
56   bool opt_border = true;
57 bool opt_shadow = false;
57   bool opt_topmost = false;
58  
59   typedef int (__cdecl *CHINESEPROC)(DWORD WINAPI);
# Line 143 | Line 142 | bool DDrPatch_Init()
142          // Disable UUrPlatform_Initalize/Terminate, this enables the Alt-Tab and the Windows key but has the possible side effect of allowing the screensaver to enable itself in-game.
143          if (patch_alttab)
144          {
145 +                // 0xC3 = ret, so makes those functions just have a "ret" instruction at their start
146                  DDrPatch_Byte  ((char*)UUrPlatform_Initialize, 0xC3);
147                  DDrPatch_Byte  ((char*)UUrPlatform_Terminate, 0xC3);
148          }
# Line 312 | Line 312 | bool DDrIniCallback(char* section, bool
312                                  opt_usedaodanbsl = !_stricmp(inifile_cleanstr(value), "true");
313                          else if (!_stricmp(name, "border"))
314                                  opt_border = !_stricmp(inifile_cleanstr(value), "true");
315                        else if (!_stricmp(name, "shadow"))
316                                opt_shadow = !_stricmp(inifile_cleanstr(value), "true");
315                          else if (!_stricmp(name, "topmost"))
316                                  opt_topmost = !_stricmp(inifile_cleanstr(value), "true");
317                          else if (!_stricmp(name, "multibyte"))
# Line 588 | Line 586 | void __cdecl DDrMain(int argc, char* arg
586  
587          DDrStartupMessage("daodan attached!");
588          
589 +        // Tell Oni to not load non levelX_final-files by default:
590          opt_ignore_private_data = false;
591 +
592 +        // Enable sound by default:
593          opt_sound = true;
594          
595          DDrConfig();

Diff Legend

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