From dd30e4b3ece00f2bd0f76afb5e1a405fd9538e66 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 15 Sep 2021 01:22:48 +0800 Subject: [PATCH] =?UTF-8?q?iOS=E9=80=80=E5=87=BA=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E4=BC=9A=E6=8F=90=E7=A4=BA=20close=20#273?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/quit.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/parts/scenes/quit.lua b/parts/scenes/quit.lua index 7556d8de..43bebac3 100644 --- a/parts/scenes/quit.lua +++ b/parts/scenes/quit.lua @@ -1,12 +1,24 @@ local scene={} function scene.sceneInit() - if math.random()>.0000626 then - love.timer.sleep(.26) - love.event.quit() + if false and SYSTEM~="iOS"then + if math.random()>.0000626 then + love.timer.sleep(.26) + love.event.quit() + else + error("So lucky! 0.00626% to get this!! You can quit the game now.") + end else - error("So lucky! 0.00626% to get this!! You can quit the game now.") + MES.update(1e99) + SETTING.powerInfo=false + SETTING.tapFX=false + VERSION.string="" + MES.new('error',"Please quit with HOME button on iOS",1e99) end end +function scene.draw() + love.graphics.clear() +end + return scene