ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan.c
(Generate patch)

Comparing Daodan/src/Daodan.c (file contents):
Revision 839 by alloc, Mon Apr 29 19:08:16 2013 UTC vs.
Revision 993 by alloc, Sun Apr 6 17:06:02 2014 UTC

# Line 1 | Line 1
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"
# Line 10 | Line 11
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   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)