Advertisement
mr_arte

fahrmanager.lua

May 12th, 2022
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. -- ##### Hauptprogramm
  2.  
  3. while true do
  4.     if fs.exists("disk/") then
  5.         data = fs.list("disk/*.lua")
  6.         prog = data[1]
  7.         print(prog)
  8.         shell.run(prog)
  9.         sleep(0.1)
  10.         disk.eject("top")
  11.     end
  12.  sleep(0.5)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement