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 893 by alloc, Fri Jul 26 10:42:31 2013 UTC vs.
Revision 994 by alloc, Mon Apr 7 10:33:27 2014 UTC

# Line 5 | Line 5
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"
17 <
18 < #include "Oni_GL.h"
18 > #include "Oni/Oni.h"
19  
20   HMODULE DDrDLLModule;
21   HMODULE DDrONiModule;
22  
23
23   void __cdecl DDrMain(int argc, char* argv[])
24   {
25          time_t rawtime;
# Line 28 | Line 27 | void __cdecl DDrMain(int argc, char* arg
27          char buffer[80];
28          time(&rawtime);
29          timeinfo = localtime(&rawtime);
30 <        strftime(buffer, 80, "Daodan: %Y-%m-%d %H:%M:%S", timeinfo);
30 >        strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", timeinfo);
31  
32 <        DDrStartupMessage("Daodan: Daodan v."DAODAN_VERSION_STRING" attached!");
33 <        DDrStartupMessage(buffer);
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)