--- Daodan/src/Daodan.c 2009/05/15 11:45:19 322 +++ Daodan/src/Daodan.c 2009/06/03 12:12:21 329 @@ -1,6 +1,7 @@ #include "Daodan.h" #include "Daodan_Patch.h" #include "Daodan_Utility.h" +#include "Daodan_Win32.h" #include "Oni.h" #include "BFW_Utility.h" @@ -63,6 +64,24 @@ bool DDrPatch_Init() // Unlocks particle action disabling/enabling bits for all events. (Will be controlled by a command line switch when I figure out how to do that without Win32 hacks.) //DDrPatch_Int16 (OniExe + 0x001b184, 0x9090); + // Multi-byte patch (multiple language support) + DDrPatch_Byte (OniExe + 0x0002d8f8, 0xeb); + DDrPatch_Byte (OniExe + 0x0002d9ad, 0xeb); + DDrPatch_Byte (OniExe + 0x0002dbe2, 0xeb); + DDrPatch_Byte (OniExe + 0x0002dec3, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e2ab, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e2c4, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e379, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e48c, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e4d0, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e4f4, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e646, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e695, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e944, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e95d, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e98e, 0xeb); + DDrPatch_Byte (OniExe + 0x0002e9dc, 0xeb); + return true; } @@ -81,6 +100,12 @@ void __cdecl DDrMain(int argc, char* arg DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths); + // Windowed mode +// DDrPatch_MakeJump(ONrPlatform_Initialize, DDrPlatform_Initialize); +// DDrPatch_MakeJump(gl_platform_initialize, daodangl_platform_initialize); + +// init_daodan_gl(); + ONiMain(argc, argv); }