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 994 by alloc, Mon Apr 7 10:33:27 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"
8 < #include "Daodan_Utility.h"
9 < #include "Daodan_Cheater.h"
10 < #include "Daodan_BSL.h"
11 < #include "Daodan_Console.h"
8 > #include "Patches/Utility.h"
9 > #include "Patches/Cheater.h"
10 > #include "Patches/BSL.h"
11 > #include "Patches/Console.h"
12   #include "Daodan_Config.h"
13 < #include "patches/Patches.h"
13 > #include "Patches/Patches.h"
14 > #include "Patches/Localization.h"
15 > #include "bink-proxy.h"
16 > #include "_Version.h"
17  
18 < #include "Oni.h"
15 <
16 < #include "Oni_GL.h"
18 > #include "Oni/Oni.h"
19  
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, "%Y-%m-%d %H:%M:%S", timeinfo);
31 >
32 >        STARTUPMESSAGE("Daodan v."DAODAN_VERSION_STRING" attached!", 0);
33 >        STARTUPMESSAGE("%s", buffer);
34          
35          DDrConfig(argc, argv);
36 +        DD_Localization();
37 +
38 +        if(GetKeyState(VK_SHIFT) & 0x8000) {
39 +                STARTUPMESSAGE("Shift", 0);
40 +                guitest(DDrONiModule);
41 +        }
42  
43          DD_Patch_Init();
44 <        
45 <        
44 >
45 >        BinkProxyInit();
46 >
47          ONiMain(argc, argv);
48   }
49   /*

Diff Legend

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