[nostalgia/core/gba] Fix memory range
This commit is contained in:
@@ -23,7 +23,7 @@ char *loadRom(const char*) {
|
||||
constexpr auto headerP2Len = 16;
|
||||
constexpr auto headerLen = headerP1Len + headerP2Len + 1;
|
||||
|
||||
for (auto current = &MEM_ROM; current < reinterpret_cast<char*>(0x0a000000); current += headerLen) {
|
||||
for (auto current = MEM_ROM; current < reinterpret_cast<char*>(0x0a000000); current += headerLen) {
|
||||
if (ox_memcmp(current, headerP1, headerP1Len) == 0 &&
|
||||
ox_memcmp(current + headerP1Len, headerP2, headerP2Len) == 0) {
|
||||
return current + headerLen;
|
||||
|
||||
Reference in New Issue
Block a user