- Renamed SHIM_SET_RETURN macro to SHIM_SET_RETURN_64.
- Added SHIM_SET_RETURN_32 macro, which sign-extends to 64-bit. - Updated all uses of SHIM_SET_RETURN to the appropriate macro (either SHIM_SET_RETURN_32 or SHIM_SET_RETURN_64).
This commit is contained in:
@@ -32,7 +32,7 @@ SHIM_CALL XamGetSystemVersion_shim(
|
||||
// we pretend to be old we have less to worry with implementing.
|
||||
// 0x200A3200
|
||||
// 0x20096B00
|
||||
SHIM_SET_RETURN(0);
|
||||
SHIM_SET_RETURN_64(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ SHIM_CALL XGetAVPack_shim(
|
||||
// Other likely values are 3/4/8 for HDMI or something.
|
||||
// Games seem to use this as a PAL check - if the result is not 3/4/6/8
|
||||
// they explode with errors if not in PAL mode.
|
||||
SHIM_SET_RETURN(6);
|
||||
SHIM_SET_RETURN_64(6);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ SHIM_CALL XGetGameRegion_shim(
|
||||
PPCContext* ppc_state, KernelState* state) {
|
||||
XELOGD("XGetGameRegion()");
|
||||
|
||||
SHIM_SET_RETURN(XEX_REGION_ALL);
|
||||
SHIM_SET_RETURN_64(XEX_REGION_ALL);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ SHIM_CALL XGetLanguage_shim(
|
||||
}
|
||||
// Add more overrides?
|
||||
|
||||
SHIM_SET_RETURN(desired_language);
|
||||
SHIM_SET_RETURN_64(desired_language);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ SHIM_CALL XamLoaderGetLaunchDataSize_shim(
|
||||
|
||||
SHIM_SET_MEM_32(size_ptr, 0);
|
||||
|
||||
SHIM_SET_RETURN(0);
|
||||
SHIM_SET_RETURN_64(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ SHIM_CALL XamLoaderGetLaunchData_shim(
|
||||
"XamLoaderGetLaunchData(%.8X, %d)",
|
||||
buffer_ptr, buffer_size);
|
||||
|
||||
SHIM_SET_RETURN(0);
|
||||
SHIM_SET_RETURN_64(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user