Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This is a simple ComputerCraft bootloader example
- -- Define functions or load necessary modules here
- -- Example: os.loadAPI("myAPI")
- -- Function to load the main program
- local function loadMainProgram()
- -- Replace 'myProgram' with your main program's name
- shell.run("myProgram")
- end
- -- Main function for the bootloader
- local function bootloader()
- -- Display a welcome message or any initializations
- print("Welcome to my ComputerCraft bootloader!")
- -- Additional initialization code can be added here
- -- Load the main program
- loadMainProgram()
- end
- -- Start the bootloader
- bootloader()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement