Search found 40 matches

by tueidj
Fri Jun 24, 2011 12:44 pm
Forum: Announcements
Topic: devkitPPC release 23, libogc 1.8.7
Replies: 4
Views: 14913

Re: devkitPPC release 23, libogc 1.8.7

Not exactly. It's more like it prefetches an extra cache line (the cache lines are always stored in pairs, so it's not causing any extra evictions)... which would be a wasted fetch if the program didn't use that memory. But in almost all cases it's beneficial.
by tueidj
Wed Jun 22, 2011 7:32 pm
Forum: Announcements
Topic: devkitPPC release 23, libogc 1.8.7
Replies: 4
Views: 14913

Re: devkitPPC release 23, libogc 1.8.7

Can you explain more what it does and how can I use it ? I see a "L2Enhance()" function in cache.c, do I need to call it on Init ? Does it only optimize 64-bit words (u64) read from memory ? Does it work with Gekko CPU as well ? It should be called as early as possible since it invalidate...
by tueidj
Sat Jun 18, 2011 11:09 am
Forum: Bug Reports
Topic: fwrite to stdout bug
Replies: 7
Views: 9657

Re: fwrite to stdout bug

It works fine when outputting to a file and there's no rules defining how a standard output device has to behave - if you haven't set up a console it throws away everything , are you going to call that a bug too? Newsflash: undefined operations may produce different results on different systems. Doe...
by tueidj
Fri Jun 17, 2011 6:05 pm
Forum: Bug Reports
Topic: fwrite to stdout bug
Replies: 7
Views: 9657

Re: fwrite to stdout bug

It's not a bug, it's perfectly valid C behaviour - '\0' signifies the end of a string.
by tueidj
Thu Apr 28, 2011 9:27 am
Forum: Bug Reports
Topic: USB_OpenDevice failure for some USB devices
Replies: 3
Views: 6154

Re: USB_OpenDevice failure for some USB devices

/dev/usb/ven and /dev/usb/hid don't work like that; devices are accessed through them using ioctls. Given that all the failing devices are HIDs, it sounds like you're using one of the unsupported IOSes as mentioned in the comment at the top of usb.c. These IOSes implement an older version of /dev/us...
by tueidj
Fri Nov 05, 2010 11:59 am
Forum: Gamecube/Wii Development
Topic: ISFS_CreateFile owner/groupid issue
Replies: 7
Views: 11397

Re: ISFS_CreateFile owner/groupid issue

I said uninitialized(random). Finding an uninitialized value set to 0 is not very rare. Something tells me your identify/setuid tests didn't work (which isn't surprising, ES_Identify has been fixed for ages and setuid doesn't work unless you're already identified as the system menu). Why not find ou...
by tueidj
Thu Nov 04, 2010 5:49 pm
Forum: Gamecube/Wii Development
Topic: ISFS_CreateFile owner/groupid issue
Replies: 7
Views: 11397

Re: ISFS_CreateFile owner/groupid issue

Apps loaded from HBC will only be identified as HBC if they use no_ios_reload, otherwise a new IOS is loaded and the owner/group will be uninitialized. As for what you should do, maybe rethink whatever you're attempting? The reason owner/group permissions exist is to prevent apps accessing files tha...
by tueidj
Tue Nov 02, 2010 2:48 pm
Forum: Gamecube/Wii Development
Topic: ISFS_CreateFile owner/groupid issue
Replies: 7
Views: 11397

Re: ISFS_CreateFile owner/groupid issue

Unless you've identified as a specific title after IOS is loaded (or the current IOS was loaded during an ES_LAUNCHTITLE call), the owner and group used to access/create new files will be uninitialized (random). Not sure why libogc has parameters to specify the owner and group as they will be ignore...
by tueidj
Thu Dec 10, 2009 4:38 pm
Forum: libfat
Topic: fatGetVolumeLabel bug
Replies: 2
Views: 12126

Re: fatGetVolumeLabel bug

Wii, but I use my own code for USB storage which expects data buffers allocated from MEM2.
by tueidj
Thu Dec 10, 2009 9:33 am
Forum: libfat
Topic: fatGetVolumeLabel bug
Replies: 2
Views: 12126

fatGetVolumeLabel bug

fatGetVolumeLabel in libfat.c is using regular C memory allocation routines (malloc/free) instead of the appropriate libfat wrappers (_FAT_mem_allocate/_FAT_mem_free), which breaks compiling when those functions aren't available.