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 439 by rossy, Fri Jul 17 08:34:48 2009 UTC vs.
Revision 447 by rossy, Tue Jul 21 03:33:07 2009 UTC

# Line 46 | Line 46 | bool patch_cheatsenabled = true;
46   bool patch_usedaodangl = false;
47   bool patch_windowhack = true;
48   bool patch_daodaninit = true;
49 + bool patch_bsl = true;
50  
51   bool opt_usedaodanbsl = true;
52  
# Line 168 | Line 169 | bool DDrPatch_Init()
169          return true;
170   }
171  
172 < enum {s_unknown, s_options, s_patch, s_language} ini_section;
172 > enum {s_unknown, s_options, s_patch, s_bsl, s_language} ini_section;
173  
174   bool DDrIniCallback(char* section, bool newsection, char* name, char* value)
175   {
# Line 178 | Line 179 | bool DDrIniCallback(char* section, bool
179                          ini_section = s_options;
180                  else if (!stricmp(section, "patch"))
181                          ini_section = s_patch;
182 +                else if (!stricmp(section, "bsl"))
183 +                        ini_section = s_bsl;
184                  else if (!stricmp(section, "language"))
185                          ini_section = s_language;
186                  else
# Line 238 | Line 241 | bool DDrIniCallback(char* section, bool
241                                  patch_windowhack = !stricmp(value, "true");
242                          else if (!stricmp(name, "daodaninit"))
243                                  patch_daodaninit = !stricmp(value, "true");
244 +                        else if (!stricmp(name, "bsl"))
245 +                                patch_bsl = !stricmp(value, "true");
246                          else
247                                  DDrStartupMessage("unrecognised patch \"%s\"", name);
248                          break;
249 +                case s_bsl:
250 +                        
251 +                        break;
252                  case s_language:
253                          if (!stricmp(name, "savepoint"))
254                          {
# Line 421 | Line 429 | void __cdecl DDrMain(int argc, char* arg
429          if (patch_daodaninit)
430                  DDrPatch_MakeCall(OniExe + 0x000d345a, DDrGame_Init);
431          
432 +        // Patches for existing BSL functions
433 +        if (patch_bsl)
434 +                SLrDaodan_Patch();
435 +        
436          init_daodan_gl();
437          
438          ONiMain(argc, argv);

Diff Legend

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