NetDll_XNetQosServiceLookup stub.

This commit is contained in:
Ben Vanik 2015-06-01 22:20:04 -07:00
parent 19cb13692b
commit 493b06a48a
1 changed files with 24 additions and 7 deletions

View File

@ -157,8 +157,10 @@ SHIM_CALL NetDll_WSAGetLastError_shim(PPCContext* ppc_context,
} }
// typedef struct { // typedef struct {
// IN_ADDR ina; // IP address (zero if not static/DHCP) // IN_ADDR ina; // IP address (zero if not
// IN_ADDR inaOnline; // Online IP address (zero if not online) // static/DHCP)
// IN_ADDR inaOnline; // Online IP address (zero
// if not online)
// WORD wPortOnline; // Online port // WORD wPortOnline; // Online port
// BYTE abEnet[6]; // Ethernet MAC address // BYTE abEnet[6]; // Ethernet MAC address
// BYTE abOnline[20]; // Online identification // BYTE abOnline[20]; // Online identification
@ -193,6 +195,20 @@ SHIM_CALL NetDll_XNetGetEthernetLinkStatus_shim(PPCContext* ppc_context,
SHIM_SET_RETURN_32(0); SHIM_SET_RETURN_32(0);
} }
SHIM_CALL NetDll_XNetQosServiceLookup_shim(PPCContext* ppc_context,
KernelState* kernel_state) {
uint32_t one = SHIM_GET_ARG_32(0);
uint32_t zero = SHIM_GET_ARG_32(1);
uint32_t event_handle = SHIM_GET_ARG_32(2);
uint32_t out_ptr = SHIM_GET_ARG_32(3);
XELOGD("NetDll_XNetQosServiceLookup(%d, %d, %.8X, %.8X)", one, zero,
event_handle, out_ptr);
// Non-zero is error.
SHIM_SET_RETURN_32(1);
}
SHIM_CALL NetDll_inet_addr_shim(PPCContext* ppc_context, SHIM_CALL NetDll_inet_addr_shim(PPCContext* ppc_context,
KernelState* kernel_state) { KernelState* kernel_state) {
uint32_t cp_ptr = SHIM_GET_ARG_32(0); uint32_t cp_ptr = SHIM_GET_ARG_32(0);
@ -503,6 +519,7 @@ void xe::kernel::xam::RegisterNetExports(
SHIM_SET_MAPPING("xam.xex", NetDll_WSAGetLastError, state); SHIM_SET_MAPPING("xam.xex", NetDll_WSAGetLastError, state);
SHIM_SET_MAPPING("xam.xex", NetDll_XNetGetTitleXnAddr, state); SHIM_SET_MAPPING("xam.xex", NetDll_XNetGetTitleXnAddr, state);
SHIM_SET_MAPPING("xam.xex", NetDll_XNetGetEthernetLinkStatus, state); SHIM_SET_MAPPING("xam.xex", NetDll_XNetGetEthernetLinkStatus, state);
SHIM_SET_MAPPING("xam.xex", NetDll_XNetQosServiceLookup, state);
SHIM_SET_MAPPING("xam.xex", NetDll_inet_addr, state); SHIM_SET_MAPPING("xam.xex", NetDll_inet_addr, state);
SHIM_SET_MAPPING("xam.xex", NetDll_socket, state); SHIM_SET_MAPPING("xam.xex", NetDll_socket, state);
SHIM_SET_MAPPING("xam.xex", NetDll_closesocket, state); SHIM_SET_MAPPING("xam.xex", NetDll_closesocket, state);