diff --git a/CONFIG/config.cpp b/CONFIG/config.cpp index 772ec932..f575a7af 100644 --- a/CONFIG/config.cpp +++ b/CONFIG/config.cpp @@ -244,7 +244,7 @@ BOOL CConfigApp::ReadRegisterSettings() if (tmp != 0) { is_modified = TRUE; m_device_enumerator->FUN_1009d210(); - tmp = m_device_enumerator->FUN_1009d0d0(); + tmp = m_device_enumerator->GetBestDevice(); m_device_enumerator->GetDevice(tmp, m_driver, m_device); } if (!ReadRegInt("Display Bit Depth", &m_display_bit_depth)) { diff --git a/LEGO1/lego/legoomni/src/video/legovideomanager.cpp b/LEGO1/lego/legoomni/src/video/legovideomanager.cpp index cc96ed5e..2e0f25b0 100644 --- a/LEGO1/lego/legoomni/src/video/legovideomanager.cpp +++ b/LEGO1/lego/legoomni/src/video/legovideomanager.cpp @@ -129,7 +129,7 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM if (deviceNum < 0) { deviceEnumerate.FUN_1009d210(); - deviceNum = deviceEnumerate.FUN_1009d0d0(); + deviceNum = deviceEnumerate.GetBestDevice(); deviceNum = deviceEnumerate.GetDevice(deviceNum, driver, device); } diff --git a/LEGO1/mxdirectx/legodxinfo.cpp b/LEGO1/mxdirectx/legodxinfo.cpp index d2bd7305..b389a080 100644 --- a/LEGO1/mxdirectx/legodxinfo.cpp +++ b/LEGO1/mxdirectx/legodxinfo.cpp @@ -158,7 +158,7 @@ int LegoDeviceEnumerate::BETA_1011cc65(int p_idx, char* p_buffer) // FUNCTION: CONFIG 0x00402860 // FUNCTION: LEGO1 0x1009d0d0 // FUNCTION: BETA10 0x1011cdb4 -int LegoDeviceEnumerate::FUN_1009d0d0() +int LegoDeviceEnumerate::GetBestDevice() { if (!IsInitialized()) { return -1; diff --git a/LEGO1/mxdirectx/legodxinfo.h b/LEGO1/mxdirectx/legodxinfo.h index af15a3e8..0cc81adb 100644 --- a/LEGO1/mxdirectx/legodxinfo.h +++ b/LEGO1/mxdirectx/legodxinfo.h @@ -14,7 +14,7 @@ class LegoDeviceEnumerate : public MxDeviceEnumerate { int GetDevice(int p_deviceNum, MxDriver*& p_driver, Direct3DDeviceInfo*& p_device); int FormatDeviceName(char* p_buffer, const MxDriver* p_ddInfo, const Direct3DDeviceInfo* p_d3dInfo) const; int BETA_1011cc65(int p_idx, char* p_buffer); - int FUN_1009d0d0(); + int GetBestDevice(); static bool SupportsSIMD(); static bool SupportsCPUID(); int FUN_1009d210();