| 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 "bink-proxy.h" |
| 15 |
+ |
#include "_Version.h" |
| 16 |
|
|
| 17 |
< |
#include "Oni.h" |
| 15 |
< |
|
| 16 |
< |
#include "Oni_GL.h" |
| 17 |
> |
#include "Oni/Oni.h" |
| 18 |
|
|
| 19 |
|
HMODULE DDrDLLModule; |
| 20 |
|
HMODULE DDrONiModule; |
| 21 |
|
|
| 21 |
– |
|
| 22 |
|
void __cdecl DDrMain(int argc, char* argv[]) |
| 23 |
|
{ |
| 24 |
< |
DDrStartupMessage("Daodan: Daodan attached!"); |
| 24 |
> |
time_t rawtime; |
| 25 |
> |
struct tm* timeinfo; |
| 26 |
> |
char buffer[80]; |
| 27 |
> |
time(&rawtime); |
| 28 |
> |
timeinfo = localtime(&rawtime); |
| 29 |
> |
strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", timeinfo); |
| 30 |
> |
|
| 31 |
> |
STARTUPMESSAGE("Daodan v."DAODAN_VERSION_STRING" attached!", 0); |
| 32 |
> |
STARTUPMESSAGE("%s", buffer); |
| 33 |
|
|
| 34 |
|
DDrConfig(argc, argv); |
| 35 |
|
|
| 36 |
+ |
if(GetKeyState(VK_SHIFT) & 0x8000) { |
| 37 |
+ |
STARTUPMESSAGE("Shift", 0); |
| 38 |
+ |
guitest(DDrONiModule); |
| 39 |
+ |
} |
| 40 |
+ |
|
| 41 |
|
DD_Patch_Init(); |
| 42 |
< |
|
| 43 |
< |
|
| 42 |
> |
|
| 43 |
> |
BinkProxyInit(); |
| 44 |
> |
|
| 45 |
|
ONiMain(argc, argv); |
| 46 |
|
} |
| 47 |
|
/* |