| 1 | 
 + | 
 #include <windows.h> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 2 | 
   | 
 #include <string.h> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 | 
   | 
 #include "Daodan.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 | 
   | 
 #include "Daodan_WindowHack.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 13 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 14 | 
   | 
 #include "Oni.h" | 
 
 
 
 
 
 
 
 
 
 | 14 | 
 – | 
 #include "Oni_Persistence.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 16 | 
 < | 
 #include "BFW_Utility.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 | 
 > | 
 #include "Oni_GL.h" | 
 
 
 
 
 
 | 17 | 
 > | 
 #include "Daodan_GL.h" | 
 
 
 
 
 
 
 
 
 
 
 
 | 18 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
 < | 
 #include "oni_gl.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
 < | 
 #include "daodan_gl.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
 < | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | 
 < | 
 #include "inifile.h" | 
 
 
 
 
 
 
 
 
 
 | 19 | 
 > | 
 #include "Inifile_Reader.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | 
   | 
 HMODULE DDrDLLModule; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 22 | 
   | 
 HMODULE DDrONiModule; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 326 | 
   | 
                                 opt_sound = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 327 | 
   | 
                         else if (!_stricmp(name, "switch")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 328 | 
   | 
                                 M3gResolutionSwitch = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 | 331 | 
 – | 
                         //else if (!_stricmp(name, "devmode")) | 
 
 
 
 
 
 
 
 
 
 | 332 | 
 – | 
                                 //turn_dev_mode_on = !_stricmp(inifile_cleanstr(value), "true"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 329 | 
   | 
                         else | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 330 | 
   | 
                                 DDrStartupMessage("unrecognised option \"%s\"", name); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 331 | 
   | 
                         break; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 676 | 
   | 
                 DDrPatch_MakeJump((void*)(OniExe + 0x0010f021), (void*)DDrCheater_LevelLoad); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 677 | 
   | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 678 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 | 683 | 
 – | 
         //DDrPatch_MakeJump((void*)(OniExe + 0x000378c0, (void*)DDrException); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 679 | 
   | 
         DDrPatch_MakeJump((void*)(OniExe + 0x000245A0), (void*)DDrPrintWarning); | 
 
 
 
 
 
 
 
 
 
 | 685 | 
 – | 
         //init_daodan_gl(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 680 | 
   | 
          | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 681 | 
   | 
         ONiMain(argc, argv); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 682 | 
   | 
 } |