Skip to main content

drivers

Drivers are a very specific thing in sludgeos that are the backbone of the system

so you might be wondering how you can make them and load them into boot

dont you worry! this tutorial will cover most of the things

how to actually make them

to start, make a file (most drivers end in .sys so please use it) in the bootdisk somewhere preferably in the /drivers folder

after that lets explain what apis are exposed

APIS


_DEV.INPUT

_DEV.INPUT

is the input passed with the .input() call


_DEV.DEVICE

_DEV.DEVICE

a reference to the "device" object in which you can define functions and other fields


how to load them

all the loading happens in sludge.cfg with a simple parameter

DEVICE=name,path,[autoload]

so a template driver would look like

DEVICE=test,bd:/drivers/test.sys,1

hope this tutorial helped