GameBoy Advance Emulator port - gdkGBA (works on 5.0)

With the release of vba this emulator is now officially discontinued!

Many many thanks to everyone that helped! :)



I ported the gameboy advance emulator gdkGBA (originally made by gdkchan) to the nintendo switch! (Works on all versions as far as I know)

A0pc3wc.jpg


uMoaxJb.jpg


To set up I strongly recommend putting the original gba_bios.bin in sd:/switch/gba_bios.bin!
After that put the roms into sd:/switch/roms/ and start the homebrew.

As soon as retroarch gets updated for 5.0 this will instantly become obsolete!

source (you need the sdl2-libraries from the devkit-pro pacman to build this)

Known issues:
Sound is a bit weird (it seems like sometimes the wrong instruments play)
Some games seem to crash the switch after a while. (mostly fixed in v8)
Sometimes the switch likes to crash even in games that normally run pretty stable :/ (fixed in v8 I think)
Some games have graphical glitches/don't work at all
Saving doesn't work on some games. If that happens please don't hesitate to tell me and for now you can set (buggy) savestates using plus+r and load them using plus+l.

Please update to the latest version before reporting Problems!

Game compatibility list

UPDATE:
Sound now much better now! Many thanks to @renhei for the fix!
UPDATE2:
Changed rompath from sd:/switch/roms to sd:/switch/roms/gba in order to avoid confusion with the gbc emulator. Also double joycons now work in unattached mode!
UPDATE3:
Merged gdkchans changes to the ppu. Some games that had problems with artifacts on screen (I tried harvest moon) now look much better! However this is apparently causing trouble in some games so I also attached v2.
UPDATE4:
Added proper in-gaming-saving support! The old buggy savestate-feature is now read-only (so that you can move your progress to the new save-files). I recommend removing the old .savegame-file after making sure the new, better in-game-saving works correctly in order to make sure that you don't accidentally load it :)
Many thanks to @gdkchan for fixing some underlying issues with the in-game-saves of this emulator!
Also I added support for the original gba_bios.bin:
If you want to use it (which I strongly recommend since the open-source-one that's bundled is causing trouble with some games) put it into sd:/switch/gba_bios.bin
UPDATE5:
In game saving should now actually work in most games! Many thanks to @gdkchan for explaining to me how the gba handles saves!
UPDATE6:
Recompiled everything with latest libnx. Hopefully fewer crashes now.
UPDATE7:
Savestate feature is back. Please only use if the savegames fail as it is known to sometimes cause issues!
UPDATE8:
Updated libnx (again) and made a few small fixes. If you're experiencing fewer/more crashes please don't hesitate to tell me :)
UPDATE8.5 (Experimental only):
Pushed the new graphics-fixes from @gdkchan. Please only use them if you're experiencing graphical glitches since they introduce a large slowdown in some games.
UPDATE8.6 (Experimental only):
Pushed @gdkchans new fixes+optimisations. The experimental version should now run a bit faster!
UPDATE9:
Saving should now be more reliable again (makes the save-feature work as it did in v7 again).
 

Attachments

  • gdkGBA (v2).zip
    338.9 KB · Views: 498
  • gdkGBA v3 (experimental).zip
    340.2 KB · Views: 249
  • gdkGBA (v4).zip
    337.9 KB · Views: 327
  • gdkGBA (v5).zip
    337.9 KB · Views: 341
  • gdkGBA (v5 with experimental graphics-patches).zip
    339.1 KB · Views: 249
  • gdkGBA (v6 with experimental graphics-patches).zip
    338.9 KB · Views: 237
  • gdkGBA (v6).zip
    337.9 KB · Views: 393
  • gdkGBA (v7 with experimental graphics-patches).zip
    339.3 KB · Views: 413
  • gdkGBA (v7).zip
    338.1 KB · Views: 1,409
  • gdkGBA (v8 with experimental graphics-patches).zip
    342.1 KB · Views: 439
  • gdkGBA (v8).zip
    340.9 KB · Views: 1,045
  • gdkGBA (v8.5 with experimental graphics-patches).zip
    347.4 KB · Views: 606
  • gdkGBA (v8.6 with experimental graphics patches).zip
    347.3 KB · Views: 398
  • gdkGBA (v9).zip
    340.9 KB · Views: 2,085
  • gdkGBA (v9 with experimental graphics-patches).zip
    347.3 KB · Views: 1,182
