Skip to content

Commit 71967ca

Browse files
committed
MultiMBC1: Fix bank1 index ignoring multicart mode
1 parent 150e366 commit 71967ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/MultiMBC1MemoryRule.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ u8* MultiMBC1MemoryRule::GetCurrentRomBank1()
178178

179179
int MultiMBC1MemoryRule::GetCurrentRomBank1Index()
180180
{
181-
return m_iMBC1Bank_1;
181+
if (m_iMulticartMode == 0)
182+
return m_iMBC1Bank_1;
183+
else
184+
return m_iMBC1MBank_1;
182185
}
183186

184187
void MultiMBC1MemoryRule::SaveState(std::ostream& stream)

0 commit comments

Comments
 (0)