mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-03 18:42:53 +00:00
Fix save() sPath param.
This commit is contained in:
parent
3b7b845930
commit
463635a459
@ -228,7 +228,7 @@ end
|
|||||||
-- @see settings.load
|
-- @see settings.load
|
||||||
function save(sPath)
|
function save(sPath)
|
||||||
expect(1, sPath, "string", "nil")
|
expect(1, sPath, "string", "nil")
|
||||||
local file = fs.open(".settings", "w")
|
local file = fs.open(sPath or ".settings", "w")
|
||||||
if not file then
|
if not file then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user