This commit is contained in:
2025-06-15 20:08:54 -04:00
parent 664bc825dc
commit 92ce09ad68

View File

@@ -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