-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEASYMINT.LST
10586 lines (10586 loc) · 317 KB
/
EASYMINT.LST
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
' ----------------------------------------------------------------------------
'
' EasyMiNT install 1.81b von M.A. Kehr
'
' 29.12.2001, 08:52:44
'
' (faceVALUE V3.2 PL3á , vom 11.08.00)
'
' ----------------------------------------------------------------------------
'
$m128000 ! Speicherverbrauch eintragen
compiled!=BYTE{BASEPAGE+256}<>96
' --CMP
IF NOT compiled!
RESERVE 128000 ! Speicherverbrauch eintragen
CHDRIVE "I" !***Pfad einstellen (im Interpreter)
CHDIR "F:\EASYMINT.1_8\" !***Pfad einstellen (im Interpreter)
ENDIF
' --CMP
'
ON BREAK GOSUB system_restore !This line can be deleted before compiling !-CMP
ON ERROR GOSUB system_error !This line can be deleted before compiling !-CMP
@start_up !Code produced using faceVALUE
' ------------------------------------------------------------------------
' Wrinkle-Information / Dokumentation:
'
> PROCEDURE project_settings
' WARNING: The contents of this procedure should not be edited!
' INFO "GFA-Basic Editor v1.51 "
' DATE "05/17/2013"
' TIME "10:44:10"
' LIB$ "68k "
' LIB# $5
' $CMD %00000000000000000000000000000000
' $RAM $00000000
' FLGS %00010111
' _SYM $0
' .EXT "prg"
' OBJ0 " "
' OBJ1 " "
' OBJ2 " "
' OBJ3 " "
' OBJ4 " "
' OBJ5 " "
' CRSR $00000C8F
' BLKS $FFFFFFFF
' BLKE $FFFFFFFF
' MRK0 $FFFFFFFF
' MRK1 $FFFFFFFF
' MRK2 $FFFFFFFF
' MRK3 $FFFFFFFF
' MRK4 $FFFFFFFF
' MRK5 $FFFFFFFF
' MRK6 $FFFFFFFF
' MRK7 $FFFFFFFF
' MRK8 $FFFFFFFF
' MRK9 $00000988
' FIND '00 '
' RPLC '00 '
' FRH0 '00 '
' FRH1 '00 '
' FRH2 '00 '
' FRH3 '00 '
' FRH4 '00 '
' FRH5 '00 '
' FRH6 '00 '
' FRH7 '00 '
' FRH8 '00 '
' FRH9 '00 '
' PST0 '00 '
' PST1 '00 '
' UND0 '00 '
' UND1 '00 '
' CMD$ '00 '
' ENV$ '00 '
RETURN
>PROCEDURE wrinkles_info
' ----------------------------------------------------------------------------
' Messagewindow-wrinkle ½1998 by Holger Herzog
' Vorgartenstr. 9
' D-66424 Homburg
'
' Callable routines:
'
' PROCEDURE messagewin_open(title$,maxlines%,x&,y&,w&,h&,icfyicon&)
'
' Opens a userwindow for displaying messagelines. The string in title$
' will be showed in the window title. maxlines% is used for dimming the
' scroll-back area. Set the windowsize in x&, y&, w& and h&. If all these
' variables are set to (-1), the window will be opened in full size.
' icfyicon& can contain the tree number of an iconify-icon for this window.
' Otherwise set it to (-1).
'
'
' PROCEDURE messagewin_print(line$)
'
' Outputs the line line$ in the messagewindow.
'
'
' PROCEDURE messagewin_close
'
' Closes the messagewindow (if opened).
'
' ---------------------------------------------------------------------------
' Textlist-Wrinkle V1.0, ½29.03.1997 Holger Herzog
' Vorgartenstr. 9
' D-66424 Homburg
'
' Callable routines:
'
' FUNCTION textlist_win_open(title$,info$,mode&,tool&,tree&,userhandle&,
' x&,y&,w&,h&,iconify&,num%,VAR liste$())
'
' Opens a userwindow for textlist-use. See win_open for information about
' title$, info$, tree&, userhandle&, x&, y&, w&, h& and iconify&. See
' win_kind_calc for information about mode& and tool&. Fill out the array
' liste$() with the textlines to display. num% is the number of lines that
' will be shown. If x&, y&, w& and h& are set to (-1), the window will appear
' in full screen-size. To suppress the infoline, set info$="". The function
' returns the window-handle of the text-window or '0' if error.
'
'
' PROCEDURE textlist_draw(index&,off_x%,off_y%,cx&,cy&,cw&,ch&,num%,
' VAR list$(),selected!())
'
' Draws a textlist in a userwindow. Normally called in user_window_content
' (see also). Most parameters are avaliable in user_window_content anyway:
' index&,off_x%,off_y%,cx&,cy&,cw&,ch&
' The first num% lines of the array list$() will be drawn in the userwindow
' (according to the offsets and the clipping-rectangle). Lines with the
' selected!()-flag set will be drawn inverted.
'
'
' FUNCTION textlist_click(index&,mx&,my&,mb&,ks&,mc&,dd!,num%,
' selected!(),hash&())
'
' Handles mouseclicks into a textlist-userwindow. This function usually is
' called in user_mouse (see also). Like in textlist_draw, most parameters
' are availiable anyway:
' index&,mx&,my&,mb&,ks&,mc&
' num% is the number of lines the textlist have (like in textlist_draw).
' Dito selected!(), it may have changed after calling
' this function (as this is its main-sentence).
' The return-value of textlist_click usually is -1. If the user makes a
' doubleclick onto a certain entry, textlist_click will return the value
' of the hash&()-array of this entry. If hash&() is negative, the entry will
' be not selectable.
' If dd! is set to TRUE, a long click with the left mousebutton will lead
' to a movebox and the user can drag and drop the entries. After that,
' user_textlist_dragdrop will be called where you can do your stuff.
'
'
' PROCEDURE list_redraw(index&,line&)
'
' Redraws one line (line&) in window index&. Use this if you have changed
' the content or the selected!-flag of a certain line for redraw.
'
'
' PROCEDURE textlist_resize_sliders(index&,num%,VAR liste$())
'
' Call this procedure if you have changed list-texts or fontsize to resize
' the window and the sliders. index& is the FV-index of the text-list-
' window.
'
'
RETURN
'
> PROCEDURE my_init
INLINE xhdi_call%,134
'
'
DIM newdesk$(300),ttytab$(200),package$(5)
'
@init_gemdos_var ! Konstanten belegen und
'
em_start_pfad$=@akt_pfad$ ! Pfad aus dem EASYMINT.PRG gestartet wurde
'
install_path$="c:\easymint" ! Pfad wo die Tempor„rdateien hinterlegt werden.
IF @exist(install_path$,16)=-33
~@f_mkdir(install_path$)
ENDIF
@language_load
'
' Version hier setzen wegen Manipulationsgefahr
'
version1$="EasyMiNT"
version2$="in memoriam Frank"
version3$="v 1.82b 03/26/13"
version4$="(faceValue 3.2 RunLib)"
version5$="Copyright 2001-2013"
@rsc_set_text(about&,version1&,version1$)
@rsc_set_text(about&,version2&,version2$)
@rsc_set_text(about&,version3&,version3$)
@rsc_set_text(about&,version4&,version4$)
@rsc_set_text(about&,version5&,version5$)
'
mw_x&=5
mw_y&=5
mw_b&=620
mw_h&=400
'
IF @exist(install_path$+"\tmp",63)=-33
~@f_mkdir(install_path$+"\tmp")
ENDIF
'
mint_version_path$="1-18-0" ! Pfad unter C:\MINT z.B. 1-17-0
'
RETURN
> PROCEDURE language_load
LOCAL fiha&
IF @exist("language.lng",63)=0 OR @exist("LANGUAGE.LNG",63)=0
'
CLR dummy&,alert_nr&,alert_inhalt&
CLR info_nr&,info_inhalt&
CLR status_nr&,status_inhalt&
CLR prgstart_nr&,prgstart_inhalt&
'
DIM dummy$(1000),alert$(50,3),info$(5,8),status$(50,3),prgstart$(10,3)
'
fiha&=@f_open("language.lng")
'
dummy$=@f_input$(fiha&,FALSE)
dummy$=@f_input$(fiha&,FALSE)
' Statusfenster
status_win$=@f_input$(fiha&,FALSE)
'
REPEAT
INC dummy&
dummy$(dummy&)=@f_input$(fiha&,FALSE)
UNTIL @f_eof(fiha&)
~@f_close(fiha&)
'
FOR i&=1 TO dummy&
IF LEFT$(dummy$(i&),7)="# Alert" ! Alertboxen einlesen
CLR alert_inhalt&
INC alert_nr&
FOR x&=i&+1 TO i&+3
IF LEFT$(dummy$(x&),1)<>"#"
INC alert_inhalt&
alert$(alert_nr&,alert_inhalt&)=dummy$(x&)
ENDIF
EXIT IF LEFT$(dummy$(x&),1)="#"
NEXT x&
ENDIF
'
IF LEFT$(dummy$(i&),6)="# Info" ! Infoboxen einlesen
INC info_nr&
CLR info_inhalt&
FOR x&=i&+1 TO i&+8
IF LEFT$(dummy$(x&),1)<>"#"
INC info_inhalt&
info$(info_nr&,info_inhalt&)=dummy$(x&)
ENDIF
EXIT IF LEFT$(dummy$(x&),1)="#"
NEXT x&
ENDIF
'
IF LEFT$(dummy$(i&),8)="# Status" ! Statusmeldungen einlesen
INC status_nr&
CLR status_inhalt&
FOR x&=i&+1 TO i&+2
IF LEFT$(dummy$(x&),1)<>"#"
INC status_inhalt&
status$(status_nr&,status_inhalt&)=dummy$(x&)
ENDIF
EXIT IF LEFT$(dummy$(x&),1)="#"
NEXT x&
ENDIF
'
IF LEFT$(dummy$(i&),10)="# Programm" ! Programmstartmeldungen einlesen
INC prgstart_nr&
CLR prgstart_inhalt&
FOR x&=i&+1 TO i&+3
IF LEFT$(dummy$(x&),1)<>"#"
INC prgstart_inhalt&
prgstart$(prgstart_nr&,prgstart_inhalt&)=dummy$(x&)
ENDIF
EXIT IF LEFT$(dummy$(x&),1)="#"
NEXT x&
ENDIF
NEXT i&
'
ELSE
ALERT 1,"No language.lng",1," Quit ",eing1&
QUIT
ENDIF
RETURN
> PROCEDURE file_check
' Check EASYMINT.ZIP
IF @exist(@akt_pfad$+"easymint.zip",63)<>0
ALERT 1,"EASYMINT.ZIP missing!",1," Quit ",eing%
exit_program!=TRUE
ENDIF
' Check XAAES.ZIP
IF @exist(@akt_pfad$+"xaaes.zip",63)<>0
ALERT 1,"XAAES.ZIP missing!",1," Quit ",eing%
exit_program!=TRUE
ENDIF
' Check teradesk.zip
IF @exist(@akt_pfad$+"teradesk.zip",63)<>0
ALERT 1,"TERADESK.ZIP missing!",1," Quit ",eing%
exit_program!=TRUE
ENDIF
IF @exist(@akt_pfad$+"pakete\basic.tar",63)<>0
ALERT 1,"basic.tar missing!",1," Quit ",eing%
exit_program!=TRUE
ELSE
IF @exist(@akt_pfad$+"pakete\basic.lst",63)<>0
ALERT 1,"basic.lst missing!",1," Quit ",eing%
exit_program!=TRUE
ENDIF
ENDIF
'
IF @exist(@akt_pfad$+"unzip.ttp",63)<>0
' ALERT 1,"unzip.ttp missing!",1," Quit ",eing%
' ALERT 1,alert2_1$,1,alert2_2$,eing%
ALERT 1,alert$(2,1),1,alert$(2,2),eing%
exit_program!=TRUE
ENDIF
'
IF @exist(@akt_pfad$+"rootfs.tgz",63)<>0
ALERT 1,"rootfs.tgz missing!",1," Quit ",eing%
exit_program!=TRUE
ENDIF
RETURN
'
' Erster Teil
'
> PROCEDURE info0 ! Installationspakete entpacken
LOCAL value%,eing&
@messagewin_open(status_win$,50,mw_x&,mw_y&,mw_b&,mw_h&,-1)
@message(2,info$(1,1),info$(1,2),info$(1,3),info$(1,4),info$(1,5),info$(1,6),info$(1,7))
info0!=TRUE
RETURN
> PROCEDURE lnx_suchen
LOCAL i&,lnx_lw&
'
drives%=GEMDOS(14,GEMDOS(25)) ! Angemeldete Laufwerke abfragen
'
FOR i&=ext_c& TO ext_t&
IF BTST(drives%,(i&-ext_c&)+2)=TRUE
IF UPPER$(@xhdi$((i&-ext_c&)+2))="LNX" OR UPPER$(@xhdi$((i&-ext_c&)+2))="RAW" OR UPPER$(@xhdi$((i&-ext_c&)+2))="MIX"
' PRINT "Laufwerk(c-t): ";CHR$(65+(i&-ext_c&+2))
ext2_var&=PRED((i&-ext_c&+2)) ! Laufwerk in Popup vorbelegen
INC lnx_lw&
ENDIF
ENDIF
NEXT i&
'
FOR i&=ext_v& TO ext_6&
IF BTST(drives%,(i&-ext_c&)+2)=TRUE
IF UPPER$(@xhdi$((i&-ext_v&)+2))="LNX" OR UPPER$(@xhdi$((i&-ext_v&)+2))="RAW" OR UPPER$(@xhdi$((i&-ext_v&)+2))="MIX"
' PRINT "Laufwerk(v-6): ";CHR$(65+(i&-ext_c&+2))
ext2_var&=PRED((i&-ext_c&+2)) !Laufwerk in Popup vorbelegen
INC lnx_lw&
ENDIF
ENDIF
NEXT i&
'
IF lnx_lw&=0 ! Wenn keine LNX oder RAW Programm beenden
' Alert 1
' ALERT 1,alert1_1$,1,alert1_2$,eing&
ALERT 1,alert$(1,1),1,alert$(1,2),eing&
IF eing&=1
exit_program!=TRUE
ENDIF
ELSE
' es wurden x lnx partitionen gefunden
@messagewin_print(status$(1,1)+" "+STR$(lnx_lw&)+" "+status$(1,2))
@preinst
info0!=FALSE
ENDIF
RETURN
> PROCEDURE preinst
' Dialogvoreinstellungen
@rsc_ob_disable(fvt_popu&,lw_u&,TRUE) !Laufwerk U disablen
@rsc_ob_disable(fvt_popu&,ext_u&,TRUE) ! " " "
'
@comp_choose
@angemeldete_lw
@lnx_find
'
' boot$=CHR$(66+lw_c_var&)
'
@rsc_setup_tree(preinst&)
preinst_hdle&=@win_open_dialog(2,preinst&,-1)
RETURN
> PROCEDURE auspacken
LOCAL dummy&,eing%,eing1&,prg$
' Schritt 1/6
@messagewin_print(status$(29,1)+" 1/6")
'
' Programme werden entpackt, kann dauern
@messagewin_print(status$(2,1))
@messagewin_print(status$(2,2))
'
IF @exist(em_start_pfad$+"unzip.ttp",63)=0
' name1
LET name$=prgstart$(1,1)
error%=@start_prg(0,em_start_pfad$+"unzip.ttp","-o "+em_start_pfad$+"easymint.zip -d "+install_path$,"",name$,install_path$+"\tmp\unzip.out",install_path$+"\tmp\unzip.err",TRUE,TRUE,TRUE)
ELSE
' Alert 2
' ALERT 1,alert2_1$+" "+em_start_pfad$+alert2_2$,1,alert2_3$,eing1&
ALERT 1,alert$(2,1)+" "+em_start_pfad$+alert$(2,2),1,alert$(2,3),eing1&
IF eing1&=1
exit_program!=TRUE
ENDIF
ENDIF
'
RETURN
> PROCEDURE comp_choose ! Computer w„hlen
' PRINT "Cookie: ";
'
IF @get_cookie("_CPU",value%)
cpu&=value%
ENDIF
'
' PRINT "CPU: ";cpu&
'
IF @get_cookie("_MCH",value%)
machine&=SWAP(value%)
IF (machine&=0 OR machine&=1 AND cpu&=0)! ST(e)
compi_var&=1
ENDIF
IF (machine&=0 OR machine&=1 AND cpu&=30)! ST mit 68030
compi_var&=2
ENDIF
IF machine&=2 ! TT
compi_var&=3
ENDIF
IF machine&=3 AND cpu&=30 ! Falcon
compi_var&=4
ENDIF
IF machine&=3 AND cpu&=40 ! Falcon mit AB
compi_var&=5
ENDIF
IF machine&=3 AND cpu&=60 ! Falcon mit ct060
compi_var&=6
ENDIF
IF @get_cookie("MNAM",value%)
IF CHAR{value%}="Milan"
compi_var&=7
ENDIF
ENDIF
IF @get_cookie("hade",value%) ! Hades
IF cpu&=40 ! mit 68040
compi_var&=8
ENDIF
IF cpu&=60 ! mit 68060
compi_var&=9
ENDIF
' PRINT "Cookiewert: ";value%
' IF value%=&H400E
' PRINT "Hades"
' ENDIF
ENDIF
IF @get_cookie("MTxx",value%)
IF cpu&=40
compi_var&=10
ENDIF
ENDIF
IF value%=&H50000 ! ARAnyM Version >= 0.8.5
compi_var&=11
' ELSE ! ARAnyM Version <0.8.5
' IF @get_cookie("__NF",value%)
' IF @is_aranym
' ' PRINT "This is ARAnyM"
' compi_var&=10
' ENDIF
' ENDIF
ENDIF
IF @get_cookie("_CF_",value%)
compi_var&=12
ENDIF
ENDIF
'
RETURN
> PROCEDURE boot_info
@message(1,info$(2,1),info$(2,2),info$(2,3),info$(2,4),info$(2,5),info$(2,6),info$(2,7))
boot_info!=TRUE
RETURN
'
> PROCEDURE kernel_copy
LOCAL eing&,eing1&,datei$,xxxx$
' Schritt 2
@messagewin_print(status$(29,1)+" 2/6")
'
'
mintvers$=UPPER$(mint_version_path$)
'
DEFMOUSE 2
'
' bereits vorhandene MINT.CNF umbenennen (in :\ :\MULTITOS)
IF @exist(boot$+":\MINT.CNF",63)=0
IF @exist(boot$+":\MINT.EM",63)=0
error%=@f_kill(boot$+":\MINT.EM")
ENDIF
NAME boot$+":\MINT.CNF" AS boot$+":\MINT.EM"
ENDIF
IF @exist(boot$+":\MULTITOS\MINT.CNF",63)=0
IF @exist(boot$+":\MULTITOS\MINT.EM",63)=0
error%=@f_kill(boot$+":\MULTITOS\MINT.EM")
ENDIF
NAME boot$+":\MULTITOS\MINT.CNF" AS boot$+":\MULTITOS\MINT.EM"
ENDIF
'
IF @exist(boot$+":\MINT\"+mintvers$+"\MINT.CNF",63)=0
IF @exist(boot$+":\MINT\"+mintvers$+"\MINT.EM",63)=0
error%=@f_kill(boot$+":\MINT\"+mintvers$+"\MINT.EM")
ENDIF
NAME boot$+":\MINT\"+mintvers$+"\MINT.CNF" AS boot$+":\MINT\"+mintvers$+"\MINT.EM"
ENDIF
'
IF @exist(boot$+":\auto",16)=-33 ! Wenn nicht vorhanden
MKDIR boot$+":\auto"
ENDIF
'
' MINT Ordner nach MINT.OLD umbenennen
IF @exist(boot$+":\mint",16)=0 !AND @exist(boot$+":\mint.old",16)=-33
IF @exist(boot$+":\mint.old",16)<>0
NAME boot$+":\mint" AS boot$+":\mint.old"
ENDIF
' MKDIR boot$+":\mint"
ENDIF
IF @exist(boot$+":\mint",16)=-33
MKDIR boot$+":\mint"
ENDIF
'
IF @exist(boot$+":\mint\"+mint_version_path$,16)=-33
MKDIR boot$+":\mint\"+mint_version_path$
ENDIF
'
lw_mint$=boot$+":\mint\"
'
' Kopiere MiNT Ordner
@messagewin_print(status$(3,1))
'
@ug_copy1(install_path$+"\mint\mint.ini",lw_mint$+mint_version_path$+"\mint.ini")
IF compi_var&=1 ! Wenn ST minix Treiber installieren
@ug_copy1(install_path$+"\mint\minix.xfs",lw_mint$+mint_version_path$+"\minix.xfs")
ELSE IF compi_var&<>1 ! Sonst ext2
@ug_copy1(install_path$+"\mint\ext2.xfs",lw_mint$+mint_version_path$+"\ext2.xfs")
ENDIF
@ug_copy1(install_path$+"\mint\inet4.xdd",lw_mint$+mint_version_path$+"\inet4.xdd")
@ug_copy1(install_path$+"\mint\slip.xif",lw_mint$+mint_version_path$+"\slip.xif")
@ug_copy1(install_path$+"\mint\xconout2.xdd",lw_mint$+mint_version_path$+"\xconout2.xdd")
@ug_copy1(install_path$+"\mint\lp.xdd",lw_mint$+mint_version_path$+"\lp.xdd")
@ug_copy1(install_path$+"\mint\nfs.xfs",lw_mint$+mint_version_path$+"\nfs.xfs")
'
' *******************************************************
' XaAES installieren und konfigurieren?
'
'
@xaaes_copy
@teradesk_copy
'
' ******************************************************
'
' Fertig!
@messagewin_print(status$(4,1))
'
lw_auto$=boot$+":\easymint.tmp\"
'
' Kopiere AUTO Ordner
@messagewin_print(status$(5,1))
'
@auto_tmp ! Autoordner in richtiger Reihenfolge nach EASYMINT.tmp
' Done!
@messagewin_print(status$(6,1))
' Kopiere Kernel und Treiber
@messagewin_print(status$(6,2))
'
kernel_pfad$="\kernel\"
kernel_name$="mint"
serial_pfad$=mint_version_path$+"\"
kernel_pfad$=kernel_pfad$+kernel_name$
IF compi_var&=1 ! ST
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"000.prg",lw_auto$+kernel_name$+"000.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"serial\mfp.xdd",lw_mint$+serial_pfad$+"mfp.xdd")
ENDIF
IF compi_var&=2 ! ST mit 030er
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"030.prg",lw_auto$+kernel_name$+"030.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\mfp.xdd",lw_mint$+serial_pfad$+"mfp.xdd")
ENDIF
IF compi_var&=3 ! TT
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"030.prg",lw_auto$+kernel_name$+"030.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\mfp.xdd",lw_mint$+serial_pfad$+"mfp.xdd")
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
ENDIF
IF compi_var&=4 ! Falcon
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"030.prg",lw_auto$+kernel_name$+"030.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
ENDIF
IF compi_var&=5 ! Falcon AB
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"040.prg",lw_auto$+kernel_name$+"040.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\68882.prg",lw_mint$+serial_pfad$+"68882.prg")
ENDIF
IF compi_var&=6 ! Falcon ct060
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"060.prg",lw_auto$+kernel_name$+"060.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\68882.prg",lw_mint$+serial_pfad$+"68882.prg")
ENDIF
IF compi_var&=7 ! Milan
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"mil.prg",lw_auto$+kernel_name$+"mmil.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\uart.xdd",lw_mint$+serial_pfad$+"uart.xdd")
@ug_copy1(install_path$+"\serial\mfp_mil.xdd",lw_mint$+serial_pfad$+"mfp_mil.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\fpu__2m.prg",lw_mint$+"fpu__2m.prg")
ENDIF
IF compi_var&=8 ! Hades040
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"040.prg",lw_auto$+kernel_name$+"040.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
@ug_copy1(install_path$+"\serial\mfp.xdd",lw_mint$+serial_pfad$+"mfp.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\fpu__3.prg",lw_mint$+"fpu__3.prg")
ENDIF
IF compi_var&=9 ! Hades060
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"040.prg",lw_auto$+kernel_name$+"040.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\fpu__3.prg",lw_mint$+"fpu__3.prg")
@ug_copy1(install_path$+"\serial\mfp.xdd",lw_mint$+"mfp.xdd")
ENDIF
IF compi_var&=10 ! Medusa T40
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"040.prg",lw_auto$+kernel_name$+"040.prg")
' Seriellen Treiber kopieren
@ug_copy1(install_path$+"\serial\scc.xdd",lw_mint$+serial_pfad$+"scc.xdd")
@ug_copy1(install_path$+"\serial\mfp.xdd",lw_mint$+serial_pfad$+"mfp.xdd")
' FPU Emulator kopieren
@ug_copy1(install_path$+"\mint\fpu40v1.prg",lw_mint$+"fpu40v1.prg")
ENDIF
IF compi_var&=11 ! Aranym
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"ara.prg",lw_auto$+kernel_name$+"ara.prg")
' ARAnyM Treiber kopieren
@ug_copy1(install_path$+"\mint\aranym.xfs",lw_mint$+mint_version_path$+"\aranym.xfs")
' @ug_copy1(install_path$+"\mint\nfosmesa.xdd",lw_mint$+mint_version_path$+"\nfosmesa.xdd")
@ug_copy1(install_path$+"\mint\nfstderr.xdd",lw_mint$+mint_version_path$+"\nfstderr.xdd")
@ug_copy1(install_path$+"\mint\nfeth.xif",lw_mint$+mint_version_path$+"\nfeth.xif")
@ug_copy1(install_path$+"\mint\hostfs.xfs",lw_mint$+mint_version_path$+"\hostfs.xfs")
ENDIF
IF compi_var&=12 ! Coldfire/Firebee
' Kernel kopieren
@ug_copy1(install_path$+kernel_pfad$+"mintv4e.prg",lw_auto$+kernel_name$+"mintv4e.prg")
@ug_copy1(install_path$+"\mint\fec.xif",lw_mint$+mint_version_path$+"\fec.xif")
ENDIF
'
' Fertig!
@messagewin_print(status$(7,1))
' Sortiere AUTO Ordner
@messagewin_print(status$(7,2))
'
@tmp_auto ! Autoordner wieder zurck
' Fertig!
@messagewin_print(status$(8,1))
' Bearbeite NEWDESK.INF
@messagewin_print(status$(8,2))
'
@newdesk_inf
' Fertig!
@messagewin_print(status$(9,1))
DEFMOUSE 0
RETURN
> PROCEDURE xaaes_copy
LOCAL datei$,error%
'
DEFMOUSE 2
'
'
xaaes_pfad$=":\mint\"+mint_version_path$+"\xaaes"
xaaes_zip$=":\mint\"+mint_version_path$+"\"
'
IF @exist(boot$+xaaes_pfad$,16)=-33
~@f_mkdir(boot$+xaaes_pfad$)
ENDIF
@ug_copy1(em_start_pfad$+"xaaes.zip",boot$+xaaes_zip$+"xaaes.zip")
'
'
IF @exist(em_start_pfad$+"unzip.ttp",63)=0
@ug_copy1(em_start_pfad$+"unzip.ttp",boot$+xaaes_zip$+"unzip.ttp")
'
LET name$="Unpacking xaaes.zip..."
error%=@start_prg(0,boot$+xaaes_zip$+"unzip.ttp","-o "+boot$+xaaes_zip$+"xaaes.zip -d "+boot$+xaaes_pfad$,"",name$,install_path$+"\tmp\xaaes.out",install_path$+"\tmp\xaaes.err",TRUE,TRUE,TRUE)
ENDIF
'
~@f_kill(boot$+xaaes_zip$+"xaaes.zip")
~@f_kill(boot$+xaaes_zip$+"unzip.ttp")
'
' xaaes Modul umbenennen
' @ug_copy1(boot$+xaaes_pfad$+"\xaaes.km",boot$+xaaes_pfad$+"\xaaes.kmx")
' ~@f_kill(boot$+xaaes_pfad$+"\xaaes.km")
' @ug_copy1(boot$+xaaes_pfad$+"\xaaes000.km",boot$+xaaes_pfad$+"\xaaes.km")
'
@xaaes_cnf_create(TRUE)
'
DEFMOUSE 0
RETURN
> PROCEDURE xaaes_cnf_create(second_stage_flag!)
LOCAL fiha&,tab$,quote$
'
' XaAES Konfiguration wird erstellt
@messagewin_print(status$(10,1))
'
IF @exist(boot$+":\mint\"+mint_version_path$+"\xaaes\xaaes.cnf",63)=0
~@f_kill(boot$+":\mint\"+mint_version_path$+"\xaaes\xaaes.cnf")
ENDIF
'
tab$=CHR$(9)
quote$=CHR$(34)
'
fiha&=@f_create(boot$+":\mint\"+mint_version_path$+"\xaaes\xaaes.cnf")
~@f_println(fiha&,"####################################################################",FALSE)
~@f_println(fiha&,"# XAAES.CNF created by EasyMiNT ",FALSE)
~@f_println(fiha&,"# This is only a rudiment CNF file, just that things come up!",FALSE)
~@f_println(fiha&,"# It's highly recommended to have a look at the original CNF file!! ",FALSE)
~@f_println(fiha&,"# There are much more options and explanations!",FALSE)
~@f_println(fiha&,"# You will find it under "+boot$+":\MINT\"+mint_version_path$+"\XAAES\EXAMPLE.CNF",FALSE)
~@f_println(fiha&,"####################################################################",FALSE)
'
~@f_println(fiha&,"# Environment variables",FALSE)
~@f_println(fiha&,"setenv ACCPATH"+tab$+tab$+boot$+":\",FALSE)
~@f_println(fiha&,"setenv ACCEXT"+tab$+tab$+"ACC,ACX",FALSE)
~@f_println(fiha&,"setenv GEMEXT"+tab$+tab$+"PRG,APP,GTP,OVL,SYS",FALSE)
~@f_println(fiha&,"setenv TOSEXT"+tab$+tab$+"TOS,TTP",FALSE)
~@f_println(fiha&,"setenv TOSRUN"+tab$+tab$+"u:\opt\toswin2\tw-call.app",FALSE)
~@f_println(fiha&,"setenv SDL_VIDEODRIVER"+tab$+"gem",FALSE)
'
~@f_println(fiha&,"# naes_cookie (default is no)",FALSE)
~@f_println(fiha&,"naes_cookie = yes",FALSE)
'
~@f_println(fiha&,"# use $HOME in shell_find",FALSE)
~@f_println(fiha&,"usehome = yes",FALSE)
'
~@f_println(fiha&,"# next_active = <string> (default is window)",FALSE)
~@f_println(fiha&,"next_active = client ",FALSE)
'
~@f_println(fiha&,"# app_options = appname,argument1,argument2,...",FALSE)
~@f_println(fiha&,"# These are good app_options settings that I (ozk) use atm",FALSE)
~@f_println(fiha&,"app_options = default,thinwork=true,winframe_size = 0,xa_nomove = false ",FALSE)
~@f_println(fiha&,"app_options = aessys,thinwork=true,winframe_size = 0,xa_nomove = false ",FALSE)
~@f_println(fiha&,"app_options = jinnee, naesff = true ",FALSE)
~@f_println(fiha&,"app_options = taskbar,inhibit_hide = yes, clwtna = true ",FALSE)
~@f_println(fiha&,"app_options = amail, naesff = true",FALSE)
~@f_println(fiha&,"app_options = mymail,thinwork=true,winframe_size = 0",FALSE)
~@f_println(fiha&,"app_options = highwire,winframe_size = 0",FALSE)
'
~@f_println(fiha&,"# The following will keep the desktop, taskbar and toswin2 running after",FALSE)
~@f_println(fiha&,"# a ctrl-alt-a action",FALSE)
~@f_println(fiha&,"ctlalta_survivors = "+quote$+"toswin2 "+quote$+", "+quote$+"strngsrv"+quote$+", "+quote$+"_aes_shell_"+quote$+", "+quote$+"taskbar "+quote$,FALSE)
'
~@f_println(fiha&,"clipboard = "+boot$+":\clipbrd\",FALSE)
~@f_println(fiha&,"accpath = "+boot$+":\",FALSE)
' ~@f_println(fiha&,"launcher = u:\opt\toswin2\tw-call.prg",FALSE)
'
~@f_println(fiha&,"# widgets = <file>",FALSE)
~@f_println(fiha&,"# resource = <file>",FALSE)
~@f_println(fiha&,"#",FALSE)
~@f_println(fiha&,"#resource = xa_mono.rsc",FALSE)
~@f_println(fiha&,"#widgets = widgets\homwdg.rsc",FALSE)
~@f_println(fiha&,"#widgets = widgets\styl_wdg.rsc",FALSE)
~@f_println(fiha&,"#widgets = widgets\nine-ozk.rsc",FALSE)
~@f_println(fiha&,"#widgets = widgets\baroqwdg.rsc",FALSE)
~@f_println(fiha&,"#widgets = widgets\ronb_wdg.rsc",FALSE)
~@f_println(fiha&,"widgets = widgets\magicwdg.rsc",FALSE)
'
~@f_println(fiha&,"#",FALSE)
~@f_println(fiha&,"cancel = cancel,abbruch,annuler,avbryt,anuluj,afbryd,undo",FALSE)
'
~@f_println(fiha&,"# filters = mask, mask, ...",FALSE)
~@f_println(fiha&,"filters = *.*, *.[atpg]*, *.[chs]*, *.l*, *.o*",FALSE)
'
~@f_println(fiha&,"#",FALSE)
~@f_println(fiha&,"# start any other programs with run",FALSE)
~@f_println(fiha&,"#run <path>\<application>",FALSE)
~@f_println(fiha&,"run u:\opt\toswin2\toswin2.app",FALSE)
IF second_stage_flag!=TRUE
~@f_println(fiha&,"run "+em_start_pfad$+"easymint.prg",FALSE)
ENDIF
'
~@f_println(fiha&,"# system shell",FALSE)
~@f_println(fiha&,"setenv AVSERVER "+quote$+"DESKTOP "+quote$,FALSE)
~@f_println(fiha&,"setenv FONTSELECT "+quote$+"DESKTOP "+quote$,FALSE)
~@f_println(fiha&,"#",FALSE)
~@f_println(fiha&,"shell = u:\"+boot$+"\mint\"+mint_version_path$+"\teradesk\desktop.prg",FALSE)
'
~@f_close(fiha&)
RETURN
> PROCEDURE teradesk_copy
LOCAL datei$,old$,new$
DEFMOUSE 2
'
teradesk_pfad$=":\mint\"+mint_version_path$+"\teradesk"
xaaes_tera_pfad$=":\mint\"+mint_version_path$+"\"
IF @exist(boot$+teradesk_pfad$,16)=-33
~@f_mkdir(boot$+teradesk_pfad$)
ENDIF
'
@ug_copy1(em_start_pfad$+"teradesk.zip",boot$+teradesk_pfad$+"\teradesk.zip")
'
'
IF @exist(em_start_pfad$+"unzip.ttp",63)=0
@ug_copy1(em_start_pfad$+"unzip.ttp",boot$+teradesk_pfad$+"\unzip.ttp")
'
LET name$="Unpacking teradesk.zip..."
error%=@start_prg(0,boot$+teradesk_pfad$+"\unzip.ttp","-o "+boot$+teradesk_pfad$+"\teradesk.zip -d "+boot$+teradesk_pfad$,"",name$,install_path$+"\tmp\teradesk.out",install_path$+"\tmp\teradesk.err",TRUE,TRUE,TRUE)
'
old$=boot$+":\xaaes\tdesk2_3.bin"
new$=boot$+":\xaaes\teradesk"
'
rerror%=@frename(old$,new$)
' PRINT "Rename-Error: ";rerror%
@ug_copy1(boot$+teradesk_pfad$+"\examples\teradesk.inf",boot$+teradesk_pfad$+"\teradesk.inf")
ENDIF
~@f_kill(boot$+teradesk_pfad$+"\teradesk.zip")
~@f_kill(boot$+teradesk_pfad$+"\unzip.ttp")
'
@teradesk_inf_create
'
DEFMOUSE 0
RETURN
> PROCEDURE teradesk_inf_create
LOCAL fiha&,tab$,quote$
'
@td_angemeldete_lw
'
IF @exist(boot$+":\mint\"+mint_version_path$+"\teradesk\teradesk.inf",63)=0
~@f_kill(boot$+":\mint\"+mint_version_path$+"\teradesk\teradesk.inf")
ENDIF
'
tab$=CHR$(9)
quote$=CHR$(34)
'
fiha&=@f_create(boot$+":\mint\"+mint_version_path$+"\teradesk\teradesk.inf")
~@f_println(fiha&,"TeraDesk-inf",FALSE)
~@f_println(fiha&,"",FALSE)
~@f_println(fiha&,"; Avoid editing this file by hand",FALSE)
~@f_println(fiha&,"",FALSE)
~@f_println(fiha&,"options=",FALSE)
~@f_println(fiha&,"{",FALSE)
~@f_println(fiha&,tab$+"infv=0x0382",FALSE)
~@f_println(fiha&,tab$+"save=0x0002",FALSE)
~@f_println(fiha&,tab$+"dial=0x0001",FALSE)
~@f_println(fiha&,tab$+"xpre=0x0020",FALSE)
~@f_println(fiha&,tab$+"pref=0x133E",FALSE)
~@f_println(fiha&,tab$+"buff=256",FALSE)
~@f_println(fiha&,tab$+"maxd=256",FALSE)
~@f_println(fiha&,tab$+"plin=80",FALSE)
~@f_println(fiha&,tab$+"tabs=8",FALSE)
~@f_println(fiha&,tab$+"mode=0",FALSE)
~@f_println(fiha&,tab$+"aarr=1",FALSE)
~@f_println(fiha&,tab$+"attr=0x0056",FALSE)
~@f_println(fiha&,tab$+"flds=0x000F",FALSE)
~@f_println(fiha&,tab$+"vidp=0x0003",FALSE)
~@f_println(fiha&,tab$+"vres=2",FALSE)
~@f_println(fiha&,tab$+"dpat=4",FALSE)
~@f_println(fiha&,tab$+"dcol=3",FALSE)
~@f_println(fiha&,"}",FALSE)
~@f_println(fiha&,"",FALSE)
'
~@f_println(fiha&,"shortcuts=",FALSE)
~@f_println(fiha&,"{",FALSE)
~@f_println(fiha&,tab$+"open=0x024F",FALSE)
~@f_println(fiha&,tab$+"show=0x0249",FALSE)
~@f_println(fiha&,tab$+"srch=0x0246",FALSE)
~@f_println(fiha&,tab$+"prin=0x0250",FALSE)
~@f_println(fiha&,tab$+"dele=0x027F",FALSE)
~@f_println(fiha&,tab$+"sela=0x0241",FALSE)
~@f_println(fiha&,tab$+"quit=0x0251",FALSE)
~@f_println(fiha&,tab$+"svop=0x0253",FALSE)
~@f_println(fiha&,"}",FALSE)
~@f_println(fiha&,"",FALSE)
'
~@f_println(fiha&,"filetypes=",FALSE)
~@f_println(fiha&,"{",FALSE)
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.*",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.PRG",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.APP",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.GTP",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.TOS",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.TTP",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.ACC",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.TXT",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ftype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"mask=*.IMG",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
~@f_println(fiha&,"}",FALSE)
'
' Apptypes
'
~@f_println(fiha&,"",FALSE)
~@f_println(fiha&,"apptypes=",FALSE)
~@f_println(fiha&,"{",FALSE)
~@f_println(fiha&,tab$+"ptype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"name=*.PRG",FALSE)
~@f_println(fiha&,tab$+tab$+"flag=0x2001",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ptype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"name=*.APP",FALSE)
~@f_println(fiha&,tab$+tab$+"flag=0x2001",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ptype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"name=*.GTP",FALSE)
~@f_println(fiha&,tab$+tab$+"appt=1",FALSE)
~@f_println(fiha&,tab$+tab$+"flag=0x2001",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ptype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"name=*.TOS",FALSE)
~@f_println(fiha&,tab$+tab$+"appt=3",FALSE)
~@f_println(fiha&,tab$+tab$+"flag=0x2000",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+"ptype=",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"name=*.TTP",FALSE)
~@f_println(fiha&,tab$+tab$+"appt=4",FALSE)
~@f_println(fiha&,tab$+tab$+"flag=0x2000",FALSE)
~@f_println(fiha&,tab$+"}",FALSE)
~@f_println(fiha&,"}",FALSE)
'
' Icontypes
'
~@f_println(fiha&,"",FALSE)
~@f_println(fiha&,"icontypes=",FALSE)
~@f_println(fiha&,"{",FALSE)
~@f_println(fiha&,tab$+"files",FALSE)
~@f_println(fiha&,tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+"itype=",FALSE)
~@f_println(fiha&,tab$+tab$+"{",FALSE)
~@f_println(fiha&,tab$+tab$+tab$+"mask=*.TXT",FALSE)
~@f_println(fiha&,tab$+tab$+tab$+"name=TEXT@FILE",FALSE)
~@f_println(fiha&,tab$+tab$+"}",FALSE)
'
~@f_println(fiha&,tab$+tab$+"itype=",FALSE)