diff options
author | Jan Klass <kissaki@posteo.de> | 2017-07-12 14:51:18 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2017-07-13 14:12:45 +0300 |
commit | 7689647a5028bfb4ce96c26caee6e1e955fa02a0 (patch) | |
tree | 49682415a0fe1c26ca6a5e2a7c56c928c09eeacb /overlay/d3d10.cpp | |
parent | 9a2fa24497f3d87ad5ff469788c38741d52770d5 (diff) |
Remove type variable prefix
Diffstat (limited to 'overlay/d3d10.cpp')
-rw-r--r-- | overlay/d3d10.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/overlay/d3d10.cpp b/overlay/d3d10.cpp index 0f23fcd02..31b3041f5 100644 --- a/overlay/d3d10.cpp +++ b/overlay/d3d10.cpp @@ -600,7 +600,7 @@ void checkDXGI10Hook(bool preonly) { return; } - if (d3d10->iOffsetAddRef == 0 || d3d10->iOffsetRelease == 0) { + if (d3d10->offsetAddRef == 0 || d3d10->offsetRelease == 0) { return; } @@ -639,7 +639,7 @@ void hookD3D10(HMODULE hD3D10, bool preonly) { if (_wcsicmp(d3d10->wcFileName, modulename) == 0) { unsigned char *raw = (unsigned char *) hD3D10; - HookAddRelease((voidFunc)(raw + d3d10->iOffsetAddRef), (voidFunc)(raw + d3d10->iOffsetRelease)); + HookAddRelease((voidFunc)(raw + d3d10->offsetAddRef), (voidFunc)(raw + d3d10->offsetRelease)); } else if (! preonly) { ods("D3D10: Interface changed, can't rawpatch. Current: %ls ; Previously: %ls", modulename, d3d10->wcFileName); } else { @@ -660,8 +660,8 @@ void PrepareDXGI10(IDXGIAdapter1 *pAdapter, bool initializeDXGIData) { ods("D3D10: Preparing static data for DXGI and D3D10 Injection"); d3d10->wcFileName[0] = 0; - d3d10->iOffsetAddRef = 0; - d3d10->iOffsetRelease = 0; + d3d10->offsetAddRef = 0; + d3d10->offsetRelease = 0; HMODULE hD3D10 = LoadLibrary("D3D10.DLL"); @@ -719,13 +719,13 @@ void PrepareDXGI10(IDXGIAdapter1 *pAdapter, bool initializeDXGIData) { int offset = GetFnOffsetInModule(reinterpret_cast<voidFunc>(pPresent), dxgi->wcFileName, ARRAY_NUM_ELEMENTS(dxgi->wcFileName), "D3D10", "Present"); if (offset >= 0) { if (initializeDXGIData) { - dxgi->iOffsetPresent = offset; - ods("D3D10: Successfully found Present offset: %ls: %d", dxgi->wcFileName, dxgi->iOffsetPresent); + dxgi->offsetPresent = offset; + ods("D3D10: Successfully found Present offset: %ls: %d", dxgi->wcFileName, dxgi->offsetPresent); } else { - if (dxgi->iOffsetPresent == offset) { - ods("D3D10: Successfully verified Present offset: %ls: %d", dxgi->wcFileName, dxgi->iOffsetPresent); + if (dxgi->offsetPresent == offset) { + ods("D3D10: Successfully verified Present offset: %ls: %d", dxgi->wcFileName, dxgi->offsetPresent); } else { - ods("D3D10: Failed to verify Present offset for %ls. Found %d, but previously found %d.", dxgi->wcFileName, offset, dxgi->iOffsetPresent); + ods("D3D10: Failed to verify Present offset for %ls. Found %d, but previously found %d.", dxgi->wcFileName, offset, dxgi->offsetPresent); } } } @@ -734,13 +734,13 @@ void PrepareDXGI10(IDXGIAdapter1 *pAdapter, bool initializeDXGIData) { offset = GetFnOffsetInModule(reinterpret_cast<voidFunc>(pResize), dxgi->wcFileName, ARRAY_NUM_ELEMENTS(dxgi->wcFileName), "D3D10", "ResizeBuffers"); if (offset >= 0) { if (initializeDXGIData) { - dxgi->iOffsetResize = offset; - ods("D3D10: Successfully found ResizeBuffers offset: %ls: %d", dxgi->wcFileName, dxgi->iOffsetResize); + dxgi->offsetResize = offset; + ods("D3D10: Successfully found ResizeBuffers offset: %ls: %d", dxgi->wcFileName, dxgi->offsetResize); } else { - if (dxgi->iOffsetResize == offset) { - ods("D3D10: Successfully verified ResizeBuffers offset: %ls: %d", dxgi->wcFileName, dxgi->iOffsetResize); + if (dxgi->offsetResize == offset) { + ods("D3D10: Successfully verified ResizeBuffers offset: %ls: %d", dxgi->wcFileName, dxgi->offsetResize); } else { - ods("D3D10: Failed to verify ResizeBuffers offset for %ls. Found %d, but previously found %d.", dxgi->wcFileName, offset, dxgi->iOffsetResize); + ods("D3D10: Failed to verify ResizeBuffers offset for %ls. Found %d, but previously found %d.", dxgi->wcFileName, offset, dxgi->offsetResize); } } } @@ -750,15 +750,15 @@ void PrepareDXGI10(IDXGIAdapter1 *pAdapter, bool initializeDXGIData) { void *pAddRef = (*vtbl)[1]; offset = GetFnOffsetInModule(reinterpret_cast<voidFunc>(pAddRef), d3d10->wcFileName, ARRAY_NUM_ELEMENTS(d3d10->wcFileName), "D3D10", "AddRef"); if (offset >= 0) { - d3d10->iOffsetAddRef = offset; - ods("D3D10: Successfully found AddRef offset: %ls: %d", d3d10->wcFileName, d3d10->iOffsetAddRef); + d3d10->offsetAddRef = offset; + ods("D3D10: Successfully found AddRef offset: %ls: %d", d3d10->wcFileName, d3d10->offsetAddRef); } void *pRelease = (*vtbl)[2]; offset = GetFnOffsetInModule(reinterpret_cast<voidFunc>(pRelease), d3d10->wcFileName, ARRAY_NUM_ELEMENTS(d3d10->wcFileName), "D3D10", "Release"); if (offset >= 0) { - d3d10->iOffsetRelease = offset; - ods("D3D10: Successfully found Release offset: %ls: %d", d3d10->wcFileName, d3d10->iOffsetRelease); + d3d10->offsetRelease = offset; + ods("D3D10: Successfully found Release offset: %ls: %d", d3d10->wcFileName, d3d10->offsetRelease); } } |