OS X系统名称字符串强制改为macOS close #513
This commit is contained in:
1
main.lua
1
main.lua
@@ -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()
|
||||||
|
|||||||
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user