CultistaDeCrocs

atualizarFloppy.lua

Mar 19th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. require("bibliotecas.atari")
  2.  
  3. function removeArquivos()
  4. print("Removendo arquivos do disco...")
  5.  
  6. if not shell.run("rm", "./disk/*") then
  7. printCor("Falha em remover arquivos.", colors.red)
  8. os.exit()
  9. end
  10. end
  11.  
  12. function copiaProgramas()
  13. print("Copiando programas nativos...")
  14.  
  15. if not shell.run("cp", "./*.lua", "./disk") then
  16. printCor("Falha em copiar programas.", colors.red)
  17. os.exit()
  18. end
  19. end
  20.  
  21. function copiaBibliotecas()
  22. print("Copiando bibliotecas...")
  23.  
  24. if not shell.run("cp", "./bibliotecas", "./disk") then
  25. printCor("Falha em copiar bibliotecas.", colors.red)
  26. os.exit()
  27. end
  28. end
  29.  
  30. removeArquivos()
  31. copiaProgramas()
  32. copiaBibliotecas()
  33. printCor("Sucesso!", colors.green)
Advertisement
Add Comment
Please, Sign In to add comment