[Kernel] Replaced Yield in XAudioGetVoiceCategoryVolumeChangeMask with NanoSleep
- Removed Yield in XamUserGetSigninState
This commit is contained in:
committed by
Radosław Gliński
parent
56cff3a09a
commit
8f5da619f9
@@ -88,8 +88,6 @@ dword_result_t XamUserGetIndexFromXUID_entry(qword_t xuid, dword_t flags,
|
||||
DECLARE_XAM_EXPORT1(XamUserGetIndexFromXUID, kUserProfiles, kImplemented);
|
||||
|
||||
dword_result_t XamUserGetSigninState_entry(dword_t user_index) {
|
||||
// Yield, as some games spam this.
|
||||
xe::threading::MaybeYield();
|
||||
uint32_t signin_state = 0;
|
||||
if (user_index >= XUserMaxUserCount) {
|
||||
return signin_state;
|
||||
|
||||
@@ -30,7 +30,7 @@ dword_result_t XAudioGetVoiceCategoryVolumeChangeMask_entry(
|
||||
lpunknown_t driver_ptr, lpdword_t out_ptr) {
|
||||
assert_true((driver_ptr.guest_address() & 0xFFFF0000) == 0x41550000);
|
||||
|
||||
xe::threading::MaybeYield();
|
||||
xe::threading::NanoSleep(1000);
|
||||
|
||||
// Checking these bits to see if any voice volume changed.
|
||||
// I think.
|
||||
|
||||
Reference in New Issue
Block a user