improve logging for sound file creation and startup process
This commit is contained in:
@@ -86,10 +86,10 @@ local function createSoundFile(fileName)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
if event == "http_success" then
|
if event == "http_success" then
|
||||||
print("Waiting for response from: " .. url)
|
print("Waiting for response for " .. fileName)
|
||||||
end
|
end
|
||||||
until event == "http_success" and url == fullPath
|
until event == "http_success" and url == fullPath
|
||||||
|
print("Recieved response!")
|
||||||
local fileData = handle.readAll()
|
local fileData = handle.readAll()
|
||||||
local file = fs.open(name,"w")
|
local file = fs.open(name,"w")
|
||||||
|
|
||||||
@@ -119,6 +119,7 @@ local function startup()
|
|||||||
|
|
||||||
for i, item in ipairs(sounds) do
|
for i, item in ipairs(sounds) do
|
||||||
addSoundFile(item.fileName)
|
addSoundFile(item.fileName)
|
||||||
|
print("Added sound file: " .. item.fileName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user