本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
izaya
/
OC-PsychOS2
镜像来自
https://git.shadowkat.net/izaya/OC-PsychOS2.git
關注
1
收藏
1
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
service/tape-iofs.lua
added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
pull/1/head
XeonSquared
4 年之前
父節點
8e3ee7bcb2
當前提交
77ceb65be6
共有
1 個檔案被更改
,包括
8 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
service/tape-iofs.lua
+ 8
- 0
service/tape-iofs.lua
查看文件
@@ -0,0 +1,8 @@
local counter = 0
for addr in component.list("tape_drive") do
iofs.register("tape"..tonumber(counter),function()
local tape = component.proxy(addr)
return tape.read, tape.write, function() end, tape.seek
end)
counter = counter + 1
end
Write
Preview
Loading…
取消
儲存