-
This commit is contained in:
@@ -3,8 +3,23 @@
|
|||||||
NONE={}function NULL() end PAPER=love.graphics.newCanvas(1,1)
|
NONE={}function NULL() end PAPER=love.graphics.newCanvas(1,1)
|
||||||
EDITING=""
|
EDITING=""
|
||||||
LOADED=false
|
LOADED=false
|
||||||
|
|
||||||
|
--[[
|
||||||
|
Available SYSTEM values:
|
||||||
|
Android
|
||||||
|
iOS
|
||||||
|
Linux
|
||||||
|
macOS
|
||||||
|
Web
|
||||||
|
Windows
|
||||||
|
]]--
|
||||||
SYSTEM=love.system.getOS()
|
SYSTEM=love.system.getOS()
|
||||||
if SYSTEM=='OS X' then SYSTEM='macOS' end
|
if SYSTEM=='OS X' then
|
||||||
|
SYSTEM='macOS'
|
||||||
|
elseif SYSTEM=='Web' then
|
||||||
|
WEB_COMPAT_MODE=not love.thread.newThread('\n'):start()
|
||||||
|
print('Web compatible mode: ', WEB_COMPAT_MODE)
|
||||||
|
end
|
||||||
|
|
||||||
-- Bit module
|
-- Bit module
|
||||||
local success
|
local success
|
||||||
@@ -941,8 +956,4 @@ function Z.setOnBeforeQuit(func)
|
|||||||
onBeforeQuit=assert(type(func)=='function' and func,"Z.setOnBeforeQuit(func): func must be function")
|
onBeforeQuit=assert(type(func)=='function' and func,"Z.setOnBeforeQuit(func): func must be function")
|
||||||
end
|
end
|
||||||
|
|
||||||
for k,v in next,_G do
|
|
||||||
print(k,v)
|
|
||||||
end
|
|
||||||
|
|
||||||
return Z
|
return Z
|
||||||
|
|||||||
10
conf.lua
10
conf.lua
@@ -1,9 +1,9 @@
|
|||||||
local OS=love._os
|
local system=love._os
|
||||||
if OS=='OS X' then OS='macOS' end
|
if system=='OS X' then system='macOS' end
|
||||||
MOBILE=OS=='Android' or OS=='iOS'
|
MOBILE=system=='Android' or system=='iOS'
|
||||||
FNNS=OS:find'\79\83' -- What does FNSF stand for? IDK so don't ask me lol
|
FNNS=system:find'\79\83' -- What does FNSF stand for? IDK so don't ask me lol
|
||||||
|
|
||||||
if OS=='Web' then
|
if system=='Web' then
|
||||||
local oldRead=love.filesystem.read
|
local oldRead=love.filesystem.read
|
||||||
function love.filesystem.read(name,size)
|
function love.filesystem.read(name,size)
|
||||||
if love.filesystem.getInfo(name) then
|
if love.filesystem.getInfo(name) then
|
||||||
|
|||||||
Reference in New Issue
Block a user