XUsbcamCreate stub.

This commit is contained in:
Ben Vanik 2014-08-05 13:06:33 -07:00
parent b58b7c1783
commit f149a23367
5 changed files with 77 additions and 0 deletions

View File

@ -71,6 +71,8 @@
'xboxkrnl_table.inc',
'xboxkrnl_threading.cc',
'xboxkrnl_threading.h',
'xboxkrnl_usbcam.cc',
'xboxkrnl_usbcam.h',
'xboxkrnl_video.cc',
'xboxkrnl_video.h',
'xobject.cc',

View File

@ -51,6 +51,7 @@ XboxkrnlModule::XboxkrnlModule(Emulator* emulator, KernelState* kernel_state) :
RegisterRtlExports(export_resolver_, kernel_state_);
RegisterStringExports(export_resolver_, kernel_state_);
RegisterThreadingExports(export_resolver_, kernel_state);
RegisterUsbcamExports(export_resolver_, kernel_state);
RegisterVideoExports(export_resolver_, kernel_state);
uint8_t* mem = memory_->membase();

View File

@ -36,6 +36,7 @@ void RegisterRtlExports(ExportResolver* export_resolver, KernelState* state);
void RegisterStringExports(ExportResolver* export_resolver, KernelState* state);
void RegisterThreadingExports(ExportResolver* export_resolver,
KernelState* state);
void RegisterUsbcamExports(ExportResolver* export_resolver, KernelState* state);
void RegisterVideoExports(ExportResolver* export_resolver, KernelState* state);
} // namespace xboxkrnl

View File

@ -0,0 +1,45 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include <xenia/kernel/xboxkrnl_usbcam.h>
#include <xenia/kernel/kernel_state.h>
#include <xenia/kernel/xboxkrnl_private.h>
#include <xenia/kernel/util/shim_utils.h>
using namespace xe;
using namespace xe::kernel;
using namespace xe::kernel::xboxkrnl;
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);
XELOGD(
"XUsbcamCreate(%.8X, %.8X)",
unk1, unk2);
SHIM_SET_RETURN_32(-1);
}
} // namespace kernel
} // namespace xe
void xe::kernel::xboxkrnl::RegisterUsbcamExports(
ExportResolver* export_resolver, KernelState* state) {
SHIM_SET_MAPPING("xboxkrnl.exe", XUsbcamCreate, state);
}

View File

@ -0,0 +1,28 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef XENIA_KERNEL_XBOXKRNL_USBCAM_H_
#define XENIA_KERNEL_XBOXKRNL_USBCAM_H_
#include <xenia/common.h>
#include <xenia/core.h>
#include <xenia/xbox.h>
namespace xe {
namespace kernel {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_XBOXKRNL_USBCAM_H_