Fixed a slight bug in love2d.lua compat file
1.7.1
This commit is contained in:
parent
5edea3a6a4
commit
34ec6b25f9
@ -1,18 +1,18 @@
|
|||||||
require("multi.all")
|
require("multi.all")
|
||||||
os.sleep=love.timer.sleep
|
os.sleep=love.timer.sleep
|
||||||
function bin.load(file,s,r)
|
--~ function bin.load(file,s,r)
|
||||||
content, size = love.filesystem.read(file)
|
--~ content, size = love.filesystem.read(file)
|
||||||
local temp=bin.new(content)
|
--~ local temp=bin.new(content)
|
||||||
temp.filepath=file
|
--~ temp.filepath=file
|
||||||
return temp
|
--~ return temp
|
||||||
end
|
--~ end
|
||||||
function bin:tofile(filename)
|
--~ function bin:tofile(filename)
|
||||||
if not(filename) or self.Stream then return nil end
|
--~ if not(filename) or self.Stream then return nil end
|
||||||
love.filesystem.write(filename,self.data)
|
--~ love.filesystem.write(filename,self.data)
|
||||||
end
|
--~ end
|
||||||
function bin.stream(file,l)
|
--~ function bin.stream(file,l)
|
||||||
error("Sorry streaming is not available when using love2d :(, I am looking for a solution though :)")
|
--~ error("Sorry streaming is not available when using love2d :(, I am looking for a solution though :)")
|
||||||
end
|
--~ end
|
||||||
function love.run()
|
function love.run()
|
||||||
if love.math then
|
if love.math then
|
||||||
love.math.setRandomSeed(os.time())
|
love.math.setRandomSeed(os.time())
|
||||||
|
|||||||
@ -22,7 +22,7 @@ function print(...)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
multi = {}
|
multi = {}
|
||||||
multi.Version={1,6,1}
|
multi.Version={1,7,1}
|
||||||
multi.stage='stable'
|
multi.stage='stable'
|
||||||
multi.__index = multi
|
multi.__index = multi
|
||||||
multi.Mainloop={}
|
multi.Mainloop={}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user