From 6fef7bb9d4b82400ba30e5c140e26ae173c01c9d Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:46:33 +0000 Subject: [PATCH] imports: always report user signed in This fixes other plugged in controllers calling XamShowSignInUI and waiting for a response from an unimplemented function. --- UnleashedRecomp/kernel/imports.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/kernel/imports.cpp b/UnleashedRecomp/kernel/imports.cpp index 9f83e41..9049b47 100644 --- a/UnleashedRecomp/kernel/imports.cpp +++ b/UnleashedRecomp/kernel/imports.cpp @@ -93,7 +93,7 @@ uint32_t XMsgStartIORequest(DWORD App, DWORD Message, XXOVERLAPPED* lpOverlapped uint32_t XamUserGetSigninState(uint32_t userIndex) { // printf("!!! STUB !!! XamUserGetSigninState\n"); - return userIndex == 0; + return true; } uint32_t XamGetSystemVersion() @@ -135,7 +135,7 @@ uint32_t XamContentGetDeviceState() uint32_t XamUserGetSigninInfo(uint32_t userIndex, uint32_t flags, XUSER_SIGNIN_INFO* info) { - //printf("!!! STUB !!! XamUserGetSigninInfo\n"); + // printf("!!! STUB !!! XamUserGetSigninInfo\n"); if (userIndex == 0) { memset(info, 0, sizeof(*info)); @@ -145,12 +145,12 @@ uint32_t XamUserGetSigninInfo(uint32_t userIndex, uint32_t flags, XUSER_SIGNIN_I return 0; } - return 0x00000525; + return 0x00000525; // ERROR_NO_SUCH_USER } -void XamShowSigninUI() +void XamShowSigninUI(uint32_t userIndex, uint32_t usersNeeded, uint32_t flags) { - printf("!!! STUB !!! XamShowSigninUI\n"); + printf("!!! STUB !!! XamShowSigninUI %d %d 0x%X\n", userIndex, usersNeeded, flags); } uint32_t XamShowDeviceSelectorUI(