Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
b3d13113
Commit
b3d13113
authored
Dec 03, 2019
by
Vladislav Yarmak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win: fbc: 32bit compat code
parent
9a30795f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
15 deletions
+31
-15
win/nvfbcwrp/nvfbcbody.asm
win/nvfbcwrp/nvfbcbody.asm
+18
-12
win/nvfbcwrp/nvfbcwrp.vcxproj
win/nvfbcwrp/nvfbcwrp.vcxproj
+6
-2
win/nvfbcwrp/nvfbcwrp_main.cpp
win/nvfbcwrp/nvfbcwrp_main.cpp
+7
-1
No files found.
win/nvfbcwrp/nvfbcbody.asm
View file @
b3d13113
IFDEF
RAX
ptrsz
equ
<
qword
>
ELSE
.486
.model
flat
,
c
ptrsz
equ
<
dword
>
ENDIF
.data
extern
ORIG_NvFBC_Create
:
qword
,
ORIG_NvFBC_Enable
:
qword
,
ORIG_NvFBC_GetSDKVersion
:
qword
,
ORIG_NvFBC_GetStatus
:
qword
,
ORIG_NvFBC_GetStatusEx
:
qword
,
ORIG_NvFBC_SetGlobalFlags
:
qword
,
ORIG_NvOptimusEnablement
:
qword
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
qword
ptr
[
ORIG_NvFBC_Create
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_Create
]
PROXY_NvFBC_Create
endp
PROXY_NvFBC_Enable
proc
jmp
qword
ptr
[
ORIG_NvFBC_Enable
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_Enable
]
PROXY_NvFBC_Enable
endp
PROXY_NvFBC_GetSDKVersion
proc
jmp
qword
ptr
[
ORIG_NvFBC_GetSDKVersion
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_GetSDKVersion
]
PROXY_NvFBC_GetSDKVersion
endp
PROXY_NvFBC_GetStatus
proc
jmp
qword
ptr
[
ORIG_NvFBC_GetStatus
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_GetStatus
]
PROXY_NvFBC_GetStatus
endp
PROXY_NvFBC_GetStatusEx
proc
jmp
qword
ptr
[
ORIG_NvFBC_GetStatusEx
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_GetStatusEx
]
PROXY_NvFBC_GetStatusEx
endp
PROXY_NvFBC_SetGlobalFlags
proc
jmp
qword
ptr
[
ORIG_NvFBC_SetGlobalFlags
]
jmp
ptrsz
ptr
[
ORIG_NvFBC_SetGlobalFlags
]
PROXY_NvFBC_SetGlobalFlags
endp
PROXY_NvOptimusEnablement
proc
jmp
qword
ptr
[
ORIG_NvOptimusEnablement
]
jmp
ptrsz
ptr
[
ORIG_NvOptimusEnablement
]
PROXY_NvOptimusEnablement
endp
end
\ No newline at end of file
win/nvfbcwrp/nvfbcwrp.vcxproj
View file @
b3d13113
...
...
@@ -30,14 +30,14 @@
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v142
</PlatformToolset>
<CharacterSet>
Unicod
e
</CharacterSet>
<CharacterSet>
MultiByt
e
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v142
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<CharacterSet>
Unicod
e
</CharacterSet>
<CharacterSet>
MultiByt
e
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
...
...
@@ -97,6 +97,8 @@
<SubSystem>
Windows
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<EnableUAC>
false
</EnableUAC>
<ModuleDefinitionFile>
nvfbcwrp.def
</ModuleDefinitionFile>
<ImageHasSafeExceptionHandlers>
false
</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
...
...
@@ -137,6 +139,8 @@
<OptimizeReferences>
true
</OptimizeReferences>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<EnableUAC>
false
</EnableUAC>
<ModuleDefinitionFile>
nvfbcwrp.def
</ModuleDefinitionFile>
<ImageHasSafeExceptionHandlers>
false
</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
...
...
win/nvfbcwrp/nvfbcwrp_main.cpp
View file @
b3d13113
...
...
@@ -2,6 +2,12 @@
#include "nvfbcdefs.h"
#include <windows.h>
#ifdef _WIN64
#define LIBNAME ".\\NvFBC64_.dll"
#else
#define LIBNAME ".\\NvFBC_.dll"
#endif
HINSTANCE
hLThis
=
0
;
extern
"C"
{
FARPROC
ORIG_NvFBC_Create
,
ORIG_NvFBC_Enable
,
ORIG_NvFBC_GetSDKVersion
,
...
...
@@ -16,7 +22,7 @@ BOOL WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID)
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
//hLThis = hInst;
hL
=
LoadLibrary
(
".
\\
NvFBC64_.dll"
);
hL
=
LoadLibrary
(
LIBNAME
);
if
(
!
hL
)
return
false
;
ORIG_NvFBC_Create
=
GetProcAddress
(
hL
,
"NvFBC_Create"
);
if
(
!
ORIG_NvFBC_Create
)
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment