From 231ddbca416aed650b2e5ef649ef4818da4202be Mon Sep 17 00:00:00 2001 From: zhengying Date: Sun, 21 Apr 2024 11:53:36 +0800 Subject: [PATCH] Fixed the missing return value 'r' in File:read. --- nativefs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativefs.lua b/nativefs.lua index 72fe2b6..d085274 100644 --- a/nativefs.lua +++ b/nativefs.lua @@ -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()