2020-02-15 20:01:48 +00:00
|
|
|
//Place this file in /Home and change
|
|
|
|
//anything you want.
|
|
|
|
|
|
|
|
U0 UserStartUp()
|
|
|
|
{//Run each time a user a spawned
|
2020-02-20 23:40:10 +00:00
|
|
|
DocTermNew;
|
|
|
|
Type("::/Doc/Start.DD");
|
2020-04-11 23:19:38 +01:00
|
|
|
LBts(&Fs->display_flags, DISPLAYf_SHOW);
|
2020-02-20 23:40:10 +00:00
|
|
|
WinToTop;
|
|
|
|
WinZBufUpdate;
|
|
|
|
Dir;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
2020-02-16 06:07:34 +00:00
|
|
|
U0 ServerStartUp()
|
|
|
|
{//Run each time a server task is spawned.
|
2020-02-20 23:40:10 +00:00
|
|
|
DocTermNew;
|
2020-04-11 23:19:38 +01:00
|
|
|
LBts(&Fs->display_flags, DISPLAYf_SHOW);
|
2020-02-20 23:40:10 +00:00
|
|
|
WinToTop;
|
|
|
|
WinZBufUpdate;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U0 StartUpTasks()
|
|
|
|
{
|
2020-07-24 00:07:09 +01:00
|
|
|
if (sys_boot_src.u16[0] != BOOT_SRC_RAM)
|
|
|
|
PopUpRunFile("::/Zenith/ZSplash.CC");
|
2020-02-20 23:40:10 +00:00
|
|
|
CTask *user = User;
|
|
|
|
WinToTop(user);
|
|
|
|
WinTileVert;
|
2020-06-05 00:05:55 +01:00
|
|
|
"Boot Time:%7.3fs\n", tS;
|
2020-04-11 23:19:38 +01:00
|
|
|
XTalk(user, "Cd;#include \"Once\";\n");
|
2020-06-05 00:05:55 +01:00
|
|
|
Silent; //no output to screen
|
2020-02-22 11:43:27 +00:00
|
|
|
ACInit("/*");
|
2020-02-20 23:40:10 +00:00
|
|
|
Silent(OFF); //no output to screen
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StartUpTasks;
|
|
|
|
|
2020-06-05 00:05:55 +01:00
|
|
|
"\nZenithOS V%0.2f\t%D %T\n\n", sys_os_version, sys_compile_time, sys_compile_time;
|