mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-22 03:54:20 -05:00
made liblz16 happier on OpenOS when decompressing smaller files
This commit is contained in:
parent
2707ecc155
commit
6f1b673bec
@ -13,7 +13,7 @@ local function readBuffer(fi)
|
|||||||
if len < 1 then
|
if len < 1 then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
coroutine.yield()
|
if os.sleep then os.sleep(0) else coroutine.yield() end
|
||||||
return lz.decompress(fi:read(len))
|
return lz.decompress(fi:read(len))
|
||||||
end
|
end
|
||||||
function stream.close()
|
function stream.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user