XamGetSystemVersion = 0 to stop dynamic kernel function loading (for now).

This commit is contained in:
Ben Vanik 2014-01-04 14:12:23 -08:00
parent fc074fefe9
commit 2a1d1d55d7
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,18 @@ namespace kernel {
namespace xam { namespace xam {
SHIM_CALL XamGetSystemVersion_shim(
PPCContext* ppc_state, XamState* state) {
XELOGD("XamGetSystemVersion()");
// eh, just picking one. If we go too low we may break new games, but
// this value seems to be used for conditionally loading symbols and if
// we pretend to be old we have less to worry with implementing.
// 0x200A3200
// 0x20096B00
SHIM_SET_RETURN(0);
}
SHIM_CALL XGetAVPack_shim( SHIM_CALL XGetAVPack_shim(
PPCContext* ppc_state, XamState* state) { PPCContext* ppc_state, XamState* state) {
// DWORD // DWORD
@ -71,6 +83,7 @@ SHIM_CALL XGetLanguage_shim(
void xe::kernel::xam::RegisterInfoExports( void xe::kernel::xam::RegisterInfoExports(
ExportResolver* export_resolver, XamState* state) { ExportResolver* export_resolver, XamState* state) {
SHIM_SET_MAPPING("xam.xex", XamGetSystemVersion, state);
SHIM_SET_MAPPING("xam.xex", XGetAVPack, state); SHIM_SET_MAPPING("xam.xex", XGetAVPack, state);
SHIM_SET_MAPPING("xam.xex", XGetGameRegion, state); SHIM_SET_MAPPING("xam.xex", XGetGameRegion, state);
SHIM_SET_MAPPING("xam.xex", XGetLanguage, state); SHIM_SET_MAPPING("xam.xex", XGetLanguage, state);