Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
22 lines
643 B
C++
22 lines
643 B
C++
#include "Render/DX7/DirectDrawEnumeration.h"
|
|
#include "Render/RenderAdapter.h"
|
|
|
|
// OFFSET: 0x0056B8C0
|
|
// FUNCTION: fn_02326
|
|
std::vector<RenderAdapter> EnumerateAdaptersDX7(DirectDrawEnumeration& enumeration) {
|
|
std::vector<RenderAdapter> result;
|
|
|
|
if (enumeration.devicesSeen == 0 && FAILED(enumeration.Enumerate(nullptr))) {
|
|
return result;
|
|
}
|
|
|
|
for (unsigned index = 0; index < enumeration.deviceCount; ++index) {
|
|
const auto& device = enumeration.devices[index];
|
|
|
|
if (device.hardware) {
|
|
result.push_back({1, index, device.description, device.drawIdentity, device.renderIdentity, {}, {}});
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|