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:17:02 +01:00
parent 909c78e84d
commit 4506b00863
2 changed files with 4 additions and 0 deletions

View File

@ -4,3 +4,5 @@ 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)