GBC Emulator port - khedgb (works on 5.0)

If you're having trouble with this (or don't want to deal with the problems it has) I recommend following this tutorial to play gb/gbc games in the excelent vba-next port.

Since retroarch isn't working on anything higher then 3.0 right now I ported the gameboy color emulator khedgb to the nintendo switch. (Works on all versions as far as I know)

Right now it doesn't have many features but it's enough to finally enjoy pokemon on the nintendo switch :)

XGjBm3Y.jpg


cBSLImA.jpg

Simply put the rom into sd:/switch/roms/gbc and start the homebrew.

This emulator can't detect when you used the ingame save-feature so you'll have to press the X-button every time after using the in-game save feature. Otherwise the save will get lost after restarting the emulator!

Please don't expect too much from this, I just made this so I could play pokemon and it's not going to get many features.

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)


DOWNLOAD

UPDATE:
Added audio support and proper scaling! (Many thanks @cpasjuste for the scaling-hint!)
UPDATE2:
Fixed a bug where after saving the game for a few times the emulator would crash.
UPDATE3:
Added joycon-analog-stick-support!
UPDATE4:
Removed the debug log.
UPDATE5:
Added a simple file picker! You can now play multiple roms :)
UPDATE6:
Audio is much better now (not perfect yet though). Many thanks to @renhei for the fix-suggestion!
UPDATE7:
Changed rompath from sd:/switch/roms to sd:/switch/roms/gbc in order to avoid confusion with the gba emulator. Also double joycons now work in unattached mode!
 

Attachments

  • khedgb.nro.zip
    641 KB · Views: 2,122
Last edited by jakibaki,

jakibaki

Well-Known Member
OP
Member
Joined
Mar 3, 2017
Messages
296
Trophies
0
Age
26
XP
1,826
Country
Germany
Says super Gameboy Mode wasn't selected, but the game supports it (--sign to activate)

What's that?

And can Colour be enabled again?
The super-gameboy-stuff is just a fancy border around a few games (which also for some reason causes a lot of lag).
Could you please confirm if color is working in the build I attached? (I don't have my switch handy right now)
If it works I'll update the main post :)
 

Attachments

  • khedgb.nro.zip
    638.9 KB · Views: 220
Last edited by jakibaki,
  • Like
Reactions: Leonidas87

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
The super-gameboy-stuff is just a fancy border around a few games (which also for some reason causes a lot of lag).
Could you please confirm if color is working in the build I attached? (I don't have my switch handy right now)
If it works I'll update the main post :)
Will try right now again thanks

--------------------- MERGED ---------------------------

The super-gameboy-stuff is just a fancy border around a few games (which also for some reason causes a lot of lag).
Could you please confirm if color is working in the build I attached? (I don't have my switch handy right now)
If it works I'll update the main post :)
Colour is working GREAT JOB.

This helps a lot for the time being.

Any way you could increase the screen size of the game? Just wondering if it's possible.

I know audio is not running as of yet as you have stated before.

Pokemon Gold is GOLD AGAIN lol

--------------------- MERGED ---------------------------

Lastly and I'm sure an important question. If we run one game say Pokemon Gold save with X and then run another game say Pokemon Yellow and save with X does it overwrite the previous games save file?
 

Attachments

  • 20180515_101440.jpg
    20180515_101440.jpg
    1.6 MB · Views: 476
  • Like
Reactions: JJTapia19

jakibaki

Well-Known Member
OP
Member
Joined
Mar 3, 2017
Messages
296
Trophies
0
Age
26
XP
1,826
Country
Germany
Will try right now again thanks

--------------------- MERGED ---------------------------


Colour is working GREAT JOB.

This helps a lot for the time being.

Any way you could increase the screen size of the game? Just wondering if it's possible.

I know audio is not running as of yet as you have stated before.

Pokemon Gold is GOLD AGAIN lol

I attached a build with 2x scale.
I'm not sure if it's my or the emulators fault but with a higher resolution the games run really slow :/

--------------------- MERGED ---------------------------

Lastly and I'm sure an important question. If we run one game say Pokemon Gold save with X and then run another game say Pokemon Yellow and save with X does it overwrite the previous games save file?
Yeah. If you're swapping out the rom you should also backup the .sav file that will be created in the same directory.
 

Attachments

  • khedgb.nro.zip
    638.9 KB · Views: 201

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
I attached a build with 2x scale.
I'm not sure if it's my or the emulators fault but with a higher resolution the games run really slow :/

--------------------- MERGED ---------------------------


Yeah. If you're swapping out the rom you should also backup the .sav file that will be created in the same directory.
Giving it a try will see how it runs.

Any plans on getting audio working? I'm sure that's more work no rush of course.

Bit of lag with 2x size but that ok for now all in due time.

Should update your original post with the updated file and the 2x size version as an alternative
 

Attachments

  • 15263953904937644766633913012838.jpg
    15263953904937644766633913012838.jpg
    1.8 MB · Views: 355

jakibaki

Well-Known Member
OP
Member
Joined
Mar 3, 2017
Messages
296
Trophies
0
Age
26
XP
1,826
Country
Germany
Giving it a try will see how it runs.

Any plans on getting audio working? I'm sure that's more work no rush of course.

Bit of lag with 2x size but that ok for now all in due time.

Should update your original post with the updated file and the 2x size version as an alternative

I attached the 2x-version to the main-post, thanks for the suggestion :)

I'm not sure if I'll ever get audio to run but I'll definitely look into it.
 
  • Like
Reactions: Leonidas87

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
I attached the 2x-version to the main-post, thanks for the suggestion :)

I'm not sure if I'll ever get audio to run but I'll definitely look into it.

Perfect, should help others in regards to finding the correct files, always easier if they are updated on the original post.

Keep up the good work, even if this is a temporary solution it's better then NOTHING.

Have a great day, all the best
 

x65943

i can be your sega dreamcast or sega nightmarecast
Supervisor
GBAtemp Patron
Joined
Jun 23, 2014
Messages
6,243
Trophies
3
Location
ΗΠΑ
XP
26,748
Country
United States
Great work man! And congrats on getting front page.

I will have to try this with Keitai Denju Telefang this weekend.
 

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
I attached the 2x-version to the main-post, thanks for the suggestion :)

