Fail out of XamContentCreateEnumerator.

This commit is contained in:
Ben Vanik 2014-06-22 21:19:48 -07:00
parent 9905380bd0
commit 4009eb1cd8
1 changed files with 7 additions and 3 deletions

View File

@ -44,6 +44,7 @@ SHIM_CALL XamContentGetLicenseMask_shim(
}
// http://gameservice.googlecode.com/svn-history/r14/trunk/ContentManager.cpp
SHIM_CALL XamContentCreateEnumerator_shim(
PPCContext* ppc_state, KernelState* state) {
uint32_t arg0 = SHIM_GET_ARG_32(0);
@ -52,12 +53,15 @@ SHIM_CALL XamContentCreateEnumerator_shim(
uint32_t arg3 = SHIM_GET_ARG_32(3);
uint32_t arg4 = SHIM_GET_ARG_32(4);
uint32_t arg5 = SHIM_GET_ARG_32(5);
uint32_t arg6 = SHIM_GET_ARG_32(6);
uint32_t handle_ptr = SHIM_GET_ARG_32(6);
XELOGD(
"XamContentCreateEnumerator(%.8X, %.8X, %.8X, %.8X, %.8X, %.8X, %.8X)",
arg0, arg1, arg2, arg3, arg4, arg5, arg6);
SHIM_SET_RETURN_32(X_ERROR_DEVICE_NOT_CONNECTED);
arg0, arg1, arg2, arg3, arg4, arg5, handle_ptr);
SHIM_SET_MEM_32(handle_ptr, X_INVALID_HANDLE_VALUE);
SHIM_SET_RETURN_32(X_ERROR_NO_MORE_FILES);
}