ZealOS/src/Once.CC

53 lines
1 KiB
HolyC
Raw Normal View History

2020-02-15 20:01:48 +00:00
//Place this file in /Home and change
//anything you want.
//This file is executed by the
//first terminal window upon start-up.
2020-02-16 04:57:03 +00:00
//See $LK,"Once",A="FF:~/HomeSys.CC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$.
2020-02-15 20:01:48 +00:00
//Delete the rest from this file.
U0 Tmp()
{
OnceExe;
switch (sys_boot_src.u16[0])
{
case BOOT_SRC_ROM:
"Continue booting hard drive ";
if (YorN)
{
DocBottom;
ExeFile("C:/Home/Once");
}
break;
case BOOT_SRC_DVD:
"\nIf you answer 'No' you can play with\n"
"the live CD without installing.\n\n"
"Install onto hard drive ";
if (YorN)
{
DocBottom;
2021-07-02 09:24:53 +01:00
RunFile("::/Misc/OSInstall",, TRUE);
}
if (FileFind("::/Misc/Tour"))
{
"\nTake Tour";
if (YorN) {
DocBottom;
Cd("::/Misc/Tour");
InFile("Tour");
}
}
break;
case BOOT_SRC_HARDDRIVE:
case BOOT_SRC_RAM:
"$$PURPLE$$$$TX+CX,\"Tips of the Day\"$$$$FG$$\n";
TipOfDay;Sleep(60);
TipOfDay;
Type("::/Doc/Customize.DD");
break;
2020-02-15 20:01:48 +00:00
}
}
Tmp;