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 

freespace

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



Joined: 16 Feb 2006
Posts: 36

PostPosted: Thu Feb 16, 2006 3:15 am    Post subject: freespace Reply with quote

Is there any way to test for the amount of free space?
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Thu Feb 16, 2006 10:12 am    Post subject: Reply with quote

Taken from the wiki:


Gets the available free memory. You can use it like this:

print("about " .. System.getFreeMemory() / 1024 / 1024 .. " megabytes free memory available")
Back to top
View user's profile Send private message AIM Address
mallchin



Joined: 16 Feb 2006
Posts: 36

PostPosted: Thu Feb 16, 2006 10:30 am    Post subject: Reply with quote

Thanks, I had assumed that was memory not disk space though?
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sat Feb 18, 2006 6:35 am    Post subject: Reply with quote

Its memorystick space...

However, its a bit inaccurate.
Back to top
View user's profile Send private message AIM Address
mallchin



Joined: 16 Feb 2006
Posts: 36

PostPosted: Sun Feb 19, 2006 12:11 am    Post subject: Reply with quote

Okay, thanks. I'll try it out.
Back to top
View user's profile Send private message
mallchin



Joined: 16 Feb 2006
Posts: 36

PostPosted: Tue Mar 07, 2006 1:12 am    Post subject: Reply with quote

I'd say this was memory not disk space. I have 128Mb free and it reports 17Mb, sounds reasonable given the 32Mb memory of the PSP.

What gives you the impression this isn't memory?

Is there a way to accurately guage the ammount of free disk space?
Back to top
View user's profile Send private message
matriculated



Joined: 04 Mar 2006
Posts: 31

PostPosted: Tue Mar 07, 2006 2:01 am    Post subject: Reply with quote

Perhaps a request for it to be built into Lua Player is in order?
Back to top
View user's profile Send private message
mallchin



Joined: 16 Feb 2006
Posts: 36

PostPosted: Tue Mar 07, 2006 4:54 am    Post subject: Reply with quote

I think so too. Another one to add to the list ;)
Back to top
View user's profile Send private message
matriculated



Joined: 04 Mar 2006
Posts: 31

PostPosted: Tue Mar 07, 2006 5:22 am    Post subject: Reply with quote

May as well request MS Size, MS space left and MS space taken :P
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 Lua Player 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