1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

Forces Nvidia and AMD high performance graphics.

This commit is contained in:
FunkyFr3sh 2019-03-17 01:18:37 +01:00
parent ee14204ced
commit b49cd06876
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,8 @@
LIBRARY ddraw.dll LIBRARY ddraw.dll
EXPORTS EXPORTS
DirectDrawCreate @1 DirectDrawCreate @1
DirectDrawEnumerateA @2 DirectDrawEnumerateA @2
GameHandlesClose DATA GameHandlesClose DATA
NvOptimusEnablement DATA
AmdPowerXpressRequestHighPerformance DATA

View File

@ -48,6 +48,8 @@ int WindowState = -1;
BOOL Direct3D9Active; BOOL Direct3D9Active;
BOOL GameHandlesClose; BOOL GameHandlesClose;
BOOL ChildWindowExists; BOOL ChildWindowExists;
DWORD NvOptimusEnablement = 1;
DWORD AmdPowerXpressRequestHighPerformance = 1;
//BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved) //BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved) BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)