From 962a61567ad4696285e9e815f1cbb877a1cf2a33 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 30 Nov 2021 12:25:59 +0800 Subject: [PATCH] =?UTF-8?q?OS=20X=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=BC=BA=E5=88=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?macOS=20close=20#513?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 1 + parts/scenes/main.lua | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.lua b/main.lua index f352168f..793a41d9 100644 --- a/main.lua +++ b/main.lua @@ -24,6 +24,7 @@ VERSION=require"version" TIME=love.timer.getTime YIELD=coroutine.yield SYSTEM=love.system.getOS() +if SYSTEM=='OS X'then SYSTEM='macOS'end FNSF=SYSTEM:find'\79\83'--What does FNSF stand for? IDK so don't ask me lol MOBILE=SYSTEM=='Android'or SYSTEM=='iOS' SAVEDIR=fs.getSaveDirectory() diff --git a/parts/scenes/main.lua b/parts/scenes/main.lua index 539d346f..974f1e73 100644 --- a/parts/scenes/main.lua +++ b/parts/scenes/main.lua @@ -2,7 +2,6 @@ local gc=love.graphics local scene={} -local lastQuitTime local verName=("%s %s %s"):format(SYSTEM,VERSION.string,VERSION.name) local tipLength=760 local tip=gc.newText(getFont(30),"") @@ -22,7 +21,6 @@ local enterConsole=coroutine.wrap(function() end) function scene.sceneInit() BG.set() - lastQuitTime=-1e99 --Set tip tip:set(text.getTip())