From 6016c3b29c50531983d4f58d41cd5f702b54aad2 Mon Sep 17 00:00:00 2001 From: User <97423514+png183@users.noreply.github.com> Date: Tue, 16 Jan 2024 22:15:01 -0800 Subject: [PATCH] Initial commit --- mia/medium/game-boy-advance.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mia/medium/game-boy-advance.cpp b/mia/medium/game-boy-advance.cpp index b63efe70b0..61a6850733 100644 --- a/mia/medium/game-boy-advance.cpp +++ b/mia/medium/game-boy-advance.cpp @@ -71,16 +71,7 @@ auto GameBoyAdvance::analyze(vector& rom) -> string { for(auto& identifier : identifiers) { for(s32 n : range(rom.size() - 16)) { if(!memory::compare(&rom[n], identifier.data(), identifier.size())) { - auto p = (const char*)&rom[n + identifier.size()]; - if(p[0] >= '0' && p[0] <= '9' - && p[1] >= '0' && p[1] <= '9' - && p[2] >= '0' && p[2] <= '9' - ) { - char text[16]; - memory::copy(text, &rom[n], identifier.size() + 3); - text[identifier.size() + 3] = 0; - if(!list.find(text)) list.append(text); - } + if(!list.find(identifier.data())) list.append(identifier.data()); } } }