Skip to content

Commit

Permalink
GBA: Added save type exception to prevent crash in Iridion II
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Mar 30, 2024
1 parent 6468f37 commit e4b3d9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/GBA/GbaConsole.cpp
Expand Up @@ -155,6 +155,9 @@ void GbaConsole::InitSaveRam(string& gameCode, vector<uint8_t>& romData)
} else if(gameCode == "AYGE") {
//Force 512-byte eeprom for Gauntlet (auto-detect logic doesn't work)
_saveType = GbaSaveType::Eeprom512;
} else if(gameCode == "AI2E") {
//Iridion II crashes if it has SRAM, force it to none
_saveType = GbaSaveType::None;
} else {
auto checkMarker = [&](string marker, GbaSaveType type) {
if(_saveType == GbaSaveType::AutoDetect && std::search(romData.begin(), romData.end(), marker.begin(), marker.end()) != romData.end()) {
Expand Down

0 comments on commit e4b3d9d

Please sign in to comment.