From 439da668ae72eefa2c8cf17b863f21a67cfa2030 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 18 Dec 2021 17:50:07 -0600 Subject: [PATCH] [nostaliga/core/gba] Cleanup --- src/nostalgia/core/gba/media.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/gba/media.cpp b/src/nostalgia/core/gba/media.cpp index 4851ac4d..d022237e 100644 --- a/src/nostalgia/core/gba/media.cpp +++ b/src/nostalgia/core/gba/media.cpp @@ -4,10 +4,11 @@ #include #include -#include "addresses.hpp" #include "../media.hpp" +#include "addresses.hpp" + namespace nostalgia::core { ox::Result loadRom(const char*) noexcept { @@ -18,7 +19,6 @@ ox::Result loadRom(const char*) noexcept { constexpr auto headerP1Len = 15; constexpr auto headerP2Len = 16; constexpr auto headerLen = headerP1Len + headerP2Len + 1; - for (auto current = MEM_ROM; current < reinterpret_cast(0x0a000000); current += headerLen) { if (ox_memcmp(current, headerP1, headerP1Len) == 0 && ox_memcmp(current + headerP1Len, headerP2, headerP2Len) == 0) {