Skip to content

Commit

Permalink
Cleanup the Linux ARAM implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
aldelaro5 committed May 1, 2022
1 parent 46e1f40 commit 7275a4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/DolphinProcess/Linux/LinuxDolphinProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ bool LinuxDolphinProcess::readFromRAM(const u32 offset, char* buffer, const size
else
RAMAddress = m_emuARAMAdressStart + offset;
}
else if (offset >= (Common::MEM2_START - Common::MEM1_START))
{
RAMAddress = m_MEM2AddressStart + offset - (Common::MEM2_START - Common::MEM1_START);
}
else
{
RAMAddress = m_emuRAMAddressStart + offset;
Expand Down Expand Up @@ -204,6 +208,10 @@ bool LinuxDolphinProcess::writeToRAM(const u32 offset, const char* buffer, const
else
RAMAddress = m_emuARAMAdressStart + offset;
}
else if (offset >= (Common::MEM2_START - Common::MEM1_START))
{
RAMAddress = m_MEM2AddressStart + offset - (Common::MEM2_START - Common::MEM1_START);
}
else
{
RAMAddress = m_emuRAMAddressStart + offset;
Expand Down

0 comments on commit 7275a4d

Please sign in to comment.