18.04.2010, 20:27
Ich finde einfach den Fehler nicht. Es wird kein Ordnername oder Dateiname ausgegeben.
Code:
SceUID hnd = sceIoDopen(akdir);
SceIoDirent dir;
int count = 0;
int y = 15;
if(hnd <= 0)
{
while(sceIoDread(hnd,&dir) > 0)
{
int color = CL_FILE;
if(count == selected)
{
color = CL_SELECTED;
} else if(sceIoDopen(dir.d_name) <= 0)
{
color = CL_FOLDER;
}
mclibDrawString(8,y,dir.d_name,color,0,7); y += 8;
count++;
}
sceIoDclose(hnd);
} else {
mclibDrawString(8,10,"Error: Cannot read directory",CL_ERROR,0,7);
}
Die Variable "akdir" ist "ms0:/".