| View previous topic :: View next topic |
| Author |
Message |
yucopowo2009
Joined: 18 Sep 2009 Posts: 6
|
Posted: Wed Dec 02, 2009 2:07 pm Post subject: [SOLVED]how can I get PBP image offset and length |
|
|
I want to get the image in PBP
but I don't know the image's offset and length
sceRead (buf , ? , ? )
Last edited by yucopowo2009 on Fri Dec 04, 2009 3:57 pm; edited 1 time in total |
|
| Back to top |
|
 |
a_noob
Joined: 17 Sep 2006 Posts: 97 Location: _start: jr 0xDEADBEEF
|
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Dec 03, 2009 6:49 pm Post subject: |
|
|
| Code: | 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);
}
} |
It will leave you at the PNG header. Change the index in header[3] for other data according to that document. |
|
| Back to top |
|
 |
yucopowo2009
Joined: 18 Sep 2009 Posts: 6
|
Posted: Fri Dec 04, 2009 3:53 pm Post subject: |
|
|
thanks very much |
|
| Back to top |
|
 |
yucopowo2009
Joined: 18 Sep 2009 Posts: 6
|
Posted: Fri Dec 04, 2009 3:54 pm Post subject: |
|
|
| Torch wrote: | | Code: | 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);
}
} |
It will leave you at the PNG header. Change the index in header[3] for other data according to that document. |
oh it's cool ,thanks very much |
|
| Back to top |
|
 |
|