Yet another attempt...

This commit is contained in:
Robin Wellner 2016-02-23 14:42:27 +01:00
parent d6ac0e2636
commit 4989dbf403

View File

@ -1,6 +1,6 @@
local ffi = require 'ffi'
love = {filesystem = {newFileData = function()
_G.love = {filesystem = {newFileData = function()
return {getPointer = function()
local buf = ffi.new("uint8_t[?]", #love.s)
ffi.copy(buf, love.s, #love.s)
@ -8,7 +8,7 @@ love = {filesystem = {newFileData = function()
end, getSize = function()
return #love.s
end}
end, write = function(fname, s)
end, write = function(_, s)
love.s = s
end}}