ZealOS/src/Once.CC
xmm15 889d97383d 2 Spaces -> 1 Tab (4 spaced) for indentation
Fixed PCILookUpSingle code for this change
EdCodeTools reindent needs to be updated
2020-02-20 17:40:10 -06:00

54 lines
1.1 KiB
HolyC
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//Place this file in /Home and change
//anything you want.
//This file is executed by the
//first terminal window upon start-up.
//See $LK,"Once",A="FF:~/HomeSys.CC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$.
//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;
RunFile("::/Misc/OSInstall",,TRUE);
}
if (FileFind("::/Misc/Tour")) {
"\nTake Tour";
if (YorN) {
DocBottom;
Cd("::/Misc/Tour");
InFile("Tour");
}
}
break;
case BOOT_SRC_RAM:
case BOOT_SRC_HARDDRIVE:
"$$PURPLE$$$$TX+CX,\"Tip of the Day\"$$$$FG$$\n";
TipOfDay;
// Type("::/Doc/Customize.DD");
// if (FileFind("::/Misc/Tour")) {
// "\nTake Tour";
// if (YorN) {
// DocBottom;
// Cd("::/Misc/Tour");
// InFile("Tour");
// }
// }
break;
}
}
Tmp;