Geckoreader

From WiiBrew
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GeckoReader & libgeck
General
Author(s)r-win / giantpune
Links
Download
Source Included


GeckoReader

GeckoReader is a program to be run under Windows that will open a command prompt and output what it reads from a USB gecko. You must have the USB gecko installed, set up the COM drivers, and have .NET 2.0 for this to work properly. Then whatever buffer is sent from the Wii/Gamecube should pop up on the screen.

Geckoreader.png


libgeck

Also included is libgeck. It is a very small lib that you can link your programs with that should aid in debugging. Just link this in the makefile with -lgeck and put the .a and .h files in their directories in your devkit folder. Or you can just copy the .c and .h files to your project and #include them. The gecko must be in slot B.

First use

bool InitGecko();


then you can use

void gprintf(const char *str, ...);

to output to the gecko. This is just a wrapper for the gecko functions already in libogc, but it accepts arguments like printf(). So you can say

gprintf("%s %i", translate("put a number onscreen"), number);