| 1 |
/* |
| 2 |
https://raw.githubusercontent.com/cia-foundation/TempleOS/archive/Once.HC |
| 3 |
*/ |
| 4 |
//Place this file in /Home and change |
| 5 |
//anything you want. |
| 6 |
|
| 7 |
//This file is executed by the |
| 8 |
//first terminal window upon start-up. |
| 9 |
//See $LK,"Once",A="FF:~/HomeSys.HC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. |
| 10 |
|
| 11 |
//Delete the rest from this file. |
| 12 |
|
| 13 |
U0 Tmp() |
| 14 |
{ |
| 15 |
OnceExe; |
| 16 |
switch (sys_boot_src.u16[0]) { |
| 17 |
case BOOT_SRC_ROM: |
| 18 |
"Continue booting hard drive "; |
| 19 |
if (YorN) { |
| 20 |
DocBottom; |
| 21 |
ExeFile("C:/Home/Once"); |
| 22 |
} |
| 23 |
break; |
| 24 |
case BOOT_SRC_DVD: |
| 25 |
"\nIf you answer 'No' you can play with\n" |
| 26 |
"the live CD without installing.\n\n" |
| 27 |
"Install onto hard drive "; |
| 28 |
if (YorN) { |
| 29 |
DocBottom; |
| 30 |
RunFile("::/Misc/OSInstall",,TRUE); |
| 31 |
} |
| 32 |
if (FileFind("::/Misc/Tour")) { |
| 33 |
"\nTake Tour"; |
| 34 |
if (YorN) { |
| 35 |
DocBottom; |
| 36 |
Cd("::/Misc/Tour"); |
| 37 |
InFile("Tour"); |
| 38 |
} |
| 39 |
} |
| 40 |
break; |
| 41 |
/* case BOOT_SRC_RAM: |
| 42 |
case BOOT_SRC_HARDDRV: |
| 43 |
"$$PURPLE$$$$TX+CX,\"Tip of the Day\"$$$$FG$$\n"; |
| 44 |
TipOfDay; |
| 45 |
Type("::/Doc/Customize.DD"); |
| 46 |
if */ (FileFind("::/Misc/Tour")) { |
| 47 |
"\nTake Tour"; |
| 48 |
if (YorN) { |
| 49 |
DocBottom; |
| 50 |
Cd("::/Misc/Tour"); |
| 51 |
InFile("Tour"); |
| 52 |
} |
| 53 |
} |
| 54 |
break; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
Tmp; |