Skip to content
Permalink
Browse files

Allow UPS patch for GBA games.

From my very superficial understanding, the `rom[]` resize happens
only when `rom_size` is greater than 0x2000000.

We should probably study this better for an actual explanation.

- Fix #487.
  • Loading branch information
denisfa authored and rkitover committed Aug 20, 2019
1 parent 1949cdb commit 06a9d786c26a4305820ddaf709477cf5dff18f6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wx/panel.cpp
@@ -216,7 +216,7 @@ void GameArea::LoadGame(const wxString& name)
if (loadpatch) {
// don't use real rom size or it might try to resize rom[]
// instead, use known size of rom[]
int size = 0x2000000;
int size = 0x2000000 < rom_size ? 0x2000000 : rom_size;
applyPatch(pfn.GetFullPath().mb_str(), &rom, &size);
// that means we no longer really know rom_size either <sigh>
}

0 comments on commit 06a9d78

Please sign in to comment.
You can’t perform that action at this time.