Discuss using and improving Lua and the Lua Player specific to the PSP.
	Moderators: Shine, Insert_witty_name
			
		
		
			- 
				
																			 mallchin
- Posts: 36
- Joined: Thu Feb 16, 2006 2:03 am
						
					
													
							
						
									
						Post
					
								by mallchin » 
			
			
			
			
			Is there any way to test for the amount of free space?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 youresam
- Posts: 87
- Joined: Sun Nov 06, 2005 1:43 am
						
					
						
		
													
							
						
									
						Post
					
								by youresam » 
			
			
			
			
			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")
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 mallchin
- Posts: 36
- Joined: Thu Feb 16, 2006 2:03 am
						
					
						
		
													
							
						
									
						Post
					
								by mallchin » 
			
			
			
			
			Thanks, I had assumed that was memory not disk space though?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 youresam
- Posts: 87
- Joined: Sun Nov 06, 2005 1:43 am
						
					
						
		
													
							
						
									
						Post
					
								by youresam » 
			
			
			
			
			Its memorystick space...
However, its a bit inaccurate.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 mallchin
- Posts: 36
- Joined: Thu Feb 16, 2006 2:03 am
						
					
						
		
													
							
						
									
						Post
					
								by mallchin » 
			
			
			
			
			Okay, thanks. I'll try it out.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 mallchin
- Posts: 36
- Joined: Thu Feb 16, 2006 2:03 am
						
					
						
		
													
							
						
									
						Post
					
								by mallchin » 
			
			
			
			
			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?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 matriculated
- Posts: 31
- Joined: Sat Mar 04, 2006 1:35 am
						
					
						
		
													
							
						
									
						Post
					
								by matriculated » 
			
			
			
			
			Perhaps a request for it to be built into Lua Player is in order?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 mallchin
- Posts: 36
- Joined: Thu Feb 16, 2006 2:03 am
						
					
						
		
													
							
						
									
						Post
					
								by mallchin » 
			
			
			
			
			I think so too. Another one to add to the list ;)
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 matriculated
- Posts: 31
- Joined: Sat Mar 04, 2006 1:35 am
						
					
						
		
													
							
						
									
						Post
					
								by matriculated » 
			
			
			
			
			May as well request MS Size, MS space left and MS space taken :P