mirror of
				https://fem.mint.lgbt/m/Rhythmblock.git
				synced 2024-08-14 20:27:11 +00:00 
			
		
		
		
	changed the command for exiting
This commit is contained in:
		
							parent
							
								
									b0bf6b4fc7
								
							
						
					
					
						commit
						4cb2d387e9
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,7 @@ centerHeight = round(height / 2) -- Defines the vertical center
 | 
			
		|||
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
 | 
			
		||||
if #peripherals < 0 then
 | 
			
		||||
	print "No drive"
 | 
			
		||||
	os.exit() -- Exits if there's no disk drive
 | 
			
		||||
	return true -- Exits if there's no disk drive
 | 
			
		||||
else
 | 
			
		||||
	driveCount = 0
 | 
			
		||||
	for n = 1, #peripherals do
 | 
			
		||||
| 
						 | 
				
			
			@ -134,7 +134,7 @@ while true do
 | 
			
		|||
                        playDisc()
 | 
			
		||||
                end
 | 
			
		||||
        elseif name == "q" then
 | 
			
		||||
                os.exit()
 | 
			
		||||
                return true
 | 
			
		||||
        end
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue