1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-13 00:27:00 -05:00

actually handle append file modes

This commit is contained in:
XeonSquared 2023-06-07 00:12:15 +10:00
parent 1ef6d5db96
commit ddc2445104

View File

@ -54,7 +54,7 @@ function fs.open(path,mode) -- string string -- table -- Opens file *path* with
if mode:find("r") then
fobj.read = fread
end
if mode:find("w") then
if mode:find("w") or mode:find("a") then
fobj.write = fwrite
end
return fobj