Anonymous
public text v1 · immutablevoid Skin(){
FAT_FILE* element; char* data; int lSize;
element = FAT_fopen("/skin/dsPodtop.bmp","r");
// obtain file size.
FAT_fseek (element , 0 , SEEK_END);
lSize = FAT_ftell (element);
FAT_fseek (element, 0, SEEK_SET);
// allocate memory to contain the whole file.
data = (char*) malloc (lSize);
// copy the file into the buffer.
FAT_fread (data,1,lSize,element);
FAT_fclose(element);
PA_LoadBmpEx(1,0,0,data);
}