aboutsummaryrefslogtreecommitdiff
path: root/client/src/hwid
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-08-06 15:33:18 +0100
committerauth12 <[email protected]>2020-08-06 15:33:18 +0100
commitd120e7b489adc42a4489c63305413dfe52ed8bbf (patch)
tree6c114e3b0e8f22aa4c0210e2006a88ec63182b95 /client/src/hwid
parentMore ui improvements. (diff)
downloadloader-d120e7b489adc42a4489c63305413dfe52ed8bbf.tar.xz
loader-d120e7b489adc42a4489c63305413dfe52ed8bbf.zip
Improved CPU usage drastically.
Switched to directx9. Reduced RAM usage by only remapping modules from a blacklist.
Diffstat (limited to 'client/src/hwid')
-rw-r--r--client/src/hwid/hwid.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/client/src/hwid/hwid.h b/client/src/hwid/hwid.h
index 445635d..d4b1159 100644
--- a/client/src/hwid/hwid.h
+++ b/client/src/hwid/hwid.h
@@ -9,29 +9,7 @@ namespace hwid {
};
__forceinline bool fetch(hwid_data_t& out) {
- IDXGIDevice* dxgi_device;
- if (ui::device->QueryInterface(&dxgi_device) != S_OK) {
- return false;
- }
-
- IDXGIAdapter* adapter;
- if (dxgi_device->GetParent(__uuidof(IDXGIAdapter), reinterpret_cast<void**>(&adapter)) != S_OK) {
- return false;
- }
-
- DXGI_ADAPTER_DESC desc;
- if (adapter->GetDesc(&desc) != S_OK) {
- return false;
- }
-
- out.uid += desc.VendorId >> 1;
- out.uid += desc.DeviceId >> 1;
- out.uid += desc.DedicatedVideoMemory << 5;
-
- out.gpu = util::wide_to_multibyte(desc.Description);
-
- adapter->Release();
- dxgi_device->Release();
+
return true;
}