Skip to content

Commit

Permalink
Fix libdragon expansion RAM detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydr8gon committed Sep 5, 2023
1 parent 30a8cd3 commit 1dc3fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "cpu.h"
#include "log.h"
#include "memory.h"
#include "settings.h"

namespace PIF
{
Expand Down Expand Up @@ -171,7 +172,7 @@ void PIF::reset()

// Set the memory size to 4MB
// TODO: I think IPL3 is supposed to set this, but stubbing RI_SELECT_REG to 1 skips it
Memory::write<uint32_t>(0xA0000318, 0x00400000);
Memory::write<uint32_t>(0xA0000318, Settings::expansionPak ? 0x800000 : 0x400000);
}

void PIF::runCommand()
Expand Down

0 comments on commit 1dc3fad

Please sign in to comment.