A TempleOS distro for heretics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
763 B

//This is executed by the Adam task at boot.
//See $LK,"Adam Start-up",A="FF:::/Kernel/KMain.HC,\"StartOS"$.
#help_index "Compiler/Directive"
public extern I8i Option(I64i num,I8i val);
Option(0,0); //(0,0)=EchoOff (0,1)=EchoOn
#include "/Kernel/KernelA.HH"
#include "/Compiler/CompilerA.HH"
#include "/Kernel/KernelB.HH"
#include "/Kernel/KernelC.HH"
#include "/Compiler/CompilerB.HH"
Option(OPTf_WARN_PAREN,ON);
Option(OPTf_WARN_DUP_TYPES,ON);
HashTablePurge(adam_task->hash_table);
#include "/Adam/MakeAdam"
//Dbg("Type 'G;'");
DocTermNew;
//Raw(ON); -- this breaks inputs in KCfg
WinVert(2,10);
if (DrvIsWritable)
DirMk("/Tmp"); //Good to have a Tmp
DirMk("/Home");
DirMk("/0000Boot");
#include "/Adam/Opt/Boot/MakeBoot"
#include "/Misc/DoDistro"