Don't add empty songs into ToC
This commit is contained in:
parent
42063e0271
commit
adcae533d0
|
@ -56,13 +56,15 @@ function()
|
||||||
for i = 1, 48 do
|
for i = 1, 48 do
|
||||||
local offset = read32()
|
local offset = read32()
|
||||||
local length = read32()
|
local length = read32()
|
||||||
local title = drive.read(117)
|
local title = drive.read(117):gsub("\x00", "")
|
||||||
table.insert(table_of_contents, {
|
if length > 0 then
|
||||||
title = length > 0 and title or nil,
|
table.insert(table_of_contents, {
|
||||||
offset = offset,
|
title = title,
|
||||||
length = length,
|
offset = offset,
|
||||||
ending = offset + length
|
length = length,
|
||||||
})
|
ending = offset + length
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue