Batch #18338 by ragnarok-clanker: no function's compiled code changes; checked with 433 compiled unit(s), including every includer of Source/Client/Application/ApplicationWindow.h, Source/Client/Mode/CGameMode.h, Source/Client/Session/Session.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Map/MapSkyMgr.h, Source/Contents/Messenger/ClientMessenger.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Sound/SoundConfiguration.h, Source/Render/DX7/RenderSystemDX7.h, Source/Render/Device/DisplayMode.h, Source/Resource/Json/JsonCppLoader.h, Source/Security/NProtectGameGuardMgr.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Text/TextWrapping.h, Source/Contents/Actors/Resources/BodyResources.h, Source/Resource/Json/JsonCppLoaderExternal.h, Source/Resource/Json/JsonCppLoaderParsing.h, Source/Security/NProtectGameMon.h.
33 lines
1,017 B
C++
33 lines
1,017 B
C++
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "Render/DX7/DirectDrawEnumeration.h"
|
|
#include "Render/Device/RenderAdapter.h"
|
|
#include "Render/DX7/RenderSystemDX7.h"
|
|
|
|
// OFFSET: 0x0056B8C0
|
|
// FUNCTION: fn_02326
|
|
std::vector<RenderAdapter> EnumerateAdaptersDX7() {
|
|
if (DirectDrawEnumeration::DevicesSeen() == 0 && FAILED(DirectDrawEnumeration::Enumerate(AcceptAnyDirectDrawDevice))) {
|
|
return {};
|
|
}
|
|
|
|
std::vector<RenderAdapter> result;
|
|
|
|
const DirectDrawDeviceRecord* devices = DirectDrawEnumeration::Devices();
|
|
const unsigned count = DirectDrawEnumeration::DeviceCount();
|
|
|
|
for (unsigned index = 0; index < count; ++index) {
|
|
const auto& device = devices[index];
|
|
|
|
if (device.hardware) {
|
|
result.push_back({1, index, device.description, device.drawIdentity, device.renderIdentity, g_defaultDrawGuidDX7, ""});
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00DD9420
|
|
// FUNCTION: fn_23334
|
|
HRESULT __cdecl AcceptAnyDirectDrawDevice(const DDCAPS*, const D3DDEVICEDESC7*) {
|
|
return S_OK;
|
|
}
|