Not sure that's not my bugs but as I did not find why... maybe somebody will tell me...
1. sceIoDread
I use it to retrieve FS informations (is it a DIR, a FILE,...) and each time the SceIoDirent.d_stat.st_mode access mode is wrong :
- 0x11FF for a dir instead of FIO_S_IFDIR (0x2000)
- 0x21FF for a file instead of FIO_S_IFREG;(0x1000)
So I have to patch them manually :(
Here is the piece of code :
Code: Select all
SceIoDirent Lfiles[MAXDIRNUM];
...
while((ret>0) && (Lfiles_num<MAXDIRNUM)) {
ret = sceIoDread(fd, &Lfiles[Lfiles_num]);
//manual patch
//printf("before[%s] : %x\n", Lfiles[Lfiles_num].d_name, Lfiles[Lfiles_num].d_stat.st_mode);
if(Lfiles[Lfiles_num].d_stat.st_mode == 0x11FF) Lfiles[Lfiles_num].d_stat.st_mode = FIO_S_IFDIR;
if(Lfiles[Lfiles_num].d_stat.st_mode == 0x216D) Lfiles[Lfiles_num].d_stat.st_mode = FIO_S_IFREG;
if(Lfiles[Lfiles_num].d_stat.st_mode == 0x21FF) Lfiles[Lfiles_num].d_stat.st_mode = FIO_S_IFREG;
//printf("after[%s] : %x\n", Lfiles[Lfiles_num].d_name, Lfiles[Lfiles_num].d_stat.st_mode);
if (Lfiles[Lfiles_num].d_name[0] == '.') continue;
if (ret>0) Lfiles_num++;
}
2. Exit callback
I use the standard pspsdk code to set the exit callback and blablabla... it works perfect when I run my code in user mode but in kernel mode the X button has no action on the Exit validation (the O works), exactly like in the PSP MediaCenter 0.87, X doesn't work too.
Any idea ?
I got this issue in 2 different apps... in the same context.