mirror of
https://github.com/EngineerSmith/nativefs.git
synced 2025-11-08 23:15:02 +00:00
cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user