Skip to content

Commit 6d8b4da

Browse files
committed
框架跟进
1 parent a654e8d commit 6d8b4da

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Zenitha

conf.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if ShellOption.bootDisabled then
1111
return
1212
end
1313

14-
if love._os=='Web' then
14+
if love['_os']=='Web' then
1515
local oldRead=love.filesystem.read
1616
love.filesystem[('read')]=function(name,size)
1717
if love.filesystem.getInfo(name) then return oldRead(name,size) end
@@ -23,7 +23,7 @@ function love.conf(t)
2323
local mobile=love._os=='Android' or love._os=='iOS'
2424
local web=love._os=='Web'
2525
local msaa=4
26-
local portrait=false
26+
local portrait=false ---@type boolean|nil
2727

2828
local fs=love.filesystem
2929
fs.setIdentity(identity)

shell.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ end
66
local _require=require
77
local require=simpRequire('Zenitha.')
88
local rnd=math.random
9+
AE=require'escape'
10+
LOG=require'log'
911
STRING=require'stringExtend'
1012
TABLE=require'tableExtend'
11-
AE=require'escape'
1213

1314
local stdout=io.stdout
1415
function write(text)
@@ -17,7 +18,7 @@ function write(text)
1718
end
1819
local function sleep(time)
1920
if time<=0 then return end
20-
if love._os=='Linux' then
21+
if love['_os']=='Linux' then
2122
os.execute('sleep '..time)
2223
else
2324
local fin=os.clock()+time

0 commit comments

Comments
 (0)