forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

free memory stick space

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dbeyer3069



Joined: 19 Dec 2005
Posts: 81

PostPosted: Mon Jan 23, 2006 2:22 am    Post subject: free memory stick space Reply with quote

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
View user's profile Send private message
lS[UMD/2kdlSU]



Joined: 26 Oct 2005
Posts: 8
Location: Shiga, Japan

PostPosted: Mon Jan 23, 2006 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
dbeyer3069



Joined: 19 Dec 2005
Posts: 81

PostPosted: Tue Jan 24, 2006 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group