mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-06-07 08:14:48 +00:00
ZenithOS
This commit is contained in:
parent
d972bba9ee
commit
6873e49b48
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
src/Kernel.BIN.C
|
|
Binary file not shown.
@ -4,7 +4,7 @@ U0 LoadDocDefines()
|
|||||||
{
|
{
|
||||||
CBinFile *bfh=mem_boot_base-sizeof(CBinFile);
|
CBinFile *bfh=mem_boot_base-sizeof(CBinFile);
|
||||||
|
|
||||||
DefinePrint("DD_OS_NAME_VERSION","TempleOS V%0.2f",sys_os_version);
|
DefinePrint("DD_OS_NAME_VERSION","ZenithOS V%0.2f",sys_os_version);
|
||||||
DefinePrint("DD_TEMPLEOS_AGE","%0.1f",
|
DefinePrint("DD_TEMPLEOS_AGE","%0.1f",
|
||||||
(Now-Str2Date("8/1/2003"))/ToF64(1<<32)/CDATE_YEAR_DAYS);
|
(Now-Str2Date("8/1/2003"))/ToF64(1<<32)/CDATE_YEAR_DAYS);
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ public I64 PopUpColor(U8 *header=NULL,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public I64 PopUpColorLighting(U8 *header=NULL)
|
public I64 PopUpColorLighting(U8 *header=NULL)
|
||||||
{//Chooser for std TempleOS $LK,"DCLighting",A="MN:DCLighting"$() color.
|
{//Chooser for std ZenithOS $LK,"DCLighting",A="MN:DCLighting"$() color.
|
||||||
I64 i;
|
I64 i;
|
||||||
CDoc *doc=DocNew;
|
CDoc *doc=DocNew;
|
||||||
if (header)
|
if (header)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#help_index "DolDoc/Link"
|
#help_index "DolDoc/Link"
|
||||||
|
|
||||||
/* See $LK,"TempleOS Link Types",A="MN:ST_LINK_TYPES"$.
|
/* See $LK,"ZenithOS Link Types",A="MN:ST_LINK_TYPES"$.
|
||||||
"filename"
|
"filename"
|
||||||
"FI:filename"
|
"FI:filename"
|
||||||
"FA:haystack_filename,needle_anchor_str"
|
"FA:haystack_filename,needle_anchor_str"
|
||||||
|
@ -4,7 +4,7 @@ Cd(__DIR__);;
|
|||||||
#help_file "::/Doc/DolDoc"
|
#help_file "::/Doc/DolDoc"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TempleOS DolDoc's can have "cursor movement" cmds which can move the cursor up
|
ZenithOS DolDoc's can have "cursor movement" cmds which can move the cursor up
|
||||||
the scrn and layer on existing text.It can also have callback funs which
|
the scrn and layer on existing text.It can also have callback funs which
|
||||||
supply live, changing text.For these reasons, you can't assume you know
|
supply live, changing text.For these reasons, you can't assume you know
|
||||||
where the vis portion of the document is and must process much
|
where the vis portion of the document is and must process much
|
||||||
|
@ -323,7 +323,7 @@ public U0 DrawWaitMs(CDC *dc,I64 x,I64 y)
|
|||||||
|
|
||||||
#help_index "Graphics/GR Files;Graphics/Scrn"
|
#help_index "Graphics/GR Files;Graphics/Scrn"
|
||||||
public Bool GRScrnCaptureRead(U8 *filename,CDC *dc=gr.dc,I64 x=0,I64 y=0)
|
public Bool GRScrnCaptureRead(U8 *filename,CDC *dc=gr.dc,I64 x=0,I64 y=0)
|
||||||
{//GrBlot TempleOS GR File to dc,x,y.
|
{//GrBlot ZenithOS GR File to dc,x,y.
|
||||||
CDC *dc2;
|
CDC *dc2;
|
||||||
if (dc2=GRRead(filename)) {
|
if (dc2=GRRead(filename)) {
|
||||||
dc->color=ROP_EQU;
|
dc->color=ROP_EQU;
|
||||||
@ -335,7 +335,7 @@ public Bool GRScrnCaptureRead(U8 *filename,CDC *dc=gr.dc,I64 x=0,I64 y=0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
public I64 GRScrnCaptureWrite(U8 *filename,Bool include_zoom=TRUE)
|
public I64 GRScrnCaptureWrite(U8 *filename,Bool include_zoom=TRUE)
|
||||||
{//Capture scrn to a TempleOS GR File.
|
{//Capture scrn to a ZenithOS GR File.
|
||||||
I64 size;
|
I64 size;
|
||||||
CDC *dc=DCScrnCapture(include_zoom);
|
CDC *dc=DCScrnCapture(include_zoom);
|
||||||
size=GRWrite(filename,dc,DCSF_COMPRESSED|DCSF_PALETTE_GET);
|
size=GRWrite(filename,dc,DCSF_COMPRESSED|DCSF_PALETTE_GET);
|
||||||
|
@ -92,7 +92,7 @@ public U0 DCLighting(CDC *dc,
|
|||||||
//gives an illumination number.
|
//gives an illumination number.
|
||||||
//65536*65536>>16=65536
|
//65536*65536>>16=65536
|
||||||
|
|
||||||
//TempleOS will generate a random U16
|
//ZenithOS will generate a random U16
|
||||||
//and compare to dither_probability_u16 and
|
//and compare to dither_probability_u16 and
|
||||||
//will pick from two colors.
|
//will pick from two colors.
|
||||||
//Probability dithering does not work with thick>1 at this time.
|
//Probability dithering does not work with thick>1 at this time.
|
||||||
@ -381,7 +381,7 @@ public CDC *DCLoad(U8 *src,I64 *_size=NULL,CTask *task=NULL)
|
|||||||
COLORS_NUM*sizeof(CBGR48)+sizeof(CArcCtrl)+GR_WIDTH*GR_HEIGHT)
|
COLORS_NUM*sizeof(CBGR48)+sizeof(CArcCtrl)+GR_WIDTH*GR_HEIGHT)
|
||||||
|
|
||||||
public I64 GRWrite(U8 *filename,CDC *dc,I64 dcsf_flags=DCSF_COMPRESSED)
|
public I64 GRWrite(U8 *filename,CDC *dc,I64 dcsf_flags=DCSF_COMPRESSED)
|
||||||
{//TempleOS GR File.
|
{//ZenithOS GR File.
|
||||||
I64 size;
|
I64 size;
|
||||||
U8 *st=ExtDft(filename,"GR"),
|
U8 *st=ExtDft(filename,"GR"),
|
||||||
*src=DCSave(dc,&size,dcsf_flags);
|
*src=DCSave(dc,&size,dcsf_flags);
|
||||||
@ -392,7 +392,7 @@ public I64 GRWrite(U8 *filename,CDC *dc,I64 dcsf_flags=DCSF_COMPRESSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CDC *GRRead(U8 *filename,CTask *task=NULL)
|
public CDC *GRRead(U8 *filename,CTask *task=NULL)
|
||||||
{//TempleOS GR File.
|
{//ZenithOS GR File.
|
||||||
CDC *dc=NULL;
|
CDC *dc=NULL;
|
||||||
U8 *st=ExtDft(filename,"GR"),
|
U8 *st=ExtDft(filename,"GR"),
|
||||||
*src=FileRead(st);
|
*src=FileRead(st);
|
||||||
|
@ -48,10 +48,10 @@ BDVD_DAP_BUF: DU16 0,0;
|
|||||||
BDVD_DAP_BLK: DU64 0;
|
BDVD_DAP_BLK: DU64 0;
|
||||||
|
|
||||||
BDVD_TEMPLEOS_MSG:
|
BDVD_TEMPLEOS_MSG:
|
||||||
DU8 "LoadingTempleOS",0;
|
DU8 "LoadingZenithOS",0;
|
||||||
|
|
||||||
BDVD_NOT64_MSG:
|
BDVD_NOT64_MSG:
|
||||||
DU8 "TempleOS requires a 64-bit capable processor.\n\r",0;
|
DU8 "ZenithOS requires a 64-bit capable processor.\n\r",0;
|
||||||
|
|
||||||
//These get patched.
|
//These get patched.
|
||||||
BDVD_BLK_LO:: DU16 0;
|
BDVD_BLK_LO:: DU16 0;
|
||||||
|
@ -53,9 +53,9 @@ public U0 BootMHDZero(U8 dst_drv)
|
|||||||
{//Set MBR of disk with dst partition to zero.
|
{//Set MBR of disk with dst partition to zero.
|
||||||
|
|
||||||
//This is dangerous!!
|
//This is dangerous!!
|
||||||
//The TempleOS partitioner doesn't play well
|
//The ZenithOS partitioner doesn't play well
|
||||||
//with other operating systems at this time and you need
|
//with other operating systems at this time and you need
|
||||||
//to do this on a drive partitioned by TempleOS
|
//to do this on a drive partitioned by ZenithOS
|
||||||
//if you wish to partition with another operating system.
|
//if you wish to partition with another operating system.
|
||||||
CBlkDev *bd=Let2BlkDev(dst_drv);
|
CBlkDev *bd=Let2BlkDev(dst_drv);
|
||||||
CMasterBoot mbr;
|
CMasterBoot mbr;
|
||||||
@ -99,7 +99,7 @@ public Bool BootMHDIns(U8 drv_let,U8 *drv_lst=NULL)
|
|||||||
_q=BMHD2_BLK_ARRAY;
|
_q=BMHD2_BLK_ARRAY;
|
||||||
MemSet(_q,0,sizeof(I64)*8);
|
MemSet(_q,0,sizeof(I64)*8);
|
||||||
menu_ptr=BMHD2_BOOT_MSG;
|
menu_ptr=BMHD2_BOOT_MSG;
|
||||||
StrPrint(menu_ptr,"\n\r\n\rTempleOS Boot Loader\n\r\n\r");
|
StrPrint(menu_ptr,"\n\r\n\rZenithOS Boot Loader\n\r\n\r");
|
||||||
j=0;
|
j=0;
|
||||||
if (FileFind(BOOT_DIR_OLDMBR_BIN_C,&de,FUF_JUST_FILES)) {
|
if (FileFind(BOOT_DIR_OLDMBR_BIN_C,&de,FUF_JUST_FILES)) {
|
||||||
Free(de.full_name);
|
Free(de.full_name);
|
||||||
|
@ -72,7 +72,7 @@ U0 RedSeaISO9660(U8 *iso_filename,U8 drv_let)
|
|||||||
FillU32Palindrome(&iso_pri->vol_space_size,iso_size);
|
FillU32Palindrome(&iso_pri->vol_space_size,iso_size);
|
||||||
FillU32Palindrome(&iso_pri->root_dir_record,dv->root_clus);
|
FillU32Palindrome(&iso_pri->root_dir_record,dv->root_clus);
|
||||||
iso_pri->file_structure_version=1;
|
iso_pri->file_structure_version=1;
|
||||||
StrCpy(iso_pri->publisher_id,"TempleOS RedSea");
|
StrCpy(iso_pri->publisher_id,"ZenithOS RedSea");
|
||||||
|
|
||||||
MemCpy(iso_sup,iso_pri,DVD_BLK_SIZE);
|
MemCpy(iso_sup,iso_pri,DVD_BLK_SIZE);
|
||||||
iso_sup->type=ISOT_SUPPLEMENTARY_DESC;
|
iso_sup->type=ISOT_SUPPLEMENTARY_DESC;
|
||||||
@ -95,7 +95,7 @@ U0 RedSeaISO9660(U8 *iso_filename,U8 drv_let)
|
|||||||
FBlkWrite(out_file,iso_term,19<<2,4);
|
FBlkWrite(out_file,iso_term,19<<2,4);
|
||||||
|
|
||||||
et->w[0]=1;
|
et->w[0]=1;
|
||||||
StrCpy(&et->w[2],"TempleOS");
|
StrCpy(&et->w[2],"ZenithOS");
|
||||||
et->w[15]=0xAA55;
|
et->w[15]=0xAA55;
|
||||||
j=0;
|
j=0;
|
||||||
for (i=0;i<16;i++) //Checksum
|
for (i=0;i<16;i++) //Checksum
|
||||||
|
@ -218,8 +218,8 @@ Frame imgs[LAST_STOPPED_DRIBBLING+1]={
|
|||||||
{{$IB,"<22>",BI=22$,$IB,"<23>",BI=23$},DRIBBLE_T/STOPPED_DRIBBLING_IMGS_NUM},
|
{{$IB,"<22>",BI=22$,$IB,"<23>",BI=23$},DRIBBLE_T/STOPPED_DRIBBLING_IMGS_NUM},
|
||||||
};
|
};
|
||||||
|
|
||||||
RegDft("TempleOS/KeepAway","I64 best_score0=0,best_score1=9999;\n");
|
RegDft("ZenithOS/KeepAway","I64 best_score0=0,best_score1=9999;\n");
|
||||||
RegExe("TempleOS/KeepAway");
|
RegExe("ZenithOS/KeepAway");
|
||||||
|
|
||||||
F64 game_t_end,foul_t_end;
|
F64 game_t_end,foul_t_end;
|
||||||
I64 score0,score1;
|
I64 score0,score1;
|
||||||
@ -702,7 +702,7 @@ ka_done: //Don't goto out of try
|
|||||||
PutExcept;
|
PutExcept;
|
||||||
SettingsPop;
|
SettingsPop;
|
||||||
MenuPop;
|
MenuPop;
|
||||||
RegWrite("TempleOS/KeepAway","I64 best_score0=%d,best_score1=%d;\n",
|
RegWrite("ZenithOS/KeepAway","I64 best_score0=%d,best_score1=%d;\n",
|
||||||
best_score0,best_score1);
|
best_score0,best_score1);
|
||||||
}
|
}
|
||||||
|