Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply slot2 mpu patch in cardSave as well #1769

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions retail/cardengine/arm9/source/cardengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ void inGameMenu(s32* exRegisters) {
void cardSave(u32 src, u32 dst, u32 len, const bool write) {
const u16 exmemcnt = REG_EXMEMCNT;
// Read/Write save
if (__myio_dldi.features & FEATURE_SLOT_GBA) {
slot2MpuFixGbaDldi();
}
setDeviceOwner();

if ((src % ce9->saveSize)+len > ce9->saveSize) {
Expand Down Expand Up @@ -846,6 +849,9 @@ bool cardSave(void) {
bool res = false;

const u16 exmemcnt = REG_EXMEMCNT;
if (__myio_dldi.features & FEATURE_SLOT_GBA) {
slot2MpuFixGbaDldi();
}
setDeviceOwner();

if (cardStruct[7] != 2)
Expand Down
Loading