From 92ce09ad680f55f9ad722e55d74a76baf78c8d3d Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sun, 15 Jun 2025 20:08:54 -0400 Subject: [PATCH] updated --- speaker_driver.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/speaker_driver.lua b/speaker_driver.lua index 89cfffb..49f8cbb 100644 --- a/speaker_driver.lua +++ b/speaker_driver.lua @@ -35,21 +35,28 @@ end local function createSoundFile(fileName) - local placeholder = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/placeholder.dfpwm" + --local placeholder = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/placeholder.dfpwm" local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/" + local name = getFileName(fileName) local fullPath = baseRoute .. name shell.execute("rm", name) - shell.execute("wget", fullPath, name) + --shell.execute("wget", fullPath, name) + + --print("Added placeholder sound file: " .. name) local response = http.get(fullPath) + + print("Downloading sound file: " .. name) + local fileData = response.readAll() local file = fs.open(name,"w") file.write(fileData) file.close() + response.close() end