forked from jeffreyliu-vrviu/nvidia-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvfbcbody.asm
43 lines (35 loc) · 992 Bytes
/
nvfbcbody.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
IFDEF RAX
ptrsz equ <qword>
ELSE
.486
.model flat, c
ptrsz equ <dword>
ENDIF
.data
extern ORIG_NvFBC_Create : ptrsz, ORIG_NvFBC_Enable : ptrsz,
ORIG_NvFBC_GetSDKVersion : ptrsz, ORIG_NvFBC_GetStatus : ptrsz,
ORIG_NvFBC_GetStatusEx : ptrsz, ORIG_NvFBC_SetGlobalFlags : ptrsz,
ORIG_NvOptimusEnablement : ptrsz
.code
PROXY_NvFBC_Create proc
jmp ptrsz ptr [ORIG_NvFBC_Create]
PROXY_NvFBC_Create endp
PROXY_NvFBC_Enable proc
jmp ptrsz ptr [ORIG_NvFBC_Enable]
PROXY_NvFBC_Enable endp
PROXY_NvFBC_GetSDKVersion proc
jmp ptrsz ptr [ORIG_NvFBC_GetSDKVersion]
PROXY_NvFBC_GetSDKVersion endp
PROXY_NvFBC_GetStatus proc
jmp ptrsz ptr [ORIG_NvFBC_GetStatus]
PROXY_NvFBC_GetStatus endp
PROXY_NvFBC_GetStatusEx proc
jmp ptrsz ptr [ORIG_NvFBC_GetStatusEx]
PROXY_NvFBC_GetStatusEx endp
PROXY_NvFBC_SetGlobalFlags proc
jmp ptrsz ptr [ORIG_NvFBC_SetGlobalFlags]
PROXY_NvFBC_SetGlobalFlags endp
PROXY_NvOptimusEnablement proc
jmp ptrsz ptr [ORIG_NvOptimusEnablement]
PROXY_NvOptimusEnablement endp
end