mirror of
https://github.com/EngineerSmith/nativefs.git
synced 2025-11-08 23:15:02 +00:00
Merge pull request #4 from zhengying/master
Fixed the missing return value 'r' in File:read.
This commit is contained in:
@@ -117,7 +117,7 @@ function File:read(containerOrBytes, bytes)
|
||||
if container == 'data' then
|
||||
-- FileData from ByteData requires LÖVE 11.4+
|
||||
local ok, fd = pcall(love.filesystem.newFileData, data, self._name)
|
||||
if ok then return fd end
|
||||
if ok then return fd, r end
|
||||
end
|
||||
|
||||
local str = data:getString()
|
||||
|
||||
Reference in New Issue
Block a user