Last edited by jakibaki,

Eddy22m

New Member
Newbie
Joined
May 16, 2018
Messages
4
Trophies
0
Age
34
XP
79
Country
Germany
Super Mario Advance 4 not loading "Reading..."

The list of not working / working games should be standing on page 1 !!
 
Last edited by Eddy22m,

wiimer

Member
Newcomer
Joined
Jul 24, 2010
Messages
20
Trophies
0
Age
24
XP
210
Country
Australia
Alright, so uhh i tested Mother 3, Super Mario Advanced 4 - Super Mario Bros 3 and Donkey Kong Country

Mother 3 runs fine besides audio issues but has saving issues (game reports "unable to save")
Super Mario Bros 3 has audio issues but has no problems with saving
Donkey Kong Country also has audio issues but haven't checked the saving feature right now.

Also, if you come across the "Reading..." issue, just wait, it will report that the files are corrupted and then the game boots up normally

What i have noticed with the gba games that transitions can get glitchy/nonexistent as in with Super Mario Bros 3, you can see how the level is being loaded with the mario sprite being placed on screen before the level starts.
 

Messiah4000

Member
Newcomer
Joined
May 19, 2018
Messages
9
Trophies
0
Age
27
XP
220
Country
France
Using v7 experimental:
The Legend of Zelda A Link to the Past ----- Lots of framerate drops slowing the game from time to time, saves work, frequent crashes while playing, no visual glitch.
Pokemon Emerald ---- 15 mins before crashing, saves work, no highlighting when choosing to start a new game, to continue or the options, some framerate drops noticeable after loading back the game, no visual glitch.
Mother 3 ---- some visual freeze can happen, "Unable to save", no visual glitch, runs fine with some audio issues (mostly good) like wiimer reported.

EDIT: A Link to the Past crash are random.
 
Last edited by Messiah4000,

Madman55

Well-Known Member
Newcomer
Joined
May 19, 2018
Messages
45
Trophies
0
Age
34
XP
112
Country
Antarctica
Using v7 experimental:
The Legend of Zelda A Link to the Past ----- Lots of framerate drops slowing the game from time to time, saves work, frequent crashes while playing, no visual glitch.
Pokemon Emerald ---- 15 mins before crashing, saves work, no highlighting when choosing to start a new game, to continue or the options, some framerate drops noticeable after loading back the game, no visual glitch.
Mother 3 ---- some visual freeze can happen, "Unable to save", no visual glitch, runs fine with some audio issues (mostly good) like wiimer reported.

Thanks for the info! Come join the dedicated thread for the evergrowing list! https://gbatemp.net/threads/a-list-of-gba-games-that-run-on-switch.504664/#post-7988793
 

Real.96

Well-Known Member
Member
Joined
Sep 14, 2015
Messages
1,055
Trophies
0
Age
27
XP
955
Country
Italy
Spent some time whipping this up. Anyone that wants to add details for games is welcome too :) I'm still working my way through this list so any help is welcomed :))

If you could list any of these issues in a reply I will update the list so OP knows what issues are more serious across the emulator.

Odd Glitches/ Visual Bugs
Framerate drops
High number of crashes
Hanging screens (Game freezes on certain screens of game)
If in-game save works or if only savestate works

--------------------GAME LIST------------------------

