--- Daodan/src/Daodan.c 2009/07/19 11:03:44 445 +++ Daodan/src/Daodan.c 2009/07/21 03:33:07 447 @@ -46,6 +46,7 @@ bool patch_cheatsenabled = true; bool patch_usedaodangl = false; bool patch_windowhack = true; bool patch_daodaninit = true; +bool patch_bsl = true; bool opt_usedaodanbsl = true; @@ -240,6 +241,8 @@ bool DDrIniCallback(char* section, bool patch_windowhack = !stricmp(value, "true"); else if (!stricmp(name, "daodaninit")) patch_daodaninit = !stricmp(value, "true"); + else if (!stricmp(name, "bsl")) + patch_bsl = !stricmp(value, "true"); else DDrStartupMessage("unrecognised patch \"%s\"", name); break; @@ -426,6 +429,10 @@ void __cdecl DDrMain(int argc, char* arg if (patch_daodaninit) DDrPatch_MakeCall(OniExe + 0x000d345a, DDrGame_Init); + // Patches for existing BSL functions + if (patch_bsl) + SLrDaodan_Patch(); + init_daodan_gl(); ONiMain(argc, argv);