Can you tell me why my game crashes after doing nothing for a while?
Here's the only code that's being run:
Code: Select all
function showtitle()
menu=0
a,b = Network.initFTP()
while true do
Screen.initBlend()
Screen.clear()
System.powerTick()
Screen.fillRect(0, 1000, 0, 600, Color.new(255,255,255))
Screen.debugPrint(400, 20, "Title", Color.new(0,0,0))
Screen.debugPrint(50, 200, "Play", Color.new(0,0,0))
Screen.debugPrint(50, 216, "Options", Color.new(0,0,0))
Screen.debugPrint(30, 200+(menu*16), ">", Color.new(0,0,0))
if Controls.check(Controls.read(), PSP2_CTRL_SELECT) then
Screen.initBlend()
Screen.clear()
Screen.termBlend()
Screen.flip()
Screen.initBlend()
Screen.clear()
Screen.termBlend()
System.wait(3000)
dofile("cache0:/lpp/index.lua")
end
Screen.termBlend()
Screen.flip()
System.wait(1)
end
end
showtitle()