--- Daodan/src/Daodan.c 2013/04/29 19:08:16 839 +++ Daodan/src/Daodan.c 2014/04/07 10:33:27 994 @@ -1,33 +1,49 @@ #include #include #include +#include #include "Daodan.h" #include "Daodan_Patch.h" -#include "Daodan_Utility.h" -#include "Daodan_Cheater.h" -#include "Daodan_BSL.h" -#include "Daodan_Console.h" +#include "Patches/Utility.h" +#include "Patches/Cheater.h" +#include "Patches/BSL.h" +#include "Patches/Console.h" #include "Daodan_Config.h" -#include "patches/Patches.h" +#include "Patches/Patches.h" +#include "Patches/Localization.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, "%Y-%m-%d %H:%M:%S", timeinfo); + + STARTUPMESSAGE("Daodan v."DAODAN_VERSION_STRING" attached!", 0); + STARTUPMESSAGE("%s", buffer); DDrConfig(argc, argv); + DD_Localization(); + + if(GetKeyState(VK_SHIFT) & 0x8000) { + STARTUPMESSAGE("Shift", 0); + guitest(DDrONiModule); + } DD_Patch_Init(); - - + + BinkProxyInit(); + ONiMain(argc, argv); } /*