This commit is contained in:
Grump
2020-05-11 09:57:16 +02:00
parent fc5152860e
commit db63f71fe9
2 changed files with 3 additions and 4 deletions

View File

@@ -301,10 +301,9 @@ function nativefs.newFileData(filepath)
local ok, err = f:open('r')
if not ok then return nil, err end
local data, err = f:read()
local data, err = f:read('data', 'all')
f:close()
if not data then return nil, err end
return love.filesystem.newFileData(data, filepath)
return data, err
end
function nativefs.mount(archive, mountPoint, appendToPath)