Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Juju on April 19, 2011, 09:23:38 pm

Title: libti* on Wii
Post by: Juju on April 19, 2011, 09:23:38 pm
I wonder if that would be doable. That would be awesome.

I tried to cross-compile them, but, unfortunately, seems they contains Linux and Windows-specific code, so I have to write Wii-specific code to replace it.

But still, that would be a nice project to work on, right? My ultimate goal would be to port TiLP and other TI utilities (emulators?) to the Wii using libwiigui or something and/or create games that make use of a calculator.

FYI the Wii have 2 USB ports on the back, so you can plug a Silverlink there.
Title: Re: libti* on Wii
Post by: ralphdspam on April 19, 2011, 09:34:13 pm
It would be nice if you could port gCn for the wii. :D
Title: Re: libti* on Wii
Post by: Juju on April 19, 2011, 09:40:51 pm
It would be nice if you could port gCn for the wii. :D
Um, the wii already have a wifi card. Unless you meant a wii and a calc playing together over the Internet, which could be nice.
Title: Re: libti* on Wii
Post by: ralphdspam on April 19, 2011, 09:44:00 pm
Um, the wii already have a wifi card. Unless you meant a wii and a calc playing together over the Internet, which could be nice.

Yeah.  I mean using the Wii to connect the calculator to the internet. ;)
Also, a Wii+Calc game would be awesome!
Title: Re: libti* on Wii
Post by: DJ Omnimaga on April 19, 2011, 09:48:47 pm
I assume libti* are the TiLP drivers, right?
Title: Re: libti* on Wii
Post by: Juju on April 19, 2011, 09:51:12 pm
Yep. libticables2, libticalcs2, libticonv and libtifiles2 (http://www.ticalc.org/archives/files/fileinfo/374/37479.html).
Title: Re: libti* on Wii
Post by: JonimusPrime on April 19, 2011, 09:52:22 pm
Juju, the two things that would be needed to do this are glib and libusb, if you can port both of those to the wii, or replace their uses with equivalent functions that would be what you need.
Title: Re: libti* on Wii
Post by: DJ Omnimaga on April 19, 2011, 09:52:29 pm
Ah ok thanks for the info. I haven't used TiLP in ages so I wasn't sure. Plus, the last time I did it was still possible to use both TiLP and TI-Connect at once on my computer, so I guess it was a long while ago.
Title: Re: libti* on Wii
Post by: jnesselr on April 19, 2011, 09:53:43 pm
It's possible.  IIRC, there is a keyboard, mouse, and Mass storage driver already implemented.
Title: Re: libti* on Wii
Post by: Juju on April 19, 2011, 09:56:13 pm
Juju, the two things that would be needed to do this are glib and libusb, if you can port both of those to the wii, or replace their uses with equivalent functions that would be what you need.
Yeah, I'm sure devkitpro have a libusb somewhere. And I think it's what the OS-specific code in the win32/64/linux directory does, do things with the USB port and the OS.

graphmastur: Yeah, there are libs for the keyboard, mouse, and pretty much every filesystem. These could be useful later when writing programs dealing with .8x* files.
Title: Re: libti* on Wii
Post by: JonimusPrime on April 19, 2011, 10:01:08 pm
I actually doubt there is a libusb port for the wii, but if you look at libticables/src/linux/libusb.c you should be able to figure out how to do it with w/e devkitpro offers for USB. Make sure you look at the non Windows/Linux specific code paths as they have some OS specific hacks for bugs in libusb-0.1. If you have any questions about it just ping me on IRC and I can help you with it.
Title: Re: libti* on Wii
Post by: Juju on April 19, 2011, 10:05:04 pm
I just found USB support is in libogc with functions like USB_OpenDevice, IOS_Open and things like that. I'll need to do some research.
Title: Re: libti* on Wii
Post by: JonimusPrime on April 19, 2011, 10:06:03 pm
Ok I'm sure that is is no where near as nice as the libusb-1.0 api but I should be able to help you out if you have questions. You only need the ability to do bulk writes and reads which is a plus at least.
Title: Re: libti* on Wii
Post by: Juju on April 19, 2011, 10:14:29 pm
Well, thanks :)