Fix compilation by moving Graphics exports to a new file

This commit is contained in:
Luke Usher 2018-03-15 08:20:13 +00:00
parent 36b423bf1c
commit 0eec1618fe
2 changed files with 4 additions and 3 deletions

View File

@ -36,9 +36,6 @@
#define _XBOXKRNL_DEFEXTRN_
// Default to High Performance Mode on machines with dual graphics
extern "C" { __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; // AMD __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; // NVIDIA }
/* prevent name collisions */
namespace xboxkrnl
{

View File

@ -0,0 +1,4 @@
#include <Windows.h>
// Default to High Performance Mode on machines with dual graphics
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; // AMD __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; // NVIDIA