| View previous topic :: View next topic |
| Author |
Message |
dbeyer3069
Joined: 19 Dec 2005 Posts: 81
|
Posted: Mon Jan 23, 2006 2:22 am Post subject: free memory stick space |
|
|
Has someone figured out how the PSP returns the amount of free space on the memory stick? I searched in the documentation, these forums and googled and haven't found anything.
I need a function or way to calculate it for an app.
Thanks.
David Beyer |
|
| Back to top |
|
 |
lS[UMD/2kdlSU]
Joined: 26 Oct 2005 Posts: 8 Location: Shiga, Japan
|
Posted: Mon Jan 23, 2006 6:40 pm Post subject: |
|
|
This is a code posted on 2ch.
| Code: | unsigned int buf[5];
unsigned int *pbuf = buf;
sceIoDevctl("ms0:", 0x02425818, &pbuf, sizeof(pbuf), 0, 0); |
Then buf[1]*buf[3]*buf[4] should be free space on MemoryStick.
# buf[0]*buf[3]*buf[4] is total space.
source: here _________________ lS[UMD/2kdlSU] - now working as 67...
----------------------------------------------
site: jap | eng
jap blog: here |
|
| Back to top |
|
 |
dbeyer3069
Joined: 19 Dec 2005 Posts: 81
|
Posted: Tue Jan 24, 2006 7:56 am Post subject: |
|
|
| lS[UMD/2kdlSU] wrote: | This is a code posted on 2ch.
| Code: | unsigned int buf[5];
unsigned int *pbuf = buf;
sceIoDevctl("ms0:", 0x02425818, &pbuf, sizeof(pbuf), 0, 0); |
Then buf[1]*buf[3]*buf[4] should be free space on MemoryStick.
# buf[0]*buf[3]*buf[4] is total space.
source: here |
Thanks. I will give this a shot.
David Beyer |
|
| Back to top |
|
 |
|