- fix for sam & max and back to the future.

This commit is contained in:
Fledge68 2023-05-07 17:48:49 -05:00
parent 04cdd3de52
commit cde0c4ab53
3 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -44,8 +44,8 @@ void Disc_SetLowMem(void)
*Simulated_Mem = 0x01800000; // Simulated Memory Size *Simulated_Mem = 0x01800000; // Simulated Memory Size
*(vu32 *) 0xCD00643C = 0x00000000; // 32Mhz on Bus *(vu32 *) 0xCD00643C = 0x00000000; // 32Mhz on Bus
if(CurrentIOS.Type != IOS_TYPE_HERMES && CurrentIOS.Revision >= 18) //if(CurrentIOS.Type != IOS_TYPE_HERMES && CurrentIOS.Revision >= 18)
*GameID_Address = 0x80000000; // Fix for Sam & Max (WiiPower) *GameID_Address = 0x80000000; // Fix for Sam & Max (WiiPower) and Back to the Future.
/* Copy Disc ID */ /* Copy Disc ID */
memcpy((void*)Online_Check, (void*)Disc_ID, 4); memcpy((void*)Online_Check, (void*)Disc_ID, 4);

View File

@ -169,29 +169,29 @@ u8 IOS_GetType(u8 slot)
void IOS_GetCurrentIOSInfo() void IOS_GetCurrentIOSInfo()
{ {
memset(&CurrentIOS, 0, sizeof(IOS_Info)); memset(&CurrentIOS, 0, sizeof(IOS_Info));
CurrentIOS.Version = IOS_GetVersion(); CurrentIOS.Version = IOS_GetVersion();// Slot
CurrentIOS.Base = CurrentIOS.Version; CurrentIOS.Base = CurrentIOS.Version;// Slot
CurrentIOS.Revision = IOS_GetRevision(); CurrentIOS.Revision = IOS_GetRevision();// ios version. example ios 58 v6176. cios versions are below.
CurrentIOS.SubRevision = 0; CurrentIOS.SubRevision = 0;
CurrentIOS.Type = IOS_GetType(CurrentIOS.Version); CurrentIOS.Type = IOS_GetType(CurrentIOS.Version);
if(CurrentIOS.Type == IOS_TYPE_D2X) if(CurrentIOS.Type == IOS_TYPE_D2X)
{ {
iosinfo_t *iosInfo = IOS_GetInfo(CurrentIOS.Version); iosinfo_t *iosInfo = IOS_GetInfo(CurrentIOS.Version);// CurrentIOS.Version = slot number
CurrentIOS.Revision = iosInfo->version; CurrentIOS.Revision = iosInfo->version;// v6 thru 11
CurrentIOS.Base = iosInfo->baseios; CurrentIOS.Base = iosInfo->baseios;// base 38, 56, 57,58
gprintf("D2X IOS%i[%i] v%i\n", CurrentIOS.Version, CurrentIOS.Base, CurrentIOS.Revision); gprintf("D2X IOS%i[%i] v%i\n", CurrentIOS.Version, CurrentIOS.Base, CurrentIOS.Revision);
MEM2_free(iosInfo); MEM2_free(iosInfo);
} }
else if(CurrentIOS.Type == IOS_TYPE_WANIN) else if(CurrentIOS.Type == IOS_TYPE_WANIN)
{ {
if(CurrentIOS.Revision >= 18) if(CurrentIOS.Revision >= 18)// v13 thru 21
CurrentIOS.Base = wanin_mload_get_IOS_base(); CurrentIOS.Base = wanin_mload_get_IOS_base();
gprintf("Waninkoko IOS%i[%i] v%i\n", CurrentIOS.Version, CurrentIOS.Base, CurrentIOS.Revision); gprintf("Waninkoko IOS%i[%i] v%i\n", CurrentIOS.Version, CurrentIOS.Base, CurrentIOS.Revision);
} }
else if(CurrentIOS.Type == IOS_TYPE_HERMES) else if(CurrentIOS.Type == IOS_TYPE_HERMES)
{ {
CurrentIOS.Base = mload_get_IOS_base(); CurrentIOS.Base = mload_get_IOS_base();
if(CurrentIOS.Revision > 4) if(CurrentIOS.Revision > 4)// v4 thru 5
{ {
CurrentIOS.Revision = mload_get_version() >> 4; CurrentIOS.Revision = mload_get_version() >> 4;
CurrentIOS.SubRevision = mload_get_version() & 0xF; CurrentIOS.SubRevision = mload_get_version() & 0xF;