--- Daodan/src/Daodan.c 2009/07/17 08:34:48 439 +++ 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; @@ -168,7 +169,7 @@ bool DDrPatch_Init() return true; } -enum {s_unknown, s_options, s_patch, s_language} ini_section; +enum {s_unknown, s_options, s_patch, s_bsl, s_language} ini_section; bool DDrIniCallback(char* section, bool newsection, char* name, char* value) { @@ -178,6 +179,8 @@ bool DDrIniCallback(char* section, bool ini_section = s_options; else if (!stricmp(section, "patch")) ini_section = s_patch; + else if (!stricmp(section, "bsl")) + ini_section = s_bsl; else if (!stricmp(section, "language")) ini_section = s_language; else @@ -238,9 +241,14 @@ 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; + case s_bsl: + + break; case s_language: if (!stricmp(name, "savepoint")) { @@ -421,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);