OS X系统名称字符串强制改为macOS close #513

This commit is contained in:
MrZ626
2021-11-30 12:25:59 +08:00
parent 58f05e1cec
commit 962a61567a
2 changed files with 1 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ VERSION=require"version"
TIME=love.timer.getTime TIME=love.timer.getTime
YIELD=coroutine.yield YIELD=coroutine.yield
SYSTEM=love.system.getOS() 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 FNSF=SYSTEM:find'\79\83'--What does FNSF stand for? IDK so don't ask me lol
MOBILE=SYSTEM=='Android'or SYSTEM=='iOS' MOBILE=SYSTEM=='Android'or SYSTEM=='iOS'
SAVEDIR=fs.getSaveDirectory() SAVEDIR=fs.getSaveDirectory()

View File

@@ -2,7 +2,6 @@ local gc=love.graphics
local scene={} local scene={}
local lastQuitTime
local verName=("%s %s %s"):format(SYSTEM,VERSION.string,VERSION.name) local verName=("%s %s %s"):format(SYSTEM,VERSION.string,VERSION.name)
local tipLength=760 local tipLength=760
local tip=gc.newText(getFont(30),"") local tip=gc.newText(getFont(30),"")
@@ -22,7 +21,6 @@ local enterConsole=coroutine.wrap(function()
end) end)
function scene.sceneInit() function scene.sceneInit()
BG.set() BG.set()
lastQuitTime=-1e99
--Set tip --Set tip
tip:set(text.getTip()) tip:set(text.getTip())