Skip to content

Commit

Permalink
Change import()'s fileRead func (fixes #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Aug 2, 2024
1 parent 11bd6c7 commit 438040d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion newmodels_reborn/scripts/core/shared_importfunc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function import()
if not f then
return error("Failed to open file.")
end
exportScriptString = fileRead(f, fileGetSize(f))
exportScriptString = fileGetContents(f, true) -- verifies checksum
fileClose(f)
if not exportScriptString or exportScriptString == "" then
return error("Failed to read file.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function import()
if not f then
return error("Failed to open file.")
end
exportScriptString = fileRead(f, fileGetSize(f))
exportScriptString = fileGetContents(f, true) -- verifies checksum
fileClose(f)
if not exportScriptString or exportScriptString == "" then
return error("Failed to read file.")
Expand Down

0 comments on commit 438040d

Please sign in to comment.