--- Daodan/src/Daodan.c 2013/03/04 15:52:19 689 +++ Daodan/src/Daodan.c 2013/03/06 18:33:15 690 @@ -54,7 +54,6 @@ bool patch_cheater = true; bool patch_newweapon = true; bool opt_usedaodanbsl = true; bool opt_border = true; -bool opt_shadow = false; bool opt_topmost = false; typedef int (__cdecl *CHINESEPROC)(DWORD WINAPI); @@ -143,6 +142,7 @@ bool DDrPatch_Init() // 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. if (patch_alttab) { + // 0xC3 = ret, so makes those functions just have a "ret" instruction at their start DDrPatch_Byte ((char*)UUrPlatform_Initialize, 0xC3); DDrPatch_Byte ((char*)UUrPlatform_Terminate, 0xC3); } @@ -312,8 +312,6 @@ bool DDrIniCallback(char* section, bool opt_usedaodanbsl = !_stricmp(inifile_cleanstr(value), "true"); else if (!_stricmp(name, "border")) opt_border = !_stricmp(inifile_cleanstr(value), "true"); - else if (!_stricmp(name, "shadow")) - opt_shadow = !_stricmp(inifile_cleanstr(value), "true"); else if (!_stricmp(name, "topmost")) opt_topmost = !_stricmp(inifile_cleanstr(value), "true"); else if (!_stricmp(name, "multibyte")) @@ -588,7 +586,10 @@ void __cdecl DDrMain(int argc, char* arg DDrStartupMessage("daodan attached!"); + // Tell Oni to not load non levelX_final-files by default: opt_ignore_private_data = false; + + // Enable sound by default: opt_sound = true; DDrConfig();