Advertisement
Marlingaming

Aperture Science OS System - OS Deletion Handler

Sep 16th, 2021 (edited)
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. --APERTURE OS DELETION HANDLER
  2. --this program deletes all Programs relating to Aperture os and all files also
  3. --this program is for Minecraft 1.16.5, CC Tweaked
  4. function DeleteOS()
  5. --Programs
  6. fs.delete("startup")
  7. fs.delete("ApertureOS_Boot")
  8. fs.delete("ApertureOS_LoginManager")
  9. fs.delete("ApertureOS_Base")
  10. fs.delete("ApertureOS_UpdateHandler")
  11. fs.delete("ApertureOS_ApplicationMenu")
  12. fs.delete("ApertureOS_SettingsMenu")
  13. fs.delete("ApertureOS_ClientConsole")
  14. fs.delete("ShutdownPrompt")
  15. fs.delete("ApertureOS_SecurityCheck")
  16. fs.delete("C_Pastebin")
  17. fs.delete("setup")
  18.  
  19. --Logs
  20.  
  21. --System Files
  22. shell.run("pastebin","run","Uj9cA48M") --File Deletion Handler
  23. --Stored Data
  24.  
  25. shell.run("pastebin","get","rXkWAyZC","startup) --creates a new startup file that starts the Reinstall Prompt.
  26. os.reboot()
  27. end
  28.  
  29. term.clear()
  30. term.scroll()
  31. term.setCursorPos(1,1)
  32. print("do you really want to Delete Aperture OS? all files will be deleted.")
  33. print("y/n")
  34. while true do
  35. local event,key = os.pullEvent("key")
  36. if key == keys.y then
  37. DeleteOS()
  38. break
  39. elseif key == keys.n then
  40. shell.run("ApertureOS_Base")
  41. break
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement