Welcome! Log In Create A New Profile

Advanced

libfat 1.0.2 / libogc 1.7.1 subdirectory access fails

Posted by wplaat 
libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 21, 2008 02:01PM
Hello everybody,

I am facing the following problem with the following new Wii libraries.
- libfat 1.0.2
- libogc 1.7.1

My program can not read files located in a subdirectory when i us a SDHC
card. Do other people facing the same problem?

small example:

void readfile(void)
{
char filename="data/en/english.xml";
FILE *fp;
fp = fopen(filename, "r");
if (fp!=NULL)
{
....
}
else
{
printf("File access failed");
}
}

This function works fine with the previous libogc en libfat library on a SD Card.

Comments are welcome?

Willem
Re: libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 21, 2008 10:52PM
Try use the device prefix...

char filename="sd:/data/en/english.xml";
Re: libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 21, 2008 11:17PM
Where can I find libogc 1.7.1?
Re: libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 22, 2008 09:05AM
Hi Arikado,

On my website i have a zip file ready with contains the compiled libogc 1.7.1 library (including libfat 1.0.2 and libsnd 1.0).
I you extract this zip file in the devkitpro directory you are in business

[www.plaatsoft.nl]



Edited 3 time(s). Last edit at 02/05/2009 03:33PM by wplaat.
Re: libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 22, 2008 09:05AM
Hi DrTwox,

Thanks for the reply, i will try the workarround!



Edited 1 time(s). Last edit at 12/22/2008 09:06AM by wplaat.
Re: libfat 1.0.2 / libogc 1.7.1 subdirectory access fails
December 25, 2008 02:17PM
Hi DrTwox,

The workarround is working fine, Thanks for you advise.

wplaat
Sorry, only registered users may post in this forum.

Click here to login