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")
|
||||
os.sleep=love.timer.sleep
|
||||
function bin.load(file,s,r)
|
||||
content, size = love.filesystem.read(file)
|
||||
local temp=bin.new(content)
|
||||
temp.filepath=file
|
||||
return temp
|
||||
end
|
||||
function bin:tofile(filename)
|
||||
if not(filename) or self.Stream then return nil end
|
||||
love.filesystem.write(filename,self.data)
|
||||
end
|
||||
function bin.stream(file,l)
|
||||
error("Sorry streaming is not available when using love2d :(, I am looking for a solution though :)")
|
||||
end
|
||||
--~ function bin.load(file,s,r)
|
||||
--~ content, size = love.filesystem.read(file)
|
||||
--~ local temp=bin.new(content)
|
||||
--~ temp.filepath=file
|
||||
--~ return temp
|
||||
--~ end
|
||||
--~ function bin:tofile(filename)
|
||||
--~ if not(filename) or self.Stream then return nil end
|
||||
--~ love.filesystem.write(filename,self.data)
|
||||
--~ end
|
||||
--~ function bin.stream(file,l)
|
||||
--~ error("Sorry streaming is not available when using love2d :(, I am looking for a solution though :)")
|
||||
--~ end
|
||||
function love.run()
|
||||
if love.math then
|
||||
love.math.setRandomSeed(os.time())
|
||||
|
||||
@ -22,7 +22,7 @@ function print(...)
|
||||
end
|
||||
end
|
||||
multi = {}
|
||||
multi.Version={1,6,1}
|
||||
multi.Version={1,7,1}
|
||||
multi.stage='stable'
|
||||
multi.__index = multi
|
||||
multi.Mainloop={}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user