XNetGetEthernetLinkStatus = 0 to stop games from trying to use the net.

This commit is contained in:
Ben Vanik 2014-01-04 14:12:01 -08:00
parent 90ff8e590f
commit fc074fefe9
1 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,16 @@ SHIM_CALL NetDll_WSAStartup_shim(
}
SHIM_CALL NetDll_XNetGetEthernetLinkStatus_shim(
PPCContext* ppc_state, XamState* state) {
// Games seem to call this before *Startup. If we return 0, they don't even
// try.
XELOGD(
"NetDll_XNetGetEthernetLinkStatus()");
SHIM_SET_RETURN(0);
}
} // namespace xam
} // namespace kernel
} // namespace xe
@ -73,4 +83,5 @@ void xe::kernel::xam::RegisterNetExports(
ExportResolver* export_resolver, XamState* state) {
SHIM_SET_MAPPING("xam.xex", NetDll_XNetStartup, state);
SHIM_SET_MAPPING("xam.xex", NetDll_WSAStartup, state);
SHIM_SET_MAPPING("xam.xex", NetDll_XNetGetEthernetLinkStatus, state);
}