| 54 |  | bool patch_newweapon = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 |  | bool opt_usedaodanbsl = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 |  | bool opt_border = true; | 
 
 
 
 
 
 
 
 
 | 57 | – | bool opt_shadow = false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 |  | bool opt_topmost = false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 |  | typedef int (__cdecl *CHINESEPROC)(DWORD WINAPI); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 142 |  | // Disable UUrPlatform_Initalize/Terminate, this enables the Alt-Tab and the Windows key but has the possible side effect of allowing the screensaver to enable itself in-game. | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 143 |  | if (patch_alttab) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 144 |  | { | 
 
 
 
 
 
 
 
 | 145 | + | // 0xC3 = ret, so makes those functions just have a "ret" instruction at their start | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 146 |  | DDrPatch_Byte  ((char*)UUrPlatform_Initialize, 0xC3); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 147 |  | DDrPatch_Byte  ((char*)UUrPlatform_Terminate, 0xC3); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 148 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 312 |  | opt_usedaodanbsl = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 313 |  | else if (!_stricmp(name, "border")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 314 |  | opt_border = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 | 315 | – | else if (!_stricmp(name, "shadow")) | 
 
 
 
 
 
 
 
 
 | 316 | – | opt_shadow = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 315 |  | else if (!_stricmp(name, "topmost")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 316 |  | opt_topmost = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 317 |  | else if (!_stricmp(name, "multibyte")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 586 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 587 |  | DDrStartupMessage("daodan attached!"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 588 |  |  | 
 
 
 
 
 
 
 
 | 589 | + | // Tell Oni to not load non levelX_final-files by default: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 590 |  | opt_ignore_private_data = false; | 
 
 
 
 
 
 
 
 | 591 | + |  | 
 
 
 
 
 
 
 
 | 592 | + | // Enable sound by default: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 593 |  | opt_sound = true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 594 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 595 |  | DDrConfig(); |