Homebrew Wii2600 + RVL-CNT-01-TR compatibilty

  • Thread starter Thread starter Kartoffel7
  • Start date Start date
  • Views Views 8,396
  • Replies Replies 30

Kartoffel7

Member
Newcomer
Joined
Jul 19, 2007
Messages
5
Reaction score
1
Trophies
1
XP
216
Country
United States
Was wondering if anyone had recompiled Wii2600 with the latest libogc so it is compatible with the newer Wii Remote Plus (RVL-CNT-01-TR) controllers. I've been unsuccessful compiling it myself. It would be great to be able to play this emulator with these new remotes.
 
Por nada, supongo que es lo menos que puedo hacer en un día libre. :P
________________________

So, here's it: http://www58.zippyshare.com/v/97964091/file.html.

I had to make a lot of changes to get this baby to compile properly with the latest libs (seriously, A LOT). I haven't tested it since I don't really have any ATARI 2600 games, but I guess it should work fine.

*Maybe* I broke the compatibility with the Stelladaptor, because I had to modify the USB code in order to reflect the changes in libogc. Heck, I don't even know if it worked in the first place; I had the impression there was missing code. :/

Source: http://www58.zippyshare.com/v/75823723/file.html. Just in case any of you guys want to add new features / fix something else without going through the hassle of updating it for the recent libraries. Make sure you have libSDL installed on the libogc dir before compiling! (r101, compiled today)
 
Could you please post an screenshot?
Sure, here you go.
j90f.jpg

edit: Its happens as soon as I load the Emu from HBC.
 
Well, this is weird. According to GDB, the problem is in line 2675 of the video.c file from libogc source, specifically in the VIDEO_GetFrameBufferSize function, which is never used in the application.

Maybe it's just a conflict with libSDL, I'll look into the problem and try to upload a new binary.
 
That's a problem with the video buffer. The video part in SDL has changed.
You declared the extern frame_buffer as static and NULL. However, it doesn't exist anymore in SDL that's why there's an error.
I had issues too with wiixl plugin. I used extern GXRModeObj *vmode instead for the 2 wii_xfb buffer and it seems to work.

There's also an issue with the files, it always see them as a folder. Maybe you could replace the statbuf.st_mode with another test.
 
most likely trying to write to an area already used (and taken) , or that simply does not exists. (access violation)

careful with assigning macros that talk directly with hardware, by setting them to NULL or zero
 
That's a problem with the video buffer. The video part in SDL has changed.
You declared the extern frame_buffer as static and NULL. However, it doesn't exist anymore in SDL that's why there's an error.
I had issues too with wiixl plugin. I used extern GXRModeObj *vmode instead for the 2 wii_xfb buffer and it seems to work.

There's also an issue with the files, it always see them as a folder. Maybe you could replace the statbuf.st_mode with another test.

Thanks, I was not aware of those changes in the SDL library. I'll check that as soon as I get to my home (I'm in the university right now).

EDIT: Yup, it was just like you said, the constant names in libSDL were changed. I have tested the application now and it works fine (I also fixed the problems with the directory reading). However, instead of using vmode = wii_xfb[cur_xfb], I had to use vmode->xfbMode = *wii_xfb[cur_xfb], since the compiler was bitching about wii_xfb not being of GXRModeObj type.

Thank you very much for the tips, really! :)


I already deleted the previous files from ZippyShare to avoid confusion (except for the SDL library, it may come in handy for someone else).
 
Thanks for your work DMC, I wonder if you can do the same for wii7800 :grog:

I suppose I won't know 'til I try. ;)

EDIT: Well, after a few modifications I got the application to compile. It lists the ROMs properly and lets me load any of them. The problem is that there is no video output when you select one, just sound.

I'm even compiling the emulator with the modified SDL library the source code included, but I'm suspecting I'll have to try with a different build if I want to solve this.
 

Site & Scene News