--- Daodan/src/Daodan.c 2013/04/29 19:08:16 839 +++ Daodan/src/Daodan.c 2014/04/02 00:48:54 990 @@ -1,6 +1,7 @@ #include #include #include +#include #include "Daodan.h" #include "Daodan_Patch.h" @@ -10,6 +11,8 @@ #include "Daodan_Console.h" #include "Daodan_Config.h" #include "patches/Patches.h" +#include "bink-proxy.h" +#include "_Version.h" #include "Oni.h" @@ -18,16 +21,29 @@ 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); } /*