Merge pull request #4 from zhengying/master

Fixed the missing return value 'r' in File:read.
This commit is contained in:
Engineer Smith
2024-05-02 20:30:07 +01:00
committed by GitHub

View File

@@ -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()