Merge pull request #226 from LPFaint99/Issue6753

Use a 251 block Memory card for games that do not work with larger cards. Fixes Issue 6753
This commit is contained in:
Pierre Bourdon 2014-04-03 10:15:43 +02:00
commit c68be42c55
12 changed files with 150 additions and 2 deletions

View File

@ -2,6 +2,9 @@
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.

View File

@ -0,0 +1,22 @@
# GDKJA4 - Disney Sports: Soccer
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
EmulationStateId = 4
EmulationIssues = Need Projection Before R945
[OnLoad]
# Add memory patches to be loaded once on boot here.
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.

View File

@ -0,0 +1,22 @@
# GDKEA4 - Disney Sports: Football (Soccer)
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
EmulationStateId = 4
EmulationIssues = Need Projection Before R945
[OnLoad]
# Add memory patches to be loaded once on boot here.
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.

View File

@ -0,0 +1,21 @@
# GDQE6S - Darkened Skye
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
EmulationStateId = 1
[OnLoad]
# Add memory patches to be loaded once on boot here.
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.

View File

@ -2,6 +2,9 @@
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.

View File

@ -0,0 +1,6 @@
# GDXEA4 - Disney Sports Skateboarding
[Core]
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True

View File

@ -0,0 +1,6 @@
# GDXJA4 - Disney Sports Skateboarding
[Core]
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True

View File

@ -0,0 +1,6 @@
# GDXPA4 - Disney Sports Skateboarding
[Core]
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True

View File

@ -2,6 +2,9 @@
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.

View File

@ -0,0 +1,21 @@
# GWTJA4 - WTA Tour Tennis
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
EmulationStateId = 4
[OnLoad]
# Add memory patches to be loaded once on boot here.
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.

View File

@ -0,0 +1,21 @@
# GWTPA4 - WTA Tour Tennis
[Core]
# Values set here will override the main dolphin settings.
# This game does not work properly with large memorycards, use a 251 block card
# see http://www.nintendo.com/consumer/memorycard1019.jsp
MemoryCard251 = True
[EmuState]
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
EmulationStateId = 4
[OnLoad]
# Add memory patches to be loaded once on boot here.
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.

View File

@ -73,6 +73,21 @@ CEXIMemoryCard::CEXIMemoryCard(const int index)
//0x00000510 16Mb "bigben" card
//card_id = 0xc243;
// The following games have issues with memory cards bigger than 16Mb
// Darkened Skye GDQE6S GDQP6S
// WTA Tour Tennis GWTEA4 GWTJA4 GWTPA4
// Disney Sports : Skate Boarding GDXEA4 GDXPA4 GDXJA4
// Disney Sports : Soccer GDKEA4
// Use a 16Mb (251 block) memory card for these games
bool useMC251;
IniFile gameIni = Core::g_CoreStartupParameter.LoadGameIni();
gameIni.Get("Core", "MemoryCard251", &useMC251, false);
nintendo_card_id = MemCard2043Mb;
if (useMC251)
{
nintendo_card_id = MemCard251Mb;
m_strFilename.insert(m_strFilename.find_last_of("."), ".251");
}
card_id = 0xc221; // It's a Nintendo brand memcard
File::IOFile pFile(m_strFilename, "rb");
@ -90,8 +105,7 @@ CEXIMemoryCard::CEXIMemoryCard(const int index)
}
else
{
// Create a new 128Mb memcard
nintendo_card_id = 0x00000080;
// Create a new memcard
memory_card_size = nintendo_card_id * SIZE_TO_Mb;
memory_card_content = new u8[memory_card_size];