[XAM] Added stubs for:

- NetDll_XNetCreateKey
 - NetDll_XNetRegisterKey

This will allow certain games to run local multiplayer
For example PDZ Deathmatch mode
This commit is contained in:
Gliniak 2022-06-07 20:46:47 +02:00
parent 916eb1b9bd
commit 0de0f40fb5
1 changed files with 14 additions and 0 deletions

View File

@ -1030,6 +1030,20 @@ dword_result_t NetDll_getsockname_entry(dword_t caller, dword_t socket_handle,
} }
DECLARE_XAM_EXPORT1(NetDll_getsockname, kNetworking, kImplemented); DECLARE_XAM_EXPORT1(NetDll_getsockname, kNetworking, kImplemented);
dword_result_t NetDll_XNetCreateKey_entry(dword_t caller, lpdword_t key_id,
lpdword_t exchange_key) {
kernel_memory()->Fill(key_id.guest_address(), 8, 0xBE);
kernel_memory()->Fill(exchange_key.guest_address(), 16, 0xBE);
return 0;
}
DECLARE_XAM_EXPORT1(NetDll_XNetCreateKey, kNetworking, kStub);
dword_result_t NetDll_XNetRegisterKey_entry(dword_t caller, lpdword_t key_id,
lpdword_t exchange_key) {
return 0;
}
DECLARE_XAM_EXPORT1(NetDll_XNetRegisterKey, kNetworking, kStub);
} // namespace xam } // namespace xam
} // namespace kernel } // namespace kernel
} // namespace xe } // namespace xe