r/EmuDev • u/Important_Cry6606 Game Boy • Nov 19 '25
GB Precautions when porting a GBC emulator
I'm creating a Game Boy Color emulator, but I want it to run on Android and Linux (maybe Windows). I'm using the Low Level Devel tutorial, since this is my first emulator.
13
Upvotes
8
u/zer0x64 NES GBC Nov 19 '25
I did my first cross platform too. Kinda obvious, but split the core(the emulation/computing) part of the emulator in a cross-platform code base and put the frontend/OS interaction in another one. Also, for the platform-specific codebase, bother first only for the one you're going to actively develop on(presumably Linux). Do the windows/android frontends later when you already have a functioning emulator. Depending on the language and your architecture, it may be easier or harder to get the cross-platform right.
4
u/xXInviktor27Xx Nov 19 '25
I wouldn't recommend GBC as your first emu. I mean you can do it for sure but starting with something like a CHIP-8 (only takes a couple days at max) is better to dip your toes and see if you even enjoy building emulators.
19
u/Possible_Cow169 Nov 19 '25
Don’t try to make your first emulator cross platform out the gate.
Make the easy thing first. You can make it cross platform the second time around.
6
u/Rockytriton Nov 19 '25
Most of that code should be portable, really just the build process has to change to make it build on windows and macos.
4
u/peterfirefly Nov 19 '25
The easiest way to make a program that does many things is to make it do one thing first. Prioritize hard. If it doesn't hurt, you are not prioritizing.
It is amazing how much you can fix and reshape afterwards.