CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

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