[APU+HID] Optimizations

This commit is contained in:
Margen67 2022-11-03 03:56:13 -07:00
parent b23566b823
commit 4ba14bc35e
2 changed files with 2 additions and 10 deletions

View File

@ -71,13 +71,8 @@ bool XAudio2AudioDriver::Initialize() {
}
}
if (!xaudio2_module_) {
xaudio2_module_ = static_cast<void*>(LoadLibraryW(L"XAudio2_7.dll"));
if (xaudio2_module_) {
api_minor_version_ = 7;
} else {
XELOGE("Failed to load XAudio 2.8 or 2.7 library DLL");
return false;
}
XELOGE("Failed to load XAudio 2.8 library DLL");
return false;
}
// We need to be able to accept frames from any non-STA thread - primarily

View File

@ -45,9 +45,6 @@ XInputInputDriver::~XInputInputDriver() {
X_STATUS XInputInputDriver::Setup() {
HMODULE module = LoadLibraryW(L"xinput1_4.dll");
if (!module) {
module = LoadLibraryW(L"xinput1_3.dll");
}
if (!module) {
return X_STATUS_DLL_NOT_FOUND;
}