Original Post

I’m not a devr, but I want a vb emulator for my gamecube. Would it be easy to port reality boy to the cube?

6 Replies

It would be a better idea to start with the Wiirtualboy source or the full Wii Mednafen source. You’ll get more-compatible (and probably faster) emulation and it’s already very close to GC-compatible code.

So where should I start? (If this is gonna be too hard for someone with no dev experience, please say so!)

in3D wrote:
So where should I start? (If this is gonna be too hard for someone with no dev experience, please say so!)

First of all, you’re the only one who can determine if something is “too hard”. People with “dev experience” didn’t always have it. Said experience has to come from somewhere, so why not from porting Mednafen to GC? 🙂

That being said, if you can’t read C code at all, this is going to be a very long process. You may want to read some C tutorials first.

Assuming you know something about how to read code, getting a GC toolchain and libraries installed is probably a good first step. devkitPPC is a good choice (it’s likely what the WiiMednafen developer is using). Building and running some kind of GC demo code will make sure all your tools work and libraries are installed.

At this point, you have two choices: 1) Get the latest Mednafen WIP sources and port it to GC, as was done with WiiMednafen for the Wii, or 2) get the WiiMednafen code and port that.

If you go with #1, you have to use GC-compatible libraries for things like graphics and sound, and convert all the function calls accordingly.

Option #2 is just a matter of replacing Wii code with equivalent GC code. This is going to take lots of study time with the Wii and GC developer docs. You probably won’t find a “How to Port Wii Code to Gamecube” tutorial, but maybe you can find the reverse and… reverse it 😛

Either of these two options is going to take a lot of work and time, especially if you’re inexperienced. It’ll be a great learning experience, but it you’re only concerned about the final product, you may be better off changing your plans to include a used Wii in place of the Gamecube…

RunnerPack wrote:
Assuming you know something about how to read code, getting a GC toolchain and libraries installed is probably a good first step. devkitPPC is a good choice (it’s likely what the WiiMednafen developer is using). Building and running some kind of GC demo code will make sure all your tools work and libraries are installed.

I think I’m gonna go with option 2, but I don’t have my SD Media Launcher yet so in order to try the demo code I would have to use an emu. Is that OK?

in3D wrote:

RunnerPack wrote:
Assuming you know something about how to read code, getting a GC toolchain and libraries installed is probably a good first step. devkitPPC is a good choice (it’s likely what the WiiMednafen developer is using). Building and running some kind of GC demo code will make sure all your tools work and libraries are installed.

I think I’m gonna go with option 2, but I don’t have my SD Media Launcher yet so in order to try the demo code I would have to use an emu. Is that OK?

It’s okay with me if it’s okay with you 😉

The only problem with using an emu is that, even if it doesn’t run, that doesn’t necessarily mean the game/demo is broken. On the other hand, most developers probably target an emulator during most of the coding process, for convenience, so most things probably work fine.

Cool. I’m not gonna get to work right away though cause I’ve got some stuff to do first, but I’ll post the emu here if I ever finish it.

 

Write a reply

You must be logged in to reply to this topic.