Search found 34 matches

by Oibaf
Sat Apr 01, 2017 12:00 pm
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 15391

Re: undefined reference to `access' using devkitPPC r29-1

You can use this function to replace the "acccess function":

Code: Select all

 
static int wii_access (const char *pathname, int mode)
{
	struct stat st;

	if (stat(pathname, &st) < 0)
		return -1;
		
	return 0; //With Wii the file/dir is considered always accessible if it exists
}
#define access wii_access
by Oibaf
Tue Mar 21, 2017 5:48 pm
Forum: Announcements
Topic: Kitchen Sink Update
Replies: 16
Views: 30539

Re: Kitchen Sink Update

Any chance to have an official version of Portlibs recompiled with with the latest tools?

The current version of zlib in sourceforge seems not to be working.

Thanks
by Oibaf
Thu Jan 19, 2017 3:24 pm
Forum: devkitPPC
Topic: ftruncate in dekitPPC r 29
Replies: 2
Views: 5018

Re: ftruncate in dekitPPC r 29

Just done
by Oibaf
Wed Jan 18, 2017 2:09 pm
Forum: devkitPPC
Topic: ftruncate in dekitPPC r 29
Replies: 2
Views: 5018

ftruncate in dekitPPC r 29

In devkitPPC release 29, now the compiler gives a warning for "ftruncate" (undefined function). Indeed the include file (unist.h) changed in respect to r28. However the compiler can link the function. In sys/unistd.h #if defined(__CYGWIN__) || defined(__rtems__) || defined(__aarch64__) || defined (_...
by Oibaf
Sat Jan 14, 2017 12:32 pm
Forum: Gamecube/Wii Development
Topic: Wrong calibration data for Wii U Pro controller
Replies: 0
Views: 4542

Wrong calibration data for Wii U Pro controller

The Wii U Pro controller does not provide calibration data therefore these data have been written in the code (classic.c) /* is this a wiiu pro? */ if (len > 223 && data[223] == 0x20) { cc->ljs.max.x = cc->ljs.max.y = 0xFF; cc->ljs.min.x = cc->ljs.min.y = 0; cc->ljs.center.x = cc->ljs.center.y = 0x8...
by Oibaf
Sun Jan 08, 2017 10:11 am
Forum: Bug Reports
Topic: gettimeoftheday, clock_gettime, tick_microsecs, tick_nanosec
Replies: 3
Views: 6334

Re: gettimeoftheday, clock_gettime, tick_microsecs, tick_nan

Regarding this topic I propose this patch libogc/timesupp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libogc/timesupp.c b/libogc/timesupp.c index 24ab9d7..493f5d1 100644 --- a/libogc/timesupp.c +++ b/libogc/timesupp.c @@ -163,7 +163,7 @@ int clock_gettime(struct timespec ...
by Oibaf
Thu Jan 05, 2017 8:01 pm
Forum: Gamecube/Wii Development
Topic: Classic controllers returning invalid calibration data
Replies: 3
Views: 8337

Re: Classic controllers returning invalid calibration data

As far as I understand from the code, the Wii U pro controller is "seen" as a classic controller expansion of the Wiimote. As such the status of the Wii U pro controller can be checked with the same functions, parameters and data structure used for the Classic controller (normal and pro). It is poss...
by Oibaf
Wed Jan 04, 2017 10:07 pm
Forum: Bug Reports
Topic: sleep and usleep in libogc 1.8.15 not working
Replies: 4
Views: 5479

Re: sleep and usleep in libogc 1.8.15 not working

I wanted to say that with -Os flag, sleep function does not work
by Oibaf
Wed Jan 04, 2017 1:08 pm
Forum: Bug Reports
Topic: sleep and usleep in libogc 1.8.15 not working
Replies: 4
Views: 5479

Re: sleep and usleep in libogc 1.8.15 not working

You were right. It is an optimization issue. I tried with no optimization flag, -O2 and -O3. All of them give a working sleep function. I also tried other thread tests (i.e. mutex) which did not work; they work with the optimizations above. I also compiled with -Os (the flag used in your distributio...
by Oibaf
Tue Jan 03, 2017 5:14 pm
Forum: Bug Reports
Topic: sleep and usleep in libogc 1.8.15 not working
Replies: 4
Views: 5479

sleep and usleep in libogc 1.8.15 not working

The sleep and usleep functions does not work in libogc 1.8.15. "sleep" freezes the Wii with any value. "usleep" freezes the Wii with big values or when it is called several times. Since all my projects use the sleep functions, none of them works with the new lib. Could this be the cause of MAME and ...