• Home
  • Install
  • Cosmos Website
  • Articles
  • Cosmos
  • X#
  • IL2CPU
Show / Hide Table of Contents
  • Getting Started
  • Compiler
  • Change Log
  • Debugger
    • Debug Commands
  • Installation
    • User Kit
    • Dev Kit
    • Running
  • Kernel
    • Levels
    • Plugs
    • Startup
    • OnBoot
    • Graphics
    • Virtual File System
    • Network
    • Resource Files
    • Memory Management and Garbage Collection
    • Audio
  • Reference
    • x86
  • Tests
    • Test Runner

OnBoot

If you need to disable drivers because you are developing your own, or in some cases just don't need them, you may do so by adding the OnBoot method to your kernel. For now, you can disable 3 drivers and disable a part of a driver, an example would be:

protected override void OnBoot() 
{
    Sys.Global.Init(GetTextScreen(),true,true,true,false);
}

In that example, we specify that the Mousewheel is enabled, the PS2controller is loaded, network drivers are being loaded and the IDE controller is disabled. this is helpful if you intend on developing your own IDE controller, the order of the booleans is as stated above: Mousewheel PS2Controller Network Drivers IDE Controller

Last updated on 24 March 2024.

  • Improve this Doc
☀
☾
In This Article
Back to top
☀
☾