--- Daodan/src/Daodan.c 2009/07/26 12:04:44 451 +++ Daodan/src/Daodan.c 2009/08/10 09:09:53 452 @@ -47,6 +47,7 @@ bool patch_usedaodangl = false; bool patch_windowhack = true; bool patch_daodaninit = true; bool patch_bsl = true; +bool patch_cheater = true; bool opt_usedaodanbsl = true; @@ -243,6 +244,8 @@ bool DDrIniCallback(char* section, bool patch_daodaninit = !stricmp(inifile_cleanstr(value), "true"); else if (!stricmp(name, "bsl")) patch_bsl = !stricmp(inifile_cleanstr(value), "true"); + else if (!stricmp(name, "cheater")) + patch_cheater = !stricmp(inifile_cleanstr(value), "true"); else DDrStartupMessage("unrecognised patch \"%s\"", name); break; @@ -305,13 +308,13 @@ bool DDrIniCallback(char* section, bool { char* str = strdup(value); DDr_CheatTable[11].message_on = str; - DDr_CheatTable[cheat_devmodex].message_on = str; + DDr_CheatTable[cheat_x].message_on = str; } else if (!stricmp(name, "devmode_off")) { char* str = strdup(value); DDr_CheatTable[11].message_off = str; - DDr_CheatTable[cheat_devmodex].message_off = str; + DDr_CheatTable[cheat_x].message_off = str; } else if (!stricmp(name, "reservoirdogs_on")) DDr_CheatTable[12].message_on = strdup(value); @@ -431,6 +434,9 @@ void __cdecl DDrMain(int argc, char* arg if (patch_bsl) SLrDaodan_Patch(); + if (patch_cheater) + DDrPatch_MakeCall(OniExe + 0x000f618f, DDrCheater); + init_daodan_gl(); ONiMain(argc, argv);