Search found 64 matches

by Eke
Fri Jul 11, 2014 4:13 pm
Forum: Gamecube/Wii Development
Topic: Classic controllers returning invalid calibration data
Replies: 3
Views: 7745

Re: Classic controllers returning invalid calibration data

Looking further at classic_ctrl_handshake function in classics.c, the following code : if (data[offset] == 0xFF) { /* * Sometimes the data returned here is not correct. * This might happen because the wiimote is lagging * behind our initialization sequence. * To fix this just request the handshake a...
by Eke
Fri Jul 11, 2014 3:26 pm
Forum: Gamecube/Wii Development
Topic: Classic controllers returning invalid calibration data
Replies: 3
Views: 7745

Classic controllers returning invalid calibration data

It seems that most problems with 3rd party Classic Controllers in libogc/libwiiuse are caused by controllers that do not return valid calibration data during the initialization handshake. The probleme is that there is actually no double-check in libwiiuse to see if acquired data is valid and the fol...
by Eke
Wed Jan 22, 2014 11:28 am
Forum: Gamecube/Wii Development
Topic: DVD support broken on Gamecube
Replies: 3
Views: 7599

Re: DVD support broken on Gamecube

Sorry to bump that old post but I have recently trying to figure out why DVD support was broken on gamecube and I think I found out the reason(s). 1) There is a restriction in the DVD interface that the DMA buffer start address must be 32-byte aligned. This is now normally handled by the libiso9660 ...
by Eke
Tue Jan 21, 2014 8:59 am
Forum: Gamecube/Wii Development
Topic: mem1 & mem2 management questions
Replies: 14
Views: 18312

Re: mem1 & mem2 management questions

Yes, it's actually done in current sbrk implementation when Arena2Low is equal to mem2_start. Anyway, i tried a few different things but nothing worked, even when patching and recompiling libogc by hand, so I guess there is something else going on. Seems like the only way to go back to mem1 is to fr...
by Eke
Wed Jan 15, 2014 11:04 am
Forum: Gamecube/Wii Development
Topic: mem1 & mem2 management questions
Replies: 14
Views: 18312

Re: mem1 & mem2 management questions

You're right. DevkitPPC uses dlmalloc for its malloc implementation, from memory it has a "trim" function that releases memory back to sbrk when a certain amount is unallocated (in this case it must be at the "top"). Unfortunately it's configured to treat all sbrk'd memory as contiguous so it does ...
by Eke
Fri Jan 03, 2014 11:50 pm
Forum: Gamecube/Wii Development
Topic: mem1 & mem2 management questions
Replies: 14
Views: 18312

Re: mem1 & mem2 management questions

ok, i have been reading more on how malloc and free generally work regarding heap allocation (not sure about newlib's exact implementation though) and now understand that they generally use linked list and that sbrk will only be called when more heap memory is needed or when released memory is at th...
by Eke
Fri Jan 03, 2014 10:29 pm
Forum: Gamecube/Wii Development
Topic: mem1 & mem2 management questions
Replies: 14
Views: 18312

Re: mem1 & mem2 management questions

Hi, I have recently been trying to log MEMx usage in my application to look for memory leaks using SYS_GetArenaXSize functions but I noticed that MEM1 free size will always get locked as soon as you "go" into MEM2, even after freeing allocated objects. I too thought initially that it was due to how ...
by Eke
Fri May 04, 2012 9:58 pm
Forum: Announcements
Topic: libogc 1.8.11 released
Replies: 3
Views: 15955

Re: libogc 1.8.11 released

Thanks for the confirmation
by Eke
Thu May 03, 2012 12:06 pm
Forum: Announcements
Topic: libogc 1.8.11 released
Replies: 3
Views: 15955

Re: libogc 1.8.11 released

add 576p video mode, replace 574i with 576i
are you sure these changes are correct ?

i thought:

1) neither wii or gamecube supported 50hz progressive mode, only 60hz

2) maximal height for PAL is 574 lines on Wii, not 576

Have they been any recent discover that showed the contrary ?
by Eke
Fri Mar 02, 2012 8:31 am
Forum: Announcements
Topic: devkitPPC release 25-1 and libogc 1.8.9
Replies: 4
Views: 20791

Re: devkitPPC release 25-1 and libogc 1.8.9

Got it, thank you.