Spamming some notifications on startup to unhang games.

This commit is contained in:
Ben Vanik
2014-10-29 21:09:54 -07:00
parent 1566b4c890
commit 6053f1d35c
5 changed files with 39 additions and 8 deletions

View File

@@ -48,9 +48,16 @@ SHIM_CALL XamUserGetSigninState_shim(PPCContext* ppc_state,
// from initializing the network.
if (user_index == 0 || (user_index & 0xFF) == 0xFF) {
const auto& user_profile = state->user_profile();
SHIM_SET_RETURN_64(user_profile->signin_state());
auto signin_state = user_profile->signin_state();
SHIM_SET_RETURN_64(signin_state);
// Notify we exist, just for fun.
state->BroadcastNotification(0x0000000A, signin_state ? 1 : 0);
} else {
SHIM_SET_RETURN_64(0);
// Notify no users.
state->BroadcastNotification(0x0000000A, 0);
}
}