Discuss using and improving Lua and the Lua Player specific to the PSP.
	Moderators: Shine, Insert_witty_name
			
		
		
			- 
				
																			
								MagicianFB							 
									
		- Posts: 11
 		- Joined: Mon Oct 10, 2005 8:45 am
 		
		
						
						
		
		
						
					
													
							
						
									
						Post
					
								by MagicianFB » 
			
			
			
			
			Does any one know how this works?
When I do this:
Code: Select all
listdir = System.listDirectory()
table.foreach(listdir, print)
All the values are some thing like this:
table: 0x89a6b78
 
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			
								MagicianFB							 
									
		- Posts: 11
 		- Joined: Mon Oct 10, 2005 8:45 am
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by MagicianFB » 
			
			
			
			
			Nevermind, ignore the above.
Now I need to know how come every indice of listdir is an empty table.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			
								flattspott							 
									
		- Posts: 22
 		- Joined: Mon Aug 22, 2005 4:06 am
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by flattspott » 
			
			
			
			
			maybe it should be something like so..
 System.listDirectory( path )
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			
								MagicianFB							 
									
		- Posts: 11
 		- Joined: Mon Oct 10, 2005 8:45 am
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by MagicianFB » 
			
			
			
			
			flattspott wrote:maybe it should be something like so..
 System.listDirectory( path )
I think if you don't have the path it just does the current directory.