XUsbcamGetState stub.

This commit is contained in:
Ben Vanik 2015-02-11 13:40:45 -08:00
parent d19519e63c
commit 31b09f5aac
1 changed files with 13 additions and 4 deletions

View File

@ -17,12 +17,20 @@ namespace xe {
namespace kernel {
SHIM_CALL XUsbcamCreate_shim(PPCContext* ppc_state, KernelState* state) {
uint32_t unk1 = SHIM_GET_ARG_32(0);
uint32_t unk2 = SHIM_GET_ARG_32(1);
uint32_t unk1 = SHIM_GET_ARG_32(0); // E
uint32_t unk2 = SHIM_GET_ARG_32(1); // 0x4B000
uint32_t unk3_ptr = SHIM_GET_ARG_32(3);
XELOGD("XUsbcamCreate(%.8X, %.8X)", unk1, unk2);
XELOGD("XUsbcamCreate(%.8X, %.8X, %.8X)", unk1, unk2, unk3_ptr);
SHIM_SET_RETURN_32(-1);
// 0 = success.
SHIM_SET_RETURN_32(X_ERROR_DEVICE_NOT_CONNECTED);
}
SHIM_CALL XUsbcamGetState_shim(PPCContext* ppc_state, KernelState* state) {
XELOGD("XUsbcamGetState()");
// 0 = not connected.
SHIM_SET_RETURN_32(0);
}
} // namespace kernel
@ -31,4 +39,5 @@ SHIM_CALL XUsbcamCreate_shim(PPCContext* ppc_state, KernelState* state) {
void xe::kernel::xboxkrnl::RegisterUsbcamExports(
ExportResolver* export_resolver, KernelState* state) {
SHIM_SET_MAPPING("xboxkrnl.exe", XUsbcamCreate, state);
SHIM_SET_MAPPING("xboxkrnl.exe", XUsbcamGetState, state);
}