mirror of
https://github.com/gvx/bitser.git
synced 2024-11-24 06:54:20 +00:00
Yet another attempt...
This commit is contained in:
parent
d6ac0e2636
commit
4989dbf403
@ -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}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user