I want to get the image in PBP
but I don't know the image's offset and length
sceRead (buf  ,  ? ,  ?  )
			
			
													[SOLVED]how can I get PBP image offset and length
- 
				yucopowo2009
 - Posts: 5
 - Joined: Fri Sep 18, 2009 5:05 pm
 
[SOLVED]how can I get PBP image offset and length
					Last edited by yucopowo2009 on Fri Dec 04, 2009 3:57 pm, edited 1 time in total.
									
			
									
						Code: Select all
u32 header[10];
SceUID fd = sceIoOpen(eboot, PS_O_RDONLY, 0);
if (fd >= 0)
{
    if (sceIoRead(fd, header, sizeof(header)) == sizeof(header))
    {
        sceIoLseek(fd, header[3], PSP_SEEK_SET);
    }
}- 
				yucopowo2009
 - Posts: 5
 - Joined: Fri Sep 18, 2009 5:05 pm
 
a_noob wrote:Cheers. http://hitmen.c02.at/files/yapspd/psp_d ... ml#sec26.3
thanks very much
- 
				yucopowo2009
 - Posts: 5
 - Joined: Fri Sep 18, 2009 5:05 pm
 
oh it's cool ,thanks very muchTorch wrote:It will leave you at the PNG header. Change the index in header[3] for other data according to that document.Code: Select all
u32 header[10]; SceUID fd = sceIoOpen(eboot, PS_O_RDONLY, 0); if (fd >= 0) { if (sceIoRead(fd, header, sizeof(header)) == sizeof(header)) { sceIoLseek(fd, header[3], PSP_SEEK_SET); } }
