parent
99d5f95757
commit
a8172db8f9
|
@ -47,9 +47,11 @@ function()
|
|||
local offset = read32()
|
||||
local length = read32()
|
||||
local title = drive.read(117)
|
||||
print(string.format("%d: %d + %d", i, offset, length))
|
||||
if length > 0 then
|
||||
print(string.format("%d: %d + %d %s", i, offset, length, title))
|
||||
end
|
||||
table.insert(table_of_contents, {
|
||||
title = length and title or nil,
|
||||
title = length > 0 and title or nil,
|
||||
offset = offset,
|
||||
length = length,
|
||||
ending = offset + length
|
||||
|
@ -66,11 +68,13 @@ function()
|
|||
local tape_present = drive.isReady()
|
||||
if tape_present ~= tape_was_present then
|
||||
os.queueEvent("tape_present", tape_present)
|
||||
tape_was_present = tape_present
|
||||
end
|
||||
|
||||
local drive_state = drive.getState()
|
||||
if drive_old_state ~= drive_state then
|
||||
os.queueEvent("drive_state", drive_state)
|
||||
drive_old_state = drive_state
|
||||
end
|
||||
|
||||
os.sleep(0.25)
|
||||
|
|
Loading…
Reference in New Issue