mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 15:04:15 +01:00
Merge pull request #694 from PsyK0p4T/master
Add support for Beggar Prince rev.1
This commit is contained in:
commit
8bdef4f85b
@ -732,6 +732,11 @@ void getCartInfo_MD() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Beggar Prince rev.1 Check
|
||||||
|
if ((cartSize == 0x4ED02021) && (chksum == 0x3E08)) {
|
||||||
|
cartSize = 0x400000;
|
||||||
|
}
|
||||||
|
|
||||||
// Sonic & Knuckles Check
|
// Sonic & Knuckles Check
|
||||||
SnKmode = 0;
|
SnKmode = 0;
|
||||||
if (chksum == 0xDFB3) {
|
if (chksum == 0xDFB3) {
|
||||||
@ -853,8 +858,7 @@ void getCartInfo_MD() {
|
|||||||
// 4 = 128KB (2045 Blocks) Sega CD Backup RAM Cart
|
// 4 = 128KB (2045 Blocks) Sega CD Backup RAM Cart
|
||||||
// 6 = 512KB (8189 Blocks) Ultra CD Backup RAM Cart (Aftermarket)
|
// 6 = 512KB (8189 Blocks) Ultra CD Backup RAM Cart (Aftermarket)
|
||||||
word bramCheck = readWord_MD(0x00);
|
word bramCheck = readWord_MD(0x00);
|
||||||
if ((((bramCheck & 0xFF) == 0x04) && ((chksum & 0xFF) == 0x04))
|
if ((((bramCheck & 0xFF) == 0x04) && ((chksum & 0xFF) == 0x04)) || (((bramCheck & 0xFF) == 0x06) && ((chksum & 0xFF) == 0x06))) {
|
||||||
|| (((bramCheck & 0xFF) == 0x06) && ((chksum & 0xFF) == 0x06))) {
|
|
||||||
unsigned long p = 1 << (bramCheck & 0xFF);
|
unsigned long p = 1 << (bramCheck & 0xFF);
|
||||||
bramSize = p * 0x2000L;
|
bramSize = p * 0x2000L;
|
||||||
}
|
}
|
||||||
@ -2674,4 +2678,4 @@ void readRealtec_MD() {
|
|||||||
|
|
||||||
//******************************************
|
//******************************************
|
||||||
// End of File
|
// End of File
|
||||||
//******************************************
|
//******************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user