[XAM/Avatar] Added stub for: XamAvatarLoadAnimation

This enable running AvatarEditor

Disclaimer: Games that uses Avatars might crash
This commit is contained in:
Gliniak 2019-12-11 22:11:17 +01:00 committed by illusion98
parent eaba53a1b8
commit e47674668c
1 changed files with 9 additions and 1 deletions

View File

@ -26,15 +26,23 @@ dword_result_t XamAvatarInitialize(
dword_t unk6 // flags - 0x00300000, 0x30, etc
) {
// Negative to fail. Game should immediately call XamAvatarShutdown.
return ~0u;
return X_STATUS_SUCCESS; //~0u;
}
DECLARE_XAM_EXPORT1(XamAvatarInitialize, kAvatars, kStub);
dword_result_t XamAvatarLoadAnimation(dword_t asset_id_ptr, dword_t flags,
dword_t output) {
return X_STATUS_SUCCESS;
}
DECLARE_XAM_EXPORT1(XamAvatarLoadAnimation, kAvatars, kStub);
void XamAvatarShutdown() {
// No-op.
}
DECLARE_XAM_EXPORT1(XamAvatarShutdown, kAvatars, kStub);
void RegisterAvatarExports(xe::cpu::ExportResolver* export_resolver,
KernelState* kernel_state) {}