I'm not sure if I'll ever get audio to run but I'll definitely look into it.
Probably a stupid question lol and I'm sure the answer is NO.

Will this play Game Boy Advance games? Probably not lol but worth a shot.

If not if anyone has been able to get a Game Boy Advance Emulator or SNES emulator running on 4.x.x or 5.x.x please do share any info with me in a private message if possible.
 

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
I attached the 2x-version to the main-post, thanks for the suggestion :)

I'm not sure if I'll ever get audio to run but I'll definitely look into it.

2X version is definitely slower.

Maybe a 1.5X Version would be the sweet spot for screen size and frame rate currently.

If possible I'll give 1.5X a test run if you have a chance to upload a version.

No rush of course, when you have time.
 

cpasjuste

Well-Known Member
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,481
Country
France
Last edited by cpasjuste,

radaq

Active Member
Newcomer
Joined
May 15, 2018
Messages
27
Trophies
0
Age
24
XP
184
Country
United States
It's attached to the main-post :)
im about to test it out, I dont know how to program but Im a professional aritst and so if you want to change that black background into something fancier like a purple background with gba on it ask me.
 

Hondyn

Well-Known Member
Member
Joined
Jan 2, 2018
Messages
258
Trophies
0
Age
35
XP
617
Country
United Kingdom
Since retroarch isn't working on anything higher then 3.0 right now I ported the gameboy color emulator khedgb to the nintendo switch.

Right now it doesn't have many features (no rom-selection screen, no analog-stick-support) but it's enough to finally enjoy pokemon on the nintendo switch :)

ca7f4e7.jpg


Simply put the rom to sd:/switch/roms/rom.gbc (exactly this name for the rom!) and start the homebrew.

After saving ingame you'll have to press the x-button to store the savegame on sdcard (otherwise the save will be lost after restarting the emulator).

Please don't expect too much from this, I just made this so I could play pokemon and it's not going to get many features.

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)

UPDATE:
Added audio support and proper scaling! (Many thanks @cpasjuste for the scaling-hint!)
Thanks bro! Working smooth on 4.1.0
 

souler92

Well-Known Member
Member
Joined
Jan 5, 2017
Messages
394
Trophies
0
Age
32
XP
661
Country
Netherlands
great gonna try it out,

is it possible you make a speed button? (like faster emulation speed when pressed x100 or so?) because i realllly need that with pokemon THX!!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Meth addicts on a treadmill connected to a generator "Unlimited POWER!!!'
  • Veho @ Veho:
    Before or after a hit?
  • Veho @ Veho:
    Do you dangle a baggie in front of them, like a carrot?
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
  • Veho @ Veho:
    What's the same thing?
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
  • Veho @ Veho:
    It's a tradeoff.
    Veho @ Veho: It's a tradeoff.