Skip to content

Commit

Permalink
框架跟进
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Dec 22, 2024
1 parent a654e8d commit 6d8b4da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 4 files
+6 −6 init.lua
+5 −4 log.lua
+1 −7 mathExtend.lua
+9 −5 stringExtend.lua
4 changes: 2 additions & 2 deletions conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if ShellOption.bootDisabled then
return
end

if love._os=='Web' then
if love['_os']=='Web' then
local oldRead=love.filesystem.read
love.filesystem[('read')]=function(name,size)
if love.filesystem.getInfo(name) then return oldRead(name,size) end
Expand All @@ -23,7 +23,7 @@ function love.conf(t)
local mobile=love._os=='Android' or love._os=='iOS'
local web=love._os=='Web'
local msaa=4
local portrait=false
local portrait=false ---@type boolean|nil

local fs=love.filesystem
fs.setIdentity(identity)
Expand Down
5 changes: 3 additions & 2 deletions shell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ end
local _require=require
local require=simpRequire('Zenitha.')
local rnd=math.random
AE=require'escape'
LOG=require'log'
STRING=require'stringExtend'
TABLE=require'tableExtend'
AE=require'escape'

local stdout=io.stdout
function write(text)
Expand All @@ -17,7 +18,7 @@ function write(text)
end
local function sleep(time)
if time<=0 then return end
if love._os=='Linux' then
if love['_os']=='Linux' then
os.execute('sleep '..time)
else
local fin=os.clock()+time
Expand Down

0 comments on commit 6d8b4da

Please sign in to comment.