2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-12-31 03:21:33 +00:00
< meta name = "generator" content = "ZealOS V1.08" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-10-08 07:06:11 +01:00
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-04 23:11:34 +01:00
< a name = "l1" > < / a > < span class = cF0 > #< / span > < span class = cF1 > define< / span > < span class = cF0 > GRDIR_CLEAR < / span > < span class = cF3 > TRUE< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l2" > < / a > < / span > < span class = cF2 > //< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l3" > < / a > < / span > < span class = cF2 > //< / span > < span class = cF0 > < / span > < span class = cF2 > Set to TRUE if you want to clear< / span > < span class = cF0 >
< a name = "l4" > < / a > < / span > < span class = cF2 > //< / span > < span class = cF0 > < / span > < span class = cF2 > the DolDoc before each dir listing,< / span > < span class = cF0 >
< a name = "l5" > < / a > < / span > < span class = cF2 > //< / span > < span class = cF0 > < / span > < span class = cF2 > to make it look and work more< / span > < span class = cF0 >
< a name = "l6" > < / a > < / span > < span class = cF2 > //< / span > < span class = cF0 > < / span > < span class = cF2 > like a modern file manager.< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l7" > < / a >
< a name = "l8" > < / a >
2021-12-11 11:10:58 +00:00
< a name = "l9" > < / a > < / span > < span class = cFA > < 1> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 1> code files< / span > < span class = cF0 > < / span > < span class = cF2 > (.ZC)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l10" > < / a >
< a name = "l11" > < / a >
< a name = "l12" > < / a >
< a name = "l13" > < / a >
< a name = "l14" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l15" > < / a > < / span > < span class = cFA > < 2> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 2> header files< / span > < span class = cF0 > < / span > < span class = cF2 > (.HH)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l16" > < / a >
< a name = "l17" > < / a >
< a name = "l18" > < / a >
< a name = "l19" > < / a >
< a name = "l20" > < / a >
< a name = "l21" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l22" > < / a > < / span > < span class = cFA > < 3> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 3> directories< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l23" > < / a >
< a name = "l24" > < / a >
< a name = "l25" > < / a >
< a name = "l26" > < / a >
< a name = "l27" > < / a >
< a name = "l28" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l29" > < / a > < / span > < span class = cFA > < 4> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 4> disc files< / span > < span class = cF0 > < / span > < span class = cF2 > (.iso, .ISO, .ISO.C)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l30" > < / a >
< a name = "l31" > < / a >
< a name = "l32" > < / a >
< a name = "l33" > < / a >
< a name = "l34" > < / a >
< a name = "l35" > < / a >
< a name = "l36" > < / a >
< a name = "l37" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l38" > < / a > < / span > < span class = cFA > < 5> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 5> DolDoc files< / span > < span class = cF0 > < / span > < span class = cF2 > (.DD)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l39" > < / a >
< a name = "l40" > < / a >
< a name = "l41" > < / a >
< a name = "l42" > < / a >
< a name = "l43" > < / a >
< a name = "l44" > < / a >
< a name = "l45" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l46" > < / a > < / span > < span class = cFA > < 6> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 6> binary files< / span > < span class = cF0 > < / span > < span class = cF2 > (.BIN, .BIN.C)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l47" > < / a >
< a name = "l48" > < / a >
< a name = "l49" > < / a >
< a name = "l50" > < / a >
< a name = "l51" > < / a >
< a name = "l52" > < / a >
< a name = "l53" > < / a >
< a name = "l54" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l55" > < / a > < / span > < span class = cFA > < 7> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 7> InFiles< / span > < span class = cF0 > < / span > < span class = cF2 > (.IN)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l56" > < / a >
< a name = "l57" > < / a >
< a name = "l58" > < / a >
< a name = "l59" > < / a >
< a name = "l60" > < / a >
< a name = "l61" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l62" > < / a > < / span > < span class = cFA > < 8> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 8> text files< / span > < span class = cF0 > < / span > < span class = cF2 > (.TXT)< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l63" > < / a >
< a name = "l64" > < / a >
< a name = "l65" > < / a >
< a name = "l66" > < / a >
< a name = "l67" > < / a >
< a name = "l68" > < / a >
< a name = "l69" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l70" > < / a > < / span > < span class = cFA > < 9> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 > < / span > < span class = cF2 > // < 9> unknown filetype< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l71" > < / a >
< a name = "l72" > < / a >
< a name = "l73" > < / a >
< a name = "l74" > < / a >
< a name = "l75" > < / a >
< a name = "l76" > < / a >
< a name = "l77" > < / a >
< a name = "l78" > < / a >
2021-12-29 03:49:58 +00:00
< a name = "l79" > < / a > < / span > < span class = cFA > < 10> /* Graphics Not Rendered in HTML */< / span > < span class = cF0 >
< a name = "l80" > < / a >
< a name = "l81" > < / a >
< a name = "l82" > < / a >
< a name = "l83" > < / a >
< a name = "l84" > < / a >
< a name = "l85" > < / a > < / span > < span class = cF9 > CDocEntry< / span > < span class = cF0 > *GrDirSprite(< / span > < span class = cF9 > CDoc< / span > < span class = cF0 > *doc=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > *elems, < / span > < span class = cF1 > U8< / span > < span class = cF0 > *filename=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF9 > I64< / span > < span class = cF0 > align=-< / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l86" > < / a > { < / span > < span class = cF2 > // Draw a GrDir sprite into DolDoc: align arg is 0,1,2 for left,center,right.< / span > < span class = cF0 >
< a name = "l87" > < / a > < / span > < span class = cF2 > // make into either Link and PopUp, or Left-Macro,< / span > < span class = cF0 >
< a name = "l88" > < / a > < / span > < span class = cF2 > // so it can be left/right clicked just like the text links.< / span > < span class = cF0 >
< a name = "l89" > < / a > < / span > < span class = cF2 > // See < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Gr/GrSpritePlot.ZC.html#l501" > < span class = cF4 > DocSprite< / span > < / a > < span class = cF2 > .< / span > < span class = cF0 >
< a name = "l90" > < / a >
< a name = "l91" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > size;
< a name = "l92" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *st;
< a name = "l93" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > unlock;
< a name = "l94" > < / a > < / span > < span class = cF9 > CDocEntry< / span > < span class = cF0 > *doc_e;
< a name = "l95" > < / a > < / span > < span class = cF9 > CDocBin< / span > < span class = cF0 > *tmpb;
< a name = "l96" > < / a >
< a name = "l97" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!doc & & !< / span > < span class = cF7 > (< / span > < span class = cF0 > doc = < / span > < span class = cF5 > DocPut< / span > < span class = cF7 > )< / span > < span class = cF0 > || !elems)
< a name = "l98" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l99" > < / a >
< a name = "l100" > < / a > unlock = < / span > < span class = cF5 > DocLock< / span > < span class = cF0 > (doc);
< a name = "l101" > < / a > size = < / span > < span class = cF5 > SpriteSize< / span > < span class = cF0 > (elems);
< a name = "l102" > < / a > tmpb = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CDocBin< / span > < span class = cF7 > )< / span > < span class = cF0 > , doc-> mem_task);
< a name = "l103" > < / a > tmpb-> size = size;
< a name = "l104" > < / a > tmpb-> data = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size, doc-> mem_task);
< a name = "l105" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (tmpb-> data, elems, size);
< a name = "l106" > < / a > tmpb-> num = doc-> cur_bin_num;
< a name = "l107" > < / a > tmpb-> use_count = < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l108" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpb, doc-> bin_head.last);
< a name = "l109" > < / a >
< a name = "l110" > < / a >
< a name = "l111" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (align)
< a name = "l112" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l113" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > :
< a name = "l114" > < / a > < / span > < span class = cF6 > " \n$CM+LX-RE,LE=6$" < / span > < span class = cF0 > ;
< a name = "l115" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l116" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 > :
< a name = "l117" > < / a > < / span > < span class = cF6 > " $CM+CX-RE,LE=2$" < / span > < span class = cF0 > ;
< a name = "l118" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l119" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 > :
< a name = "l120" > < / a > < / span > < span class = cF6 > " $CM+RX-RE,LE=-1$" < / span > < span class = cF0 > ;
< a name = "l121" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l122" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-09-25 09:09:28 +01:00
< a name = "l123" > < / a >
2021-12-29 03:49:58 +00:00
< a name = "l124" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > IsDir< / span > < span class = cF7 > (< / span > < span class = cF0 > filename< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l125" > < / a > st = < / span > < span class = cF5 > MStrPrint< / span > < span class = cF0 > (< / span > < span class = cF6 > " $SP+L+PU,\" \" ,A=\" %s\" ,BI=%d$" < / span > < span class = cF0 > , filename, doc-> cur_bin_num++);
< a name = "l126" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l127" > < / a > st = < / span > < span class = cF5 > MStrPrint< / span > < span class = cF0 > (< / span > < span class = cF6 > " $SP+X,\" \" ,LM=\" Cd(\\\" %s\\\" );GrDir;\n\" ,BI=%d$" < / span > < span class = cF0 > , filename, doc-> cur_bin_num++);
< a name = "l128" > < / a >
< a name = "l129" > < / a > doc_e = < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " %s" < / span > < span class = cF0 > , st);
< a name = "l130" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st);
< a name = "l131" > < / a > doc_e-> bin_data = tmpb;
< a name = "l132" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (doc_e & & doc_e-> de_flags & < / span > < span class = cF3 > DOCEF_TAG< / span > < span class = cF0 > & & doc_e-> tag & & *doc_e-> tag)
< a name = "l133" > < / a > tmpb-> tag = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (doc_e-> tag, doc-> mem_task);
< a name = "l134" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (unlock)
< a name = "l135" > < / a > < / span > < span class = cF5 > DocUnlock< / span > < span class = cF0 > (doc);
< a name = "l136" > < / a >
< a name = "l137" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > doc_e;
< a name = "l138" > < / a > }
< a name = "l139" > < / a >
< a name = "l140" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > GrDir(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *files_find_mask=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > )
< a name = "l141" > < / a > {
< a name = "l142" > < / a > < / span > < span class = cF9 > CDirEntry< / span > < span class = cF0 > *tmpde1, *tmpde2;
< a name = "l143" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > res = < / span > < span class = cFE > 0< / span > < span class = cF0 > , i;
< a name = "l144" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *tag, *st,
< a name = "l145" > < / a > *tmpb, *tmpb0, *tmpb1, *tmpb2, < / span > < span class = cF2 > // sprite pointers< / span > < span class = cF0 >
< a name = "l146" > < / a > *tmpf0, *tmpf1, *tmpf2; < / span > < span class = cF2 > // filenames (for sprite links)< / span > < span class = cF0 >
< a name = "l147" > < / a > < / span > < span class = cF9 > CDrive< / span > < span class = cF0 > *drive;
2021-09-25 09:09:28 +01:00
< a name = "l148" > < / a >
2021-12-29 03:49:58 +00:00
< a name = "l149" > < / a > tmpb = tmpb0 = tmpb1 = tmpb2 = tmpf0 = tmpf1 = tmpf2 = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l150" > < / a >
< a name = "l151" > < / a > tmpde1 = < / span > < span class = cF5 > FilesFind< / span > < span class = cF0 > (files_find_mask);
< a name = "l152" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpde1)
< a name = "l153" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l154" > < / a >
< a name = "l155" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (GRDIR_CLEAR)
< a name = "l156" > < / a > < / span > < span class = cF6 > " $CL$" < / span > < span class = cF0 > ;
< a name = "l157" > < / a >
< a name = "l158" > < / a > st = < / span > < span class = cF5 > MAllocIdent< / span > < span class = cF0 > (tmpde1-> full_name);
< a name = "l159" > < / a > < / span > < span class = cF5 > StrLastRemove< / span > < span class = cF0 > (st, < / span > < span class = cF6 > " /" < / span > < span class = cF0 > );
< a name = "l160" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!st[< / span > < span class = cFE > 2< / span > < span class = cF0 > ])
< a name = "l161" > < / a > < / span > < span class = cF5 > StrCopy< / span > < span class = cF0 > (st + < / span > < span class = cFE > 2< / span > < span class = cF0 > , < / span > < span class = cF6 > " /" < / span > < span class = cF0 > );
2021-09-25 09:09:28 +01:00
< a name = "l162" > < / a >
2021-12-29 03:49:58 +00:00
< a name = "l163" > < / a > < / span > < span class = cF6 > " %s> $GREEN$GrDir(\" %s\" );$FG$\n\n" < / span > < span class = cF0 > , st, st;
< a name = "l164" > < / a >
< a name = "l165" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > , drive = < / span > < span class = cFB > blkdev< / span > < span class = cF0 > .drvs; i < < / span > < span class = cF3 > DRIVES_NUM< / span > < span class = cF0 > ; i++, drive++)
< a name = "l166" > < / a > {
< a name = "l167" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (drive-> drive_signature == < / span > < span class = cF3 > DRIVE_SIGNATURE_VAL< / span > < span class = cF0 > )
2021-09-25 09:09:28 +01:00
< a name = "l168" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
2021-12-29 03:49:58 +00:00
< a name = "l169" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF6 > 'A'< / span > < span class = cF0 > < = < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF7 > (< / span > < span class = cF0 > drive< / span > < span class = cF7 > )< / span > < span class = cF0 > < = < / span > < span class = cF6 > 'S'< / span > < span class = cF0 > )
< a name = "l170" > < / a > < / span > < span class = cF6 > " $MA,\" Drive %C\" ,LM=\" Drive('%C');GrDir;\n\" $ " < / span > < span class = cF0 > , < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF0 > (drive), < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF0 > (drive);
< a name = "l171" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF2 > // ATAPI< / span > < span class = cF0 >
< a name = "l172" > < / a > < / span > < span class = cF6 > " $MA,\" Drive %C\" ,LM=\" DiskChange('%C');Drive('%C');GrDir;\n\" $ " < / span > < span class = cF0 > , < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF0 > (drive), < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF0 > (drive), < / span > < span class = cF5 > Drive2Letter< / span > < span class = cF0 > (drive);
< a name = "l173" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l174" > < / a > }
< a name = "l175" > < / a >
< a name = "l176" > < / a > < / span > < span class = cF6 > " \n\n$MA,T=\" Directory\" ,LM=\" PopUpCd;GrDir;\n\" $ of %s\n\n" < / span > < span class = cF0 > , st;
< a name = "l177" > < / a >
< a name = "l178" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpde1)
< a name = "l179" > < / a > {
< a name = "l180" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpde1-> name, < / span > < span class = cF6 > " ." < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l181" > < / a > tmpde1 = tmpde1-> next;
< a name = "l182" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpde1)
< a name = "l183" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l184" > < / a > tmpf0 = < / span > < span class = cF5 > MStrPrint< / span > < span class = cF0 > (< / span > < span class = cF6 > " %C:/" < / span > < span class = cF0 > , tmpde1-> full_name[< / span > < span class = cFE > 0< / span > < span class = cF0 > ]);
< a name = "l185" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpde1-> name, < / span > < span class = cF6 > " .." < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l186" > < / a > {
< a name = "l187" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpf0, st< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l188" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l189" > < / a > GrDirSprite(, < / span > < span class = cFA > < 10> < / span > < span class = cF0 > , tmpde1-> name, < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l190" > < / a > tmpde1 = tmpde1-> next;
< a name = "l191" > < / a > < / span > < span class = cF6 > " \n\n\n\n\n\n" < / span > < span class = cF0 > ;
< a name = "l192" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l193" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l194" > < / a > tmpde1 = tmpde1-> next;
< a name = "l195" > < / a > }
< a name = "l196" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpf0);
< a name = "l197" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l198" > < / a > }
< a name = "l199" > < / a >
< a name = "l200" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpde1)
< a name = "l201" > < / a > {
< a name = "l202" > < / a > tmpde2 = tmpde1-> next;
< a name = "l203" > < / a >
< a name = "l204" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (res % < / span > < span class = cFE > 3< / span > < span class = cF0 > )
< a name = "l205" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l206" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > :
< a name = "l207" > < / a > tag = < / span > < span class = cF6 > " LX" < / span > < span class = cF0 > ;
< a name = "l208" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l209" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 > :
< a name = "l210" > < / a > tag = < / span > < span class = cF6 > " CX" < / span > < span class = cF0 > ;
< a name = "l211" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l212" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 > :
< a name = "l213" > < / a > tag = < / span > < span class = cF6 > " RX" < / span > < span class = cF0 > ;
< a name = "l214" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l215" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l216" > < / a >
< a name = "l217" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (res % < / span > < span class = cFE > 3< / span > < span class = cF0 > == < / span > < span class = cFE > 0< / span > < span class = cF0 > & & res != < / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l218" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l219" > < / a > GrDirSprite(, tmpb0, tmpf0, < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l220" > < / a > GrDirSprite(, tmpb1, tmpf1, < / span > < span class = cFE > 1< / span > < span class = cF0 > );
< a name = "l221" > < / a > GrDirSprite(, tmpb2, tmpf2, < / span > < span class = cFE > 2< / span > < span class = cF0 > );
< a name = "l222" > < / a >
< a name = "l223" > < / a > < / span > < span class = cF6 > " \n\n\n\n\n\n\n" < / span > < span class = cF0 > ;
< a name = "l224" > < / a > tmpb = tmpb0 = tmpb1 = tmpb2 = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l225" > < / a >
< a name = "l226" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpf0);
< a name = "l227" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpf1);
< a name = "l228" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpf2);
< a name = "l229" > < / a > tmpf0 = tmpf1 = tmpf2 = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l230" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l231" > < / a >
< a name = "l232" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (res % < / span > < span class = cFE > 3< / span > < span class = cF0 > == < / span > < span class = cFE > 2< / span > < span class = cF0 > )
< a name = "l233" > < / a > < / span > < span class = cF6 > " $CM-LE-RE$" < / span > < span class = cF0 > ;
< a name = "l234" > < / a >
< a name = "l235" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpde1-> attr & < / span > < span class = cF3 > RS_ATTR_DIR< / span > < span class = cF0 > )
< a name = "l236" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l237" > < / a >
< a name = "l238" > < / a > < / span > < span class = cF6 > " $MA+%s,T=\" %s\" ,LM=\" Cd(\\\" %s\\\" );GrDir;\n\" $" < / span > < span class = cF0 > , tag, tmpde1-> name, tmpde1-> full_name;
< a name = "l239" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (res % < / span > < span class = cFE > 3< / span > < span class = cF0 > )
< a name = "l240" > < / a > {
< a name = "l241" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > :
< a name = "l242" > < / a > tmpb0 = < / span > < span class = cFA > < 3> < / span > < span class = cF0 > ;
< a name = "l243" > < / a > tmpf0 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
< a name = "l244" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l245" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 > :
< a name = "l246" > < / a > tmpb1 = < / span > < span class = cFA > < 3> < / span > < span class = cF0 > ;
< a name = "l247" > < / a > tmpf1 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
2021-09-25 09:09:28 +01:00
< a name = "l248" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-12-29 03:49:58 +00:00
< a name = "l249" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 > :
< a name = "l250" > < / a > tmpb2 = < / span > < span class = cFA > < 3> < / span > < span class = cF0 > ;
< a name = "l251" > < / a > tmpf2 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
2021-09-25 09:09:28 +01:00
< a name = "l252" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-12-29 03:49:58 +00:00
< a name = "l253" > < / a > }
< a name = "l254" > < / a >
< a name = "l255" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l256" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l257" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l258" > < / a > < / span > < span class = cF6 > " $LK+%s+PU,\" %s\" ,A=\" FI:%s\" $" < / span > < span class = cF0 > , tag, tmpde1-> name, tmpde1-> full_name;
< a name = "l259" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .ZC" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l260" > < / a > tmpb = < / span > < span class = cFA > < 1> < / span > < span class = cF0 > ;
< a name = "l261" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .DD" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l262" > < / a > tmpb = < / span > < span class = cFA > < 5> < / span > < span class = cF0 > ;
< a name = "l263" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .ISO.C" < / span > < span class = cF7 > )< / span > < span class = cF0 > ||
< a name = "l264" > < / a > !< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .ISO" < / span > < span class = cF7 > )< / span > < span class = cF0 > ||
< a name = "l265" > < / a > !< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .iso" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l266" > < / a > tmpb = < / span > < span class = cFA > < 4> < / span > < span class = cF0 > ;
< a name = "l267" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .HH" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l268" > < / a > tmpb = < / span > < span class = cFA > < 2> < / span > < span class = cF0 > ;
< a name = "l269" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .BIN.C" < / span > < span class = cF7 > )< / span > < span class = cF0 > ||
< a name = "l270" > < / a > !< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .BIN" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l271" > < / a > tmpb = < / span > < span class = cFA > < 6> < / span > < span class = cF0 > ;
< a name = "l272" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .IN" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l273" > < / a > tmpb = < / span > < span class = cFA > < 7> < / span > < span class = cF0 > ;
< a name = "l274" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF5 > FileExtDot< / span > < span class = cF0 > (tmpde1-> name), < / span > < span class = cF6 > " .TXT" < / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l275" > < / a > tmpb = < / span > < span class = cFA > < 8> < / span > < span class = cF0 > ;
< a name = "l276" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l277" > < / a > < / span > < span class = cF2 > // sprite for unknown filetype< / span > < span class = cF0 >
< a name = "l278" > < / a > tmpb = < / span > < span class = cFA > < 9> < / span > < span class = cF0 > ;
< a name = "l279" > < / a >
< a name = "l280" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (res % < / span > < span class = cFE > 3< / span > < span class = cF0 > )
< a name = "l281" > < / a > {
< a name = "l282" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > :
< a name = "l283" > < / a > tmpb0 = tmpb;
< a name = "l284" > < / a > tmpf0 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
< a name = "l285" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l286" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 > :
< a name = "l287" > < / a > tmpb1 = tmpb;
< a name = "l288" > < / a > tmpf1 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
< a name = "l289" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l290" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 > :
< a name = "l291" > < / a > tmpb2 = tmpb;
< a name = "l292" > < / a > tmpf2 = < / span > < span class = cF5 > StrNew< / span > < span class = cF0 > (tmpde1-> full_name);
< a name = "l293" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l294" > < / a > }
< a name = "l295" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l296" > < / a >
< a name = "l297" > < / a > res++;
< a name = "l298" > < / a > < / span > < span class = cF5 > DirEntryDel< / span > < span class = cF0 > (tmpde1);
< a name = "l299" > < / a > tmpde1 = tmpde2;
< a name = "l300" > < / a > }
< a name = "l301" > < / a >
< a name = "l302" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st);
< a name = "l303" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l304" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l305" > < / a > < / span > < span class = cF6 > " \nNo matching entries!!\n" < / span > < span class = cF0 > ;
< a name = "l306" > < / a >
< a name = "l307" > < / a > GrDirSprite(, tmpb0, tmpf0, < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l308" > < / a > GrDirSprite(, tmpb1, tmpf1, < / span > < span class = cFE > 1< / span > < span class = cF0 > );
< a name = "l309" > < / a > GrDirSprite(, tmpb2, tmpf2, < / span > < span class = cFE > 2< / span > < span class = cF0 > );
< a name = "l310" > < / a > < / span > < span class = cF6 > " \n\n\n\n\n\n\n" < / span > < span class = cF0 > ;
< a name = "l311" > < / a >
< a name = "l312" > < / a >
< a name = "l313" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > res;
< a name = "l314" > < / a > }
< a name = "l315" > < / a >
< a name = "l316" > < / a > < / span > < span class = cF5 > Cd< / span > < span class = cF0 > ;
< a name = "l317" > < / a > GrDir;< / span > < / pre > < / body >
2021-07-03 05:07:57 +01:00
< / html >