1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +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
EXPORTS
DirectDrawCreate @1
DirectDrawEnumerateA @2
GameHandlesClose DATA
DirectDrawCreate @1
DirectDrawEnumerateA @2
GameHandlesClose DATA
NvOptimusEnablement DATA
AmdPowerXpressRequestHighPerformance DATA

View File

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