Skip to content

Commit 2cf5924

Browse files
authored
Merge pull request #20 from 0xvpr/dev
style improved
2 parents d095d34 + 8cac558 commit 2cf5924

File tree

8 files changed

+1679
-1640
lines changed

8 files changed

+1679
-1640
lines changed

src/d3d9hook.asm

Lines changed: 158 additions & 153 deletions
Large diffs are not rendered by default.

src/dll_main.asm

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,41 @@
1-
extern _DisableThreadLibraryCalls@4
2-
extern _MainThread@4
3-
extern _CreateThread@24
1+
; --------------------------------------------------------------------------- ;
2+
; Exported Functions ;
3+
; --------------------------------------------------------------------------- ;
44

5-
section .text
6-
global _DllMain@12
5+
global _DllMain@12
76

8-
%define DLL_PROCESS_ATTACH 1
7+
; --------------------------------------------------------------------------- ;
8+
; Imported Functions ;
9+
; --------------------------------------------------------------------------- ;
910

11+
extern _DisableThreadLibraryCalls@4
12+
extern _CreateThread@24
13+
extern _MainThread@4
14+
15+
; --------------------------------------------------------------------------- ;
16+
; Definitions ;
17+
; --------------------------------------------------------------------------- ;
18+
19+
TRUE EQU 1
20+
DLL_PROCESS_ATTACH EQU 1
21+
22+
; --------------------------------------------------------------------------- ;
23+
; Executable Code ;
24+
; --------------------------------------------------------------------------- ;
25+
26+
section .text
1027
_DllMain@12:
11-
cmp byte [ esp + 0x8 ], DLL_PROCESS_ATTACH
12-
jne exit
13-
push dword [ esp + 0x4 ]
14-
call _DisableThreadLibraryCalls@4
15-
push 0
16-
push 0
17-
push dword [ esp + 0x4 ]
18-
push _MainThread@4
19-
push 0
20-
push 0
21-
call _CreateThread@24
28+
cmp dword [esp + 0x8], DLL_PROCESS_ATTACH
29+
jne exit
30+
push dword [esp + 0x4]
31+
call _DisableThreadLibraryCalls@4
32+
push 0
33+
push 0
34+
push dword [esp + 0x4]
35+
push _MainThread@4
36+
push 0
37+
push 0
38+
call _CreateThread@24
2239
exit:
23-
mov eax, 1
24-
ret 12
40+
mov eax, TRUE
41+
ret 12

src/drawing.asm

Lines changed: 156 additions & 149 deletions
Large diffs are not rendered by default.

src/events.asm

Lines changed: 236 additions & 236 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)