mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[APU+HID] Optimizations
This commit is contained in:
parent
b23566b823
commit
4ba14bc35e
|
|
@ -71,13 +71,8 @@ bool XAudio2AudioDriver::Initialize() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!xaudio2_module_) {
|
if (!xaudio2_module_) {
|
||||||
xaudio2_module_ = static_cast<void*>(LoadLibraryW(L"XAudio2_7.dll"));
|
XELOGE("Failed to load XAudio 2.8 library DLL");
|
||||||
if (xaudio2_module_) {
|
return false;
|
||||||
api_minor_version_ = 7;
|
|
||||||
} else {
|
|
||||||
XELOGE("Failed to load XAudio 2.8 or 2.7 library DLL");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need to be able to accept frames from any non-STA thread - primarily
|
// We need to be able to accept frames from any non-STA thread - primarily
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ XInputInputDriver::~XInputInputDriver() {
|
||||||
|
|
||||||
X_STATUS XInputInputDriver::Setup() {
|
X_STATUS XInputInputDriver::Setup() {
|
||||||
HMODULE module = LoadLibraryW(L"xinput1_4.dll");
|
HMODULE module = LoadLibraryW(L"xinput1_4.dll");
|
||||||
if (!module) {
|
|
||||||
module = LoadLibraryW(L"xinput1_3.dll");
|
|
||||||
}
|
|
||||||
if (!module) {
|
if (!module) {
|
||||||
return X_STATUS_DLL_NOT_FOUND;
|
return X_STATUS_DLL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue