Advertisement
DOGGYWOOF

Bootloader

Jan 6th, 2024
3
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. -- This is a simple ComputerCraft bootloader example
  2.  
  3. -- Define functions or load necessary modules here
  4. -- Example: os.loadAPI("myAPI")
  5.  
  6. -- Function to load the main program
  7. local function loadMainProgram()
  8. -- Replace 'myProgram' with your main program's name
  9. shell.run("myProgram")
  10. end
  11.  
  12. -- Main function for the bootloader
  13. local function bootloader()
  14. -- Display a welcome message or any initializations
  15. print("Welcome to my ComputerCraft bootloader!")
  16. -- Additional initialization code can be added here
  17.  
  18. -- Load the main program
  19. loadMainProgram()
  20. end
  21.  
  22. -- Start the bootloader
  23. bootloader()
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement