| 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 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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); |