Also information about using the fat lib. (sdcard access)
Quote "
dol files are the pure binary native executable format of both the Wii and the Gamecube. ELF files are the format output by the linker which contain debugging information, dol files are created from the elf files. The dol format is the preferred and recommended format for distribution.
SD card file system access is easy, all you do is link your application with libfat, call fatInitDefault() and use normal stdio functions.
Portion code reference:
#include
// Initialise libfat
fatInitDefault();
// Open a file for reading
FILE *file = fopen("myfile.txt","rb");
// find the size of the file
fseek(file, 0L, SEEK_END);
int size = ftell(file);
fseek(file, 0L, SEEK_SET);
// allocat buffer for file & read
void *buffer = malloc(size);
fread(buffer,1,size,file);
fclose(handle);
No comments:
Post a Comment