Marlingaming

Heimbriech Tablet OS - Starting Program

Sep 8th, 2021 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. --this file is the start file, and will never receive an update, it relies solely on the data being the same to ensure a safe and reliable start
  4. start()
  5.  
  6. function start()
  7. local h = fs.open(settings.get("SystemDefiner"),"r")
  8. local BootFile = h.readLine(2)
  9. shell.run(BootFile)
  10. end
  11. os.pullEvent = oldPull
Add Comment
Please, Sign In to add comment