--- Daodan/src/Daodan.c 2013/04/29 19:08:16 839 +++ Daodan/src/Daodan.c 2014/04/05 10:19:11 992 @@ -1,6 +1,7 @@ #include #include #include +#include #include "Daodan.h" #include "Daodan_Patch.h" @@ -10,24 +11,37 @@ #include "Daodan_Console.h" #include "Daodan_Config.h" #include "patches/Patches.h" +#include "bink-proxy.h" +#include "_Version.h" -#include "Oni.h" - -#include "Oni_GL.h" +#include "Oni/Oni.h" HMODULE DDrDLLModule; HMODULE DDrONiModule; - void __cdecl DDrMain(int argc, char* argv[]) { - DDrStartupMessage("Daodan: Daodan attached!"); + time_t rawtime; + struct tm* timeinfo; + char buffer[80]; + time(&rawtime); + timeinfo = localtime(&rawtime); + strftime(buffer, 80, "Daodan: %Y-%m-%d %H:%M:%S", timeinfo); + + DDrStartupMessage("Daodan: Daodan v."DAODAN_VERSION_STRING" attached!"); + DDrStartupMessage(buffer); DDrConfig(argc, argv); + if(GetKeyState(VK_SHIFT) & 0x8000) { + DDrStartupMessage("Daodan: Shift"); + guitest(DDrONiModule); + } + DD_Patch_Init(); - - + + BinkProxyInit(); + ONiMain(argc, argv); } /*