gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Detecting whether the GBA cart is in GBA, DS or emu...

#65618 - MrD - Wed Jan 04, 2006 12:49 pm

I'm looking for a way to find out whether a GBA game is running on a GBA, or a DS under [Play GBA Game] mode.

There's a SWI that can get the BIOS checksum, and that you can test the checksum... but I can't remember how it's done. I searched for it, and found doublec's post on this thread, but I'm not sure if that's what I'm looking for or not.
_________________
Not active on this forum. For Lemmings DS help see its website.

#65619 - kusma - Wed Jan 04, 2006 12:53 pm

nocash and vba both come with a bios-replacement, so the checksum could perhaps detect emulator-users who doesn't use the standard gba-bios. however, the replacement-bioses might just return a bogus (like the one from the original gba-bios?) checksum for all i know...

#65620 - keldon - Wed Jan 04, 2006 12:54 pm

http://www.bottledlight.com/ds/index.php/Main/GBAMode

#65621 - MrD - Wed Jan 04, 2006 12:55 pm

Hmm... I just need some kind of indication if it's a DS really. If you've played Blast Arena... black on black with a black border... makes it hard to play. :D

edit - and we posted simultaneously, eek! Thanks for your help! :)
Woah... 0xBAAE1880? It's fate, I tell ya!
_________________
Not active on this forum. For Lemmings DS help see its website.

#65624 - MrD - Wed Jan 04, 2006 1:20 pm

Does anybody know if these values hold over all GBA compatibles? (GBA, GBA SP, GB Player, GB Micro)
_________________
Not active on this forum. For Lemmings DS help see its website.

#65635 - gauauu - Wed Jan 04, 2006 4:06 pm

<offtopic amount='moderately'>Just wanted to throw in my 2 cents that Blast Arena Advance is one of the best homebrew gba games I've ever played. I love it, the simple gameplay, the audio/visual interaction, the overall feel. Nice work</offtopic>