mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
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:
commit
c68be42c55
@ -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.
|
||||
|
22
Data/Sys/GameSettings/GDKJA4.ini
Normal file
22
Data/Sys/GameSettings/GDKJA4.ini
Normal 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.
|
||||
|
22
Data/Sys/GameSettings/GDKPA4.ini
Normal file
22
Data/Sys/GameSettings/GDKPA4.ini
Normal 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.
|
||||
|
21
Data/Sys/GameSettings/GDQE6S.ini
Normal file
21
Data/Sys/GameSettings/GDQE6S.ini
Normal 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.
|
||||
|
@ -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.
|
||||
|
6
Data/Sys/GameSettings/GDXEA4.ini
Normal file
6
Data/Sys/GameSettings/GDXEA4.ini
Normal 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
|
6
Data/Sys/GameSettings/GDXJA4.ini
Normal file
6
Data/Sys/GameSettings/GDXJA4.ini
Normal 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
|
6
Data/Sys/GameSettings/GDXPA4.ini
Normal file
6
Data/Sys/GameSettings/GDXPA4.ini
Normal 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
|
@ -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.
|
||||
|
21
Data/Sys/GameSettings/GWTJA4.ini
Normal file
21
Data/Sys/GameSettings/GWTJA4.ini
Normal 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.
|
||||
|
21
Data/Sys/GameSettings/GWTPA4.ini
Normal file
21
Data/Sys/GameSettings/GWTPA4.ini
Normal 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.
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user