Código: Seleccionar todo
char buffer[128*1024]
eh intentado con cambiar el "128" que es la cantidad de byte que lee, pero si aumento el buffer a mas de 255 la PSP se crashea al intentar realizar la acción, así que les pido a todos lo coders que me ayuden urgentemente.
Aquí les dejo el código completo que utilice:
Código: Seleccionar todo
int bytesread;
char buffer[128*1024];//Buffer de datos para 131072 bytes
char *READPATH="ms0:/testcopy.txt";
char *WRITEPATH="ms0:/testcopied.txt";
SceUID fd = sceIoOpen(READPATH, PSP_O_RDONLY, 0777);
bytesread = sceIoRead(fd,buffer,sizeof(buffer));
sceIoClose(fd);
fd = sceIoOpen(WRITEPATH, PSP_O_WRONLY|PSP_O_CREAT, 0777);
sceIoWrite(fd,buffer,bytesread);
sceIoClose(fd);