XMA hardware spoofing when using direct register access.

This works for recent games that don't use the XMA* methods.
Upcoming CLs will add the XMA* method shims forthcoming.
This commit is contained in:
Ben Vanik
2015-02-16 17:18:07 -08:00
parent b0e62d8aeb
commit 50b0746a26
9 changed files with 383 additions and 56 deletions

View File

@@ -96,6 +96,8 @@ typedef uint32_t X_RESULT;
#define X_ERROR_EMPTY X_RESULT_FROM_WIN32(0x000010D2L)
typedef uint32_t X_HRESULT;
#define X_E_SUCCESS static_cast<X_HRESULT>(0)
#define X_E_FALSE static_cast<X_HRESULT>(0x80000000L)
#define X_E_INVALIDARG static_cast<X_HRESULT>(0x80070057L)
// MEM_*, used by NtAllocateVirtualMemory