--- Daodan/src/Daodan.c 2013/04/29 19:08:16 839 +++ Daodan/src/Daodan.c 2014/03/16 20:06:52 983 @@ -1,6 +1,7 @@ #include #include #include +#include #include "Daodan.h" #include "Daodan_Patch.h" @@ -10,6 +11,7 @@ #include "Daodan_Console.h" #include "Daodan_Config.h" #include "patches/Patches.h" +#include "_Version.h" #include "Oni.h" @@ -18,16 +20,22 @@ 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); DD_Patch_Init(); - - + ONiMain(argc, argv); } /*