mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-26 04:57:24 -05:00
Compare commits
No commits in common. "1ef6d5db9687886dad4fc8dbdcdd30c03cff2d21" and "2707ecc155b7ce0f6c711f5277a6046227fbee3a" have entirely different histories.
1ef6d5db96
...
2707ecc155
@ -13,7 +13,7 @@ local function readBuffer(fi)
|
|||||||
if len < 1 then
|
if len < 1 then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
if os.sleep then os.sleep(0) else coroutine.yield() end
|
coroutine.yield()
|
||||||
return lz.decompress(fi:read(len))
|
return lz.decompress(fi:read(len))
|
||||||
end
|
end
|
||||||
function stream.close()
|
function stream.close()
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
local fsmanager = {}
|
|
||||||
local function mount(addr)
|
local function mount(addr)
|
||||||
dest = component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3)
|
dest = component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3)
|
||||||
dest = "/"..dest
|
dest = "/"..dest
|
||||||
@ -13,7 +12,7 @@ for addr, _ in component.list("filesystem") do
|
|||||||
mount(addr)
|
mount(addr)
|
||||||
end
|
end
|
||||||
|
|
||||||
function fsmanager.start()
|
function start()
|
||||||
return os.spawn(function()
|
return os.spawn(function()
|
||||||
while true do
|
while true do
|
||||||
local tE = {coroutine.yield()}
|
local tE = {coroutine.yield()}
|
||||||
@ -25,5 +24,3 @@ function fsmanager.start()
|
|||||||
end
|
end
|
||||||
end,"fsmanager")
|
end,"fsmanager")
|
||||||
end
|
end
|
||||||
|
|
||||||
return fsmanager
|
|
||||||
|
Loading…
Reference in New Issue
Block a user