This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Once.HC
95 lines (91 loc) · 2.19 KB
/
Once.HC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//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.HC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$.
//Delete the rest from this file.
U0 Tmp()
{
I64 old_silent;
OnceExe;
if(!DrvMounted('C')&&!DrvMounted('T')&&!AHCIMode)
{
old_silent=Silent;
while (ms_hard.install_in_progress) Yield;
SwitchToAHCI;
Silent(old_silent);
}
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_HARDDRV:
if ((!Bt(&sys_run_level,RLf_VGA)) && !GR_TEXT_MODE)
{
"Welcome to TinkerOS text mode!\n\n";
"It appears you are here unexpectedly.\n\n";
"This is because the video resolution\n";
"you selected is not supported by your\n";
"hardware (perhalps you selected the\n";
"wrong mode or changed your monitor\n"
,
"recently?).\n\n";
"If you are an advanced user you can\n";
"manually re-install the kernel and\n";
"change it using BootHDIns. Otherwise\n";
"perform a manual re-install of this\n";
"partition using a lower resolution.\n\n";
"For a quick fix to try 640x480\n";
"instead run Do640x480;\n\n";
}
else
{
"$$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;
}
}
//#exe { if (SNAILNET_NATIVE_DRIVER != NULL) StreamPrint("Netcfg;\n"); }
Tmp;