Lua io: fix read mode opening by actually setting readable attribute

This commit is contained in:
ihaveahax 2026-03-26 21:56:22 -05:00 committed by d0k3
parent 53cafcb66d
commit d6c537a626

View File

@ -102,6 +102,7 @@ function file.new(filename, mode)
of._stat = stat of._stat = stat
-- this is so i can adjust the size when data is written -- this is so i can adjust the size when data is written
of._size = stat.size of._size = stat.size
of._readable = true
end end
debugf("returning of") debugf("returning of")
return of return of