Pokemon Ruby‎------Working, Minimum crashes, Saves
Pokemon Sapphire------Working, Minimum crashes, Saves
Pokemon Emerald------Working, Minimum crashes, Saves
Pokemon Fire Red------Working, Minimum crashes, Saves
Pokemon Leaf Green------Working, Minimum crashes, Saves
Pokemon Mystery Dungeon - Red Rescue Team
Super Mario Advance
Super Mario Advance 2 - Super Mario World------NOT WORKING, Game hangs on first loading screen
Super Mario Advance 3 - Yoshi's Island
Super Mario Advance 4 - Super Mario Bros 3------NOT WORKING, Game hangs on first loading screen
Classic Nes - Super Mario Bros.
Mario And Luigi Superstar Saga
Mario Kart - Super Circuit
Castlevania - Aria of Sorrow
Castlevania - Circle of the Moon
Castlevania - Harmony of Dissonance
Kirby - Nightmare in Dreamland------Working, Minimum crashes, Saves
Kirby And The Amazing Mirror------Working, Minimum crashes, Some framerate drops, Saves
Metroid - Fusion------Working,crashes sometimes, Some texture glitches, Saves
Metroid - Zero Mission
The Legend of Zelda - The Minish Cap
The Legend Of Zelda - A Link To The Past
Final Fantasy I & II - Dawn of Souls
Final Fantasy Tactics Advance
Final Fantasy IV Advance
Final Fantasy V Advance
Final Fantasy VI Advance
Fire Emblem
Fire Emblem - The Sacred Stones
Golden Sun
Golden Sun 2 - The Lost Age
Harvest Moon - Friends of Mineral Town
Harvest Moon - More Friends of Mineral Town
Advance Wars
Advance Wars 2 - Black Hole Rising
Dragon Ball - Advanced Adventure
Dragon Ball Z - The Legacy Of Goku
Dragon Ball Z - The Legacy of Goku II
Dragon Ball Z - Buu's Fury
DragonBall Z - Supersonic Warriors------Working, Minimum crashes, Very few framerate drops, Saves
Dragon Ball GT - Transformation
MegaMan Zero
MegaMan Zero 4
MegaMan Battle Network
MegaMan Battle Network 6 - Cybeast Gregar
Yu-Gi-Oh! Ultimate Masters 2006
Yu-Gi-Oh! - The Eternal Duelist Soul
Yu-Gi-Oh! - The Sacred Cards
Yu-Gi-Oh! GX - Duel Academy
Sonic Advance
Sonic Advance 2
Sonic Advance 3
Kingdom Hearts - Chain of Memories
Sword of Mana
Metal Slug Advance
Mother 3 (J)
Street Fighter Alpha 3
Wario Land 4 (E)------Working, Minimum crashes, Some framerate drops, Saves
Grand Theft Auto Advance
Naruto Ninja Council 2
Crash Bandicoot - The Huge Adventure
Super mario bros 3 works for me. If you wait a bit it starts saying save file is corrupted. Spam some buttons if it doesn't start
 

jsan

Member
Newcomer
Joined
Sep 7, 2017
Messages
19
Trophies
0
Age
45
XP
172
Country
Spain
What do you mean it's an emulator based issue, sound cannot improve for this particular emu in the future? I haven't tried any other games than minish cap but the sound makes the game difficult to play (except turning the volume all the way down). It would be a shame :(

Sound seems to be a emulator based issue from what I understand. Framerate drops is good to know though, I'll edit the list! Does the game save naturally or is it reliant on the save states? Does it crash more often then other games?
 
D

Deletedmember448668

Guest
What do you mean it's an emulator based issue, sound cannot improve for this particular emu in the future? I haven't tried any other games than minish cap but the sound makes the game difficult to play (except turning the volume all the way down). It would be a shame :(
If there is a will there is a way, he's saying that its for this specific port, but the emu sound has already improved a lot since the first release that was only a few days ago. be patient
 
  • Like
Reactions: jsan

TAUSENN

Well-Known Member
Newcomer
Joined
Jun 28, 2016
Messages
80
Trophies
0
Age
34
XP
232
Country
Mexico
"As soon as retroarch gets updated for 5.0 this will instantly become obsolete!"

Yeah, I wouldn't hold my breath
 

Bkool999

Well-Known Member
Member
Joined
Oct 3, 2014
Messages
288
Trophies
0
Age
27
XP
387
Country
United States
Sonic Advance 2 works fine, some sound issues here and there, but for whatever reason the game is 100% complete from the start, lol. First time I'm using the game on this sd card, so it's not a case of a pre-existing save file on there.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Look at you holding tiny things