| 1 |
|
#include <windows.h> |
| 2 |
|
#include <string.h> |
| 3 |
|
#include <stdio.h> |
| 4 |
+ |
#include <time.h> |
| 5 |
|
|
| 6 |
|
#include "Daodan.h" |
| 7 |
|
#include "Daodan_Patch.h" |
| 11 |
|
#include "Daodan_Console.h" |
| 12 |
|
#include "Daodan_Config.h" |
| 13 |
|
#include "patches/Patches.h" |
| 14 |
+ |
#include "_Version.h" |
| 15 |
|
|
| 16 |
|
#include "Oni.h" |
| 17 |
|
|
| 20 |
|
HMODULE DDrDLLModule; |
| 21 |
|
HMODULE DDrONiModule; |
| 22 |
|
|
| 21 |
– |
|
| 23 |
|
void __cdecl DDrMain(int argc, char* argv[]) |
| 24 |
|
{ |
| 25 |
< |
DDrStartupMessage("Daodan: Daodan attached!"); |
| 25 |
> |
time_t rawtime; |
| 26 |
> |
struct tm* timeinfo; |
| 27 |
> |
char buffer[80]; |
| 28 |
> |
time(&rawtime); |
| 29 |
> |
timeinfo = localtime(&rawtime); |
| 30 |
> |
strftime(buffer, 80, "Daodan: %Y-%m-%d %H:%M:%S", timeinfo); |
| 31 |
> |
|
| 32 |
> |
DDrStartupMessage("Daodan: Daodan v."DAODAN_VERSION_STRING" attached!"); |
| 33 |
> |
DDrStartupMessage(buffer); |
| 34 |
|
|
| 35 |
|
DDrConfig(argc, argv); |
| 36 |
|
|
| 37 |
|
DD_Patch_Init(); |
| 38 |
< |
|
| 30 |
< |
|
| 38 |
> |
|
| 39 |
|
ONiMain(argc, argv); |
| 40 |
|
} |
| 41 |
|
/* |