| 47 |  | bool patch_windowhack = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 |  | bool patch_daodaninit = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 |  | bool patch_bsl = true; | 
 
 
 
 
 
 
 
 | 50 | + | bool patch_cheater = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 51 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 52 |  | bool opt_usedaodanbsl = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 244 |  | patch_daodaninit = !stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 245 |  | else if (!stricmp(name, "bsl")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 246 |  | patch_bsl = !stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 | 247 | + | else if (!stricmp(name, "cheater")) | 
 
 
 
 
 
 
 
 | 248 | + | patch_cheater = !stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 249 |  | else | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 250 |  | DDrStartupMessage("unrecognised patch \"%s\"", name); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 251 |  | break; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 308 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 309 |  | char* str = strdup(value); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 310 |  | DDr_CheatTable[11].message_on = str; | 
 
 
 
 
 
 
 
 
 
 
 | 311 | < | DDr_CheatTable[cheat_devmodex].message_on = str; | 
 
 
 
 
 
 
 
 
 | 311 | > | DDr_CheatTable[cheat_x].message_on = str; | 
 
 
 
 
 
 
 
 
 
 
 | 312 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 313 |  | else if (!stricmp(name, "devmode_off")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 314 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 315 |  | char* str = strdup(value); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 316 |  | DDr_CheatTable[11].message_off = str; | 
 
 
 
 
 
 
 
 
 
 
 | 317 | < | DDr_CheatTable[cheat_devmodex].message_off = str; | 
 
 
 
 
 
 
 
 
 | 317 | > | DDr_CheatTable[cheat_x].message_off = str; | 
 
 
 
 
 
 
 
 
 
 
 | 318 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 319 |  | else if (!stricmp(name, "reservoirdogs_on")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 320 |  | DDr_CheatTable[12].message_on = strdup(value); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 434 |  | if (patch_bsl) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 435 |  | SLrDaodan_Patch(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 436 |  |  | 
 
 
 
 
 
 
 
 | 437 | + | if (patch_cheater) | 
 
 
 
 
 
 
 
 | 438 | + | DDrPatch_MakeCall(OniExe + 0x000f618f, DDrCheater); | 
 
 
 
 
 
 
 
 | 439 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 440 |  | init_daodan_gl(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 441 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 442 |  | ONiMain(argc, argv); |