home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-23 | 5.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: setup.c.bin
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Thu Feb 16 07:00:11 1989, modified Fri Jan 26 14:44:16 1990, creator Think C, type ASCII, 5505 bytes "setup.c"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 73 65 74 75 70 2e | 63 00 00 00 00 00 00 00 |..setup.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 15 81 00 | 00 00 00 a0 20 68 4b a1 |........|.... hK.|
|00000060| e6 59 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Y......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 0d 20 2a 09 73 65 74 | 75 70 2e 63 0d 20 2a 0d |*. *.set|up.c. *.|
|000000e0| 20 2a 09 49 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f | *.Initi|alizatio|
|000000f0| 6e 20 53 65 67 6d 65 6e | 74 20 52 6f 75 74 69 6e |n Segmen|t Routin|
|00000100| 65 73 0d 20 2a 0d 20 2a | 09 57 72 69 74 74 65 6e |es. *. *|.Written|
|00000110| 20 62 79 20 50 61 63 6f | 20 58 61 6e 64 65 72 20 | by Paco| Xander |
|00000120| 4e 61 74 68 61 6e 0d 20 | 2a 09 a9 31 39 39 30 2c |Nathan. |*..1990,|
|00000130| 20 4d 6f 74 6f 72 6f 6c | 61 20 49 6e 63 2e 20 20 | Motorol|a Inc. |
|00000140| 50 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 20 73 6f |Public d|omain so|
|00000150| 75 72 63 65 20 63 6f 64 | 65 2e 0d 20 2a 2a 2a 2a |urce cod|e.. ****|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 23 |********|****/..#|
|000001b0| 69 6e 63 6c 75 64 65 20 | 22 61 70 70 6c 69 63 2e |include |"applic.|
|000001c0| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 77 69 6e |h".#incl|ude "win|
|000001d0| 64 6f 77 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |dow.h".#|include |
|000001e0| 22 64 69 61 6c 6f 67 2e | 68 22 0d 23 69 6e 63 6c |"dialog.|h".#incl|
|000001f0| 75 64 65 20 22 63 6f 6e | 74 65 78 74 2e 68 22 0d |ude "con|text.h".|
|00000200| 23 69 6e 63 6c 75 64 65 | 20 22 6c 69 73 74 2e 68 |#include| "list.h|
|00000210| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 74 65 78 74 |".#inclu|de "text|
|00000220| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 64 6f |.h".#inc|lude "do|
|00000230| 63 75 6d 65 6e 74 2e 68 | 22 0d 23 69 6e 63 6c 75 |cument.h|".#inclu|
|00000240| 64 65 20 22 65 72 72 6f | 72 2e 68 22 0d 23 69 6e |de "erro|r.h".#in|
|00000250| 63 6c 75 64 65 20 22 70 | 72 69 6e 74 2e 68 22 0d |clude "p|rint.h".|
|00000260| 23 69 6e 63 6c 75 64 65 | 20 22 61 62 6f 75 74 2e |#include| "about.|
|00000270| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 3c 53 65 67 |h".#incl|ude <Seg|
|00000280| 6d 65 6e 74 4c 64 72 2e | 68 3e 0d 23 69 6e 63 6c |mentLdr.|h>.#incl|
|00000290| 75 64 65 20 3c 4f 53 55 | 74 69 6c 2e 68 3e 0d 23 |ude <OSU|til.h>.#|
|000002a0| 69 6e 63 6c 75 64 65 20 | 22 73 65 74 75 70 2e 68 |include |"setup.h|
|000002b0| 22 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 74 65 73 |"..#incl|ude "tes|
|000002c0| 74 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 67 |t.h".#in|clude "g|
|000002d0| 6e 6f 73 69 73 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |nosis.h"|.#includ|
|000002e0| 65 20 22 61 6e 61 6c 79 | 73 69 73 2e 68 22 0d 0d |e "analy|sis.h"..|
|000002f0| 0d 23 64 65 66 69 6e 65 | 20 55 6e 49 6d 70 6c 65 |.#define| UnImple|
|00000300| 6d 65 6e 74 65 64 54 72 | 61 70 09 30 78 39 66 0d |mentedTr|ap.0x9f.|
|00000310| 23 64 65 66 69 6e 65 20 | 57 61 69 74 4e 65 78 74 |#define |WaitNext|
|00000320| 45 76 65 6e 74 54 72 61 | 70 09 30 78 36 30 0d 0d |EventTra|p.0x60..|
|00000330| 0d 23 69 66 64 65 66 20 | 50 52 4f 54 4f 54 59 50 |.#ifdef |PROTOTYP|
|00000340| 45 53 0d 2f 2a 20 4c 6f | 63 61 6c 20 46 75 6e 63 |ES./* Lo|cal Func|
|00000350| 74 69 6f 6e 20 50 72 6f | 74 6f 74 79 70 65 73 0d |tion Pro|totypes.|
|00000360| 20 2a 2f 0d 76 6f 69 64 | 20 53 65 74 75 70 41 6e | */.void| SetupAn|
|00000370| 74 69 42 75 67 20 28 76 | 6f 69 64 29 3b 0d 76 6f |tiBug (v|oid);.vo|
|00000380| 69 64 20 53 65 74 75 70 | 52 73 72 63 20 28 76 6f |id Setup|Rsrc (vo|
|00000390| 69 64 29 3b 0d 76 6f 69 | 64 20 53 65 74 75 70 4c |id);.voi|d SetupL|
|000003a0| 61 4d 61 63 68 69 6e 65 | 20 28 76 6f 69 64 29 3b |aMachine| (void);|
|000003b0| 0d 76 6f 69 64 20 53 65 | 74 75 70 4d 65 6e 75 73 |.void Se|tupMenus|
|000003c0| 20 28 76 6f 69 64 29 3b | 0d 76 6f 69 64 20 53 65 | (void);|.void Se|
|000003d0| 74 75 70 57 69 6e 64 6f | 77 73 20 28 76 6f 69 64 |tupWindo|ws (void|
|000003e0| 29 3b 0d 23 65 6e 64 69 | 66 0d 09 0d 0d 2f 2a 20 |);.#endi|f..../* |
|000003f0| 49 6e 69 74 69 61 74 65 | 20 76 61 72 69 6f 75 73 |Initiate| various|
|00000400| 20 61 6e 74 69 2d 62 75 | 67 67 69 6e 67 20 6d 65 | anti-bu|gging me|
|00000410| 61 73 75 72 65 73 0d 20 | 2a 2f 0d 73 74 61 74 69 |asures. |*/.stati|
|00000420| 63 20 76 6f 69 64 0d 53 | 65 74 75 70 41 6e 74 69 |c void.S|etupAnti|
|00000430| 42 75 67 20 28 29 0d 7b | 0d 23 69 66 64 65 66 20 |Bug ().{|.#ifdef |
|00000440| 44 45 56 45 4c 4f 50 49 | 4e 47 0d 09 72 65 67 69 |DEVELOPI|NG..regi|
|00000450| 73 74 65 72 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |ster uns|igned lo|
|00000460| 6e 67 20 2a 7a 65 72 6f | 3b 0d 0d 09 2f 2a 20 46 |ng *zero|;.../* F|
|00000470| 69 72 73 74 2c 20 74 72 | 61 70 20 4e 49 4c 20 72 |irst, tr|ap NIL r|
|00000480| 65 66 65 72 65 6e 63 65 | 73 20 62 79 20 70 6c 61 |eference|s by pla|
|00000490| 63 69 6e 67 20 61 6e 20 | 6f 64 64 20 76 61 6c 75 |cing an |odd valu|
|000004a0| 65 20 6c 6f 6e 67 20 69 | 6e 74 65 67 65 72 20 69 |e long i|nteger i|
|000004b0| 6e 74 6f 20 0d 09 20 2a | 20 74 68 65 20 4e 55 4c |nto .. *| the NUL|
|000004c0| 4c 20 6d 65 6d 6f 72 79 | 20 6c 6f 63 61 74 69 6f |L memory| locatio|
|000004d0| 6e 2e 20 20 4e 42 3a 20 | 74 68 65 20 73 70 65 63 |n. NB: |the spec|
|000004e0| 69 66 69 65 64 20 76 61 | 6c 75 65 20 77 69 6c 6c |ified va|lue will|
|000004f0| 20 63 61 75 73 65 20 61 | 6e 20 61 64 64 72 65 73 | cause a|n addres|
|00000500| 73 0d 09 20 2a 20 65 72 | 72 6f 72 20 6f 6e 20 61 |s.. * er|ror on a|
|00000510| 6e 20 53 45 20 6f 72 20 | 50 6c 75 73 2c 20 61 6e |n SE or |Plus, an|
|00000520| 64 20 61 20 62 75 73 20 | 65 72 72 6f 72 20 6f 6e |d a bus |error on|
|00000530| 20 61 20 49 49 20 6f 72 | 20 6c 61 74 65 72 20 6d | a II or| later m|
|00000540| 6f 64 65 6c 2e 0d 09 20 | 2a 2f 0d 09 7a 65 72 6f |odel... |*/..zero|
|00000550| 20 3d 20 4e 55 4c 4c 3b | 0d 09 2a 7a 65 72 6f 20 | = NULL;|..*zero |
|00000560| 3d 20 30 78 35 46 46 46 | 43 30 30 31 3b 0d 23 65 |= 0x5FFF|C001;.#e|
|00000570| 6e 64 69 66 0d 09 0d 09 | 2f 2a 20 4e 65 78 74 2c |ndif....|/* Next,|
|00000580| 20 74 72 61 70 20 70 6f | 74 65 6e 74 69 61 6c 20 | trap po|tential |
|00000590| 73 74 61 63 6b 20 6f 76 | 65 72 66 6c 6f 77 73 20 |stack ov|erflows |
|000005a0| 62 79 20 70 6c 61 63 69 | 6e 67 20 61 20 72 6f 75 |by placi|ng a rou|
|000005b0| 74 69 6e 65 20 74 68 61 | 74 20 64 69 73 70 6c 61 |tine tha|t displa|
|000005c0| 79 73 0d 09 20 2a 20 61 | 20 77 61 72 6e 69 6e 67 |ys.. * a| warning|
|000005d0| 20 61 6c 65 72 74 20 61 | 73 20 74 68 65 20 67 72 | alert a|s the gr|
|000005e0| 6f 77 20 7a 6f 6e 65 20 | 63 61 6c 6c 62 61 63 6b |ow zone |callback|
|000005f0| 20 72 6f 75 74 69 6e 65 | 0d 09 20 2a 2f 0d 09 53 | routine|.. */..S|
|00000600| 65 74 47 72 6f 77 5a 6f | 6e 65 28 45 72 72 47 72 |etGrowZo|ne(ErrGr|
|00000610| 6f 77 5a 6f 6e 65 29 3b | 0d 0d 09 2f 2a 20 4d 61 |owZone);|.../* Ma|
|00000620| 6b 65 20 73 75 72 65 20 | 74 68 61 74 20 74 68 65 |ke sure |that the|
|00000630| 20 6d 65 6d 6f 72 79 20 | 65 72 72 6f 72 20 61 6c | memory |error al|
|00000640| 65 72 74 20 69 73 20 6c | 6f 61 64 65 64 20 61 6e |ert is l|oaded an|
|00000650| 64 20 6c 6f 63 6b 65 64 | 20 73 6f 20 74 68 61 74 |d locked| so that|
|00000660| 0d 09 20 2a 20 74 68 65 | 20 61 70 70 6c 69 63 61 |.. * the| applica|
|00000670| 74 69 6f 6e 20 63 61 6e | 20 6e 6f 74 69 66 79 20 |tion can| notify |
|00000680| 74 68 65 20 75 73 65 72 | 20 65 76 65 6e 20 69 66 |the user| even if|
|00000690| 20 61 20 6d 65 6d 6f 72 | 79 20 61 6c 6c 6f 63 61 | a memor|y alloca|
|000006a0| 74 69 6f 6e 20 65 72 72 | 6f 72 0d 09 20 2a 20 6f |tion err|or.. * o|
|000006b0| 63 63 75 72 73 2e 0d 09 | 20 2a 2f 0d 09 43 6f 75 |ccurs...| */..Cou|
|000006c0| 6c 64 41 6c 65 72 74 28 | 79 65 73 6e 6f 41 6c 65 |ldAlert(|yesnoAle|
|000006d0| 72 74 49 44 29 3b 0d 0d | 09 2f 2a 20 41 6c 6c 6f |rtID);..|./* Allo|
|000006e0| 63 61 74 65 20 61 20 22 | 61 76 61 74 61 72 20 62 |cate a "|avatar b|
|000006f0| 6c 6f 63 6b 22 20 6f 66 | 20 6d 65 6d 6f 72 79 20 |lock" of| memory |
|00000700| 74 68 61 74 20 63 61 6e | 20 62 65 20 70 75 72 67 |that can| be purg|
|00000710| 65 64 20 61 74 20 74 68 | 65 20 6c 61 73 74 0d 09 |ed at th|e last..|
|00000720| 20 2a 20 72 65 73 6f 72 | 74 2e 20 20 42 6c 65 73 | * resor|t. Bles|
|00000730| 73 65 64 20 62 65 20 74 | 68 65 20 63 6f 6e 63 65 |sed be t|he conce|
|00000740| 70 74 2e 0d 09 20 2a 2f | 0d 09 65 72 72 41 76 61 |pt... */|..errAva|
|00000750| 74 61 72 48 64 6c 20 3d | 20 4e 65 77 48 61 6e 64 |tarHdl =| NewHand|
|00000760| 6c 65 28 34 30 39 38 4c | 29 3b 0d 7d 0d 0d 0d 2f |le(4098L|);.}.../|
|00000770| 2a 20 4c 6f 61 64 20 6d | 69 73 63 65 6c 6c 61 6e |* Load m|iscellan|
|00000780| 65 6f 75 73 20 72 65 73 | 6f 75 72 63 65 73 0d 20 |eous res|ources. |
|00000790| 2a 2f 0d 73 74 61 74 69 | 63 20 76 6f 69 64 0d 53 |*/.stati|c void.S|
|000007a0| 65 74 75 70 52 73 72 63 | 20 28 29 0d 7b 0d 09 72 |etupRsrc| ().{..r|
|000007b0| 65 67 69 73 74 65 72 20 | 53 69 67 6e 65 64 42 79 |egister |SignedBy|
|000007c0| 74 65 20 68 64 6c 53 74 | 61 74 65 3b 0d 09 72 65 |te hdlSt|ate;..re|
|000007d0| 67 69 73 74 65 72 20 48 | 61 6e 64 6c 65 20 73 69 |gister H|andle si|
|000007e0| 63 6e 48 64 6c 3b 0d 09 | 72 65 67 69 73 74 65 72 |cnHdl;..|register|
|000007f0| 20 73 68 6f 72 74 20 69 | 3b 0d 0d 09 2f 2a 20 4c | short i|;.../* L|
|00000800| 6f 61 64 20 74 68 65 20 | 77 61 74 63 68 20 63 75 |oad the |watch cu|
|00000810| 72 73 6f 72 20 66 72 61 | 6d 65 20 70 6f 69 6e 74 |rsor fra|me point|
|00000820| 65 72 20 27 61 63 75 72 | 27 20 72 65 73 6f 75 72 |er 'acur|' resour|
|00000830| 63 65 0d 09 20 2a 2f 0d | 09 69 66 20 28 63 75 72 |ce.. */.|.if (cur|
|00000840| 4c 69 73 74 20 3d 20 28 | 61 63 75 72 48 61 6e 64 |List = (|acurHand|
|00000850| 6c 65 29 20 47 65 74 52 | 65 73 6f 75 72 63 65 28 |le) GetR|esource(|
|00000860| 27 61 63 75 72 27 2c 20 | 57 61 74 63 68 41 43 55 |'acur', |WatchACU|
|00000870| 52 29 29 20 7b 0d 09 09 | 68 64 6c 53 74 61 74 65 |R)) {...|hdlState|
|00000880| 20 3d 20 48 47 65 74 53 | 74 61 74 65 28 63 75 72 | = HGetS|tate(cur|
|00000890| 4c 69 73 74 29 3b 0d 09 | 09 48 4c 6f 63 6b 28 63 |List);..|.HLock(c|
|000008a0| 75 72 4c 69 73 74 20 3d | 20 28 61 63 75 72 48 61 |urList =| (acurHa|
|000008b0| 6e 64 6c 65 29 20 47 65 | 74 52 65 73 6f 75 72 63 |ndle) Ge|tResourc|
|000008c0| 65 28 27 61 63 75 72 27 | 2c 20 57 61 74 63 68 41 |e('acur'|, WatchA|
|000008d0| 43 55 52 29 29 3b 0d 09 | 0d 09 09 2f 2a 20 4c 6f |CUR));..|.../* Lo|
|000008e0| 61 64 20 65 61 63 68 20 | 22 66 72 61 6d 65 22 20 |ad each |"frame" |
|000008f0| 69 6e 20 74 68 65 20 61 | 6e 69 6d 61 74 69 6f 6e |in the a|nimation|
|00000900| 0d 09 09 20 2a 2f 0d 09 | 09 66 6f 72 20 28 69 20 |... */..|.for (i |
|00000910| 3d 20 30 3b 20 69 20 3c | 20 28 2a 63 75 72 4c 69 |= 0; i <| (*curLi|
|00000920| 73 74 29 2d 3e 66 72 61 | 6d 65 73 3b 20 69 2b 2b |st)->fra|mes; i++|
|00000930| 29 0d 09 09 09 28 2a 63 | 75 72 4c 69 73 74 29 2d |)....(*c|urList)-|
|00000940| 3e 63 75 72 73 5b 69 5d | 20 3d 20 47 65 74 43 75 |>curs[i]| = GetCu|
|00000950| 72 73 6f 72 28 48 69 57 | 6f 72 64 28 28 6c 6f 6e |rsor(HiW|ord((lon|
|00000960| 67 29 20 28 2a 63 75 72 | 4c 69 73 74 29 2d 3e 63 |g) (*cur|List)->c|
|00000970| 75 72 73 5b 69 5d 29 29 | 3b 0d 09 0d 09 09 48 53 |urs[i]))|;.....HS|
|00000980| 65 74 53 74 61 74 65 28 | 63 75 72 4c 69 73 74 2c |etState(|curList,|
|00000990| 20 68 64 6c 53 74 61 74 | 65 29 3b 0d 09 7d 0d 7d | hdlStat|e);..}.}|
|000009a0| 0d 0d 0d 2f 2a 20 53 65 | 74 75 70 20 74 68 65 20 |.../* Se|tup the |
|000009b0| 6d 61 63 68 69 6e 65 20 | 63 6f 6e 66 69 67 75 72 |machine |configur|
|000009c0| 61 74 69 6f 6e 0d 20 2a | 2f 0d 73 74 61 74 69 63 |ation. *|/.static|
|000009d0| 20 76 6f 69 64 0d 53 65 | 74 75 70 4c 61 4d 61 63 | void.Se|tupLaMac|
|000009e0| 68 69 6e 65 20 28 29 0d | 7b 0d 09 53 79 73 45 6e |hine ().|{..SysEn|
|000009f0| 76 52 65 63 20 74 68 65 | 57 6f 72 6c 64 3b 0d 0d |vRec the|World;..|
|00000a00| 09 53 79 73 45 6e 76 69 | 72 6f 6e 73 28 31 2c 20 |.SysEnvi|rons(1, |
|00000a10| 26 74 68 65 57 6f 72 6c | 64 29 3b 0d 0d 09 6c 61 |&theWorl|d);...la|
|00000a20| 4d 61 63 68 69 6e 65 2e | 68 61 73 57 4e 45 20 3d |Machine.|hasWNE =|
|00000a30| 20 47 65 74 54 72 61 70 | 41 64 64 72 65 73 73 28 | GetTrap|Address(|
|00000a40| 57 61 69 74 4e 65 78 74 | 45 76 65 6e 74 54 72 61 |WaitNext|EventTra|
|00000a50| 70 29 20 21 3d 20 47 65 | 74 54 72 61 70 41 64 64 |p) != Ge|tTrapAdd|
|00000a60| 72 65 73 73 28 55 6e 49 | 6d 70 6c 65 6d 65 6e 74 |ress(UnI|mplement|
|00000a70| 65 64 54 72 61 70 29 3b | 0d 09 6c 61 4d 61 63 68 |edTrap);|..laMach|
|00000a80| 69 6e 65 2e 68 61 73 53 | 6f 75 6e 64 20 3d 20 28 |ine.hasS|ound = (|
|00000a90| 74 68 65 57 6f 72 6c 64 | 2e 6d 61 63 68 69 6e 65 |theWorld|.machine|
|00000aa0| 54 79 70 65 20 3d 3d 20 | 65 6e 76 4d 61 63 68 55 |Type == |envMachU|
|00000ab0| 6e 6b 6e 6f 77 6e 29 20 | 7c 7c 20 28 74 68 65 57 |nknown) ||| (theW|
|00000ac0| 6f 72 6c 64 2e 6d 61 63 | 68 69 6e 65 54 79 70 65 |orld.mac|hineType|
|00000ad0| 20 3d 3d 20 65 6e 76 4d | 61 63 49 49 29 20 7c 7c | == envM|acII) |||
|00000ae0| 20 28 74 68 65 57 6f 72 | 6c 64 2e 73 79 73 74 65 | (theWor|ld.syste|
|00000af0| 6d 56 65 72 73 69 6f 6e | 20 3e 3d 20 30 78 36 30 |mVersion| >= 0x60|
|00000b00| 30 29 3b 0d 09 6c 61 4d | 61 63 68 69 6e 65 2e 68 |0);..laM|achine.h|
|00000b10| 61 73 43 6f 6c 6f 72 20 | 3d 20 74 68 65 57 6f 72 |asColor |= theWor|
|00000b20| 6c 64 2e 68 61 73 43 6f | 6c 6f 72 51 44 3b 0d 09 |ld.hasCo|lorQD;..|
|00000b30| 6c 61 4d 61 63 68 69 6e | 65 2e 69 6e 42 61 63 6b |laMachin|e.inBack|
|00000b40| 67 72 6f 75 6e 64 20 3d | 20 46 41 4c 53 45 3b 0d |ground =| FALSE;.|
|00000b50| 7d 0d 0d 0d 2f 2a 20 53 | 65 74 75 70 20 74 68 65 |}.../* S|etup the|
|00000b60| 20 6d 65 6e 75 20 62 61 | 72 20 61 6e 64 20 6d 65 | menu ba|r and me|
|00000b70| 6e 75 20 68 61 6e 64 6c | 65 73 0d 20 2a 2f 0d 73 |nu handl|es. */.s|
|00000b80| 74 61 74 69 63 20 76 6f | 69 64 0d 53 65 74 75 70 |tatic vo|id.Setup|
|00000b90| 4d 65 6e 75 73 20 28 29 | 0d 7b 0d 09 72 65 67 69 |Menus ()|.{..regi|
|00000ba0| 73 74 65 72 20 73 68 6f | 72 74 20 69 3b 0d 0d 09 |ster sho|rt i;...|
|00000bb0| 2f 2a 20 49 6e 73 74 61 | 6c 6c 20 61 6c 6c 20 4d |/* Insta|ll all M|
|00000bc0| 42 61 72 20 61 6e 64 20 | 68 69 65 72 61 72 63 68 |Bar and |hierarch|
|00000bd0| 69 63 61 6c 20 6d 65 6e | 75 73 20 69 6e 74 6f 20 |ical men|us into |
|00000be0| 74 68 65 20 6d 65 6e 75 | 20 62 61 72 0d 09 20 2a |the menu| bar.. *|
|00000bf0| 2f 0d 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |/..for (|i = 0; i|
|00000c00| 20 3c 20 4d 41 58 4d 45 | 4e 55 3b 20 69 2b 2b 29 | < MAXME|NU; i++)|
|00000c10| 20 7b 0d 09 09 41 70 70 | 6c 53 70 69 6e 43 75 72 | {...App|lSpinCur|
|00000c20| 73 28 46 41 4c 53 45 29 | 3b 0d 0d 09 09 69 66 20 |s(FALSE)|;....if |
|00000c30| 28 6d 65 6e 75 5b 69 5d | 20 3d 20 47 65 74 4d 65 |(menu[i]| = GetMe|
|00000c40| 6e 75 28 52 53 52 43 42 | 41 53 45 20 2b 20 69 29 |nu(RSRCB|ASE + i)|
|00000c50| 29 0d 09 09 09 49 6e 73 | 65 72 74 4d 65 6e 75 28 |)....Ins|ertMenu(|
|00000c60| 6d 65 6e 75 5b 69 5d 2c | 20 30 29 3b 0d 09 7d 0d |menu[i],| 0);..}.|
|00000c70| 09 0d 09 2f 2a 20 41 64 | 64 20 74 68 65 20 64 65 |.../* Ad|d the de|
|00000c80| 73 6b 20 61 63 63 65 73 | 73 6f 72 69 65 73 2c 20 |sk acces|sories, |
|00000c90| 65 74 63 2e 20 66 72 6f | 6d 20 74 68 65 20 53 79 |etc. fro|m the Sy|
|00000ca0| 73 74 65 6d 20 61 6e 64 | 20 64 72 61 77 20 74 68 |stem and| draw th|
|00000cb0| 65 20 6d 65 6e 75 20 62 | 61 72 0d 09 20 2a 2f 0d |e menu b|ar.. */.|
|00000cc0| 09 69 66 20 28 6d 65 6e | 75 5b 61 70 70 6c 65 4d |.if (men|u[appleM|
|00000cd0| 5d 29 0d 09 09 41 64 64 | 52 65 73 4d 65 6e 75 28 |])...Add|ResMenu(|
|00000ce0| 6d 65 6e 75 5b 61 70 70 | 6c 65 4d 5d 2c 20 27 44 |menu[app|leM], 'D|
|00000cf0| 52 56 52 27 29 3b 0d 09 | 09 0d 09 44 72 61 77 4d |RVR');..|...DrawM|
|00000d00| 65 6e 75 42 61 72 28 29 | 3b 0d 7d 0d 0d 0d 2f 2a |enuBar()|;.}.../*|
|00000d10| 20 49 6e 69 74 69 61 6c | 69 7a 65 20 74 68 65 20 | Initial|ize the |
|00000d20| 61 70 70 6c 69 63 61 74 | 69 6f 6e 27 73 20 77 69 |applicat|ion's wi|
|00000d30| 6e 64 6f 77 73 0d 20 2a | 2f 0d 73 74 61 74 69 63 |ndows. *|/.static|
|00000d40| 20 76 6f 69 64 0d 53 65 | 74 75 70 57 69 6e 64 6f | void.Se|tupWindo|
|00000d50| 77 73 20 28 29 0d 7b 0d | 09 2f 2a 20 53 65 74 75 |ws ().{.|./* Setu|
|00000d60| 70 20 73 63 72 65 65 6e | 2f 77 69 6e 64 6f 77 20 |p screen|/window |
|00000d70| 6c 69 6d 69 74 73 20 74 | 6f 20 66 69 74 20 74 68 |limits t|o fit th|
|00000d80| 69 73 20 70 61 72 74 69 | 63 75 6c 61 72 20 73 63 |is parti|cular sc|
|00000d90| 72 65 65 6e 0d 09 20 2a | 2f 0d 09 67 72 6f 77 41 |reen.. *|/..growA|
|00000da0| 72 65 61 20 3d 20 73 63 | 72 65 65 6e 42 69 74 73 |rea = sc|reenBits|
|00000db0| 2e 62 6f 75 6e 64 73 3b | 0d 09 67 72 6f 77 41 72 |.bounds;|..growAr|
|00000dc0| 65 61 2e 74 6f 70 20 2b | 3d 20 47 65 74 4d 42 61 |ea.top +|= GetMBa|
|00000dd0| 72 48 65 69 67 68 74 28 | 29 3b 0d 09 64 72 61 67 |rHeight(|);..drag|
|00000de0| 41 72 65 61 20 3d 20 67 | 72 6f 77 41 72 65 61 3b |Area = g|rowArea;|
|00000df0| 0d 09 49 6e 73 65 74 52 | 65 63 74 28 26 64 72 61 |..InsetR|ect(&dra|
|00000e00| 67 41 72 65 61 2c 20 35 | 2c 20 35 29 3b 0d 7d 0d |gArea, 5|, 5);.}.|
|00000e10| 0d 0d 2f 2a 20 49 6e 69 | 74 69 61 6c 69 7a 65 20 |../* Ini|tialize |
|00000e20| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000e30| 61 6e 64 20 70 72 6f 63 | 65 73 73 20 74 68 65 20 |and proc|ess the |
|00000e40| 46 69 6e 64 65 72 20 6c | 61 75 6e 63 68 20 69 6e |Finder l|aunch in|
|00000e50| 66 6f 0d 20 2a 2f 0d 76 | 6f 69 64 0d 53 65 74 75 |fo. */.v|oid.Setu|
|00000e60| 70 41 70 70 6c 20 28 29 | 0d 7b 0d 09 72 65 67 69 |pAppl ()|.{..regi|
|00000e70| 73 74 65 72 20 48 61 6e | 64 6c 65 20 6c 75 63 68 |ster Han|dle luch|
|00000e80| 48 64 6c 20 3d 20 4e 55 | 4c 4c 3b 0d 09 72 65 67 |Hdl = NU|LL;..reg|
|00000e90| 69 73 74 65 72 20 6c 6f | 6e 67 20 77 61 69 74 54 |ister lo|ng waitT|
|00000ea0| 69 6d 65 3b 0d 09 45 76 | 65 6e 74 52 65 63 6f 72 |ime;..Ev|entRecor|
|00000eb0| 64 20 74 68 65 45 76 65 | 6e 74 3b 0d 09 41 70 70 |d theEve|nt;..App|
|00000ec0| 46 69 6c 65 20 74 68 65 | 46 69 6c 65 3b 0d 09 73 |File the|File;..s|
|00000ed0| 68 6f 72 74 20 74 68 65 | 4d 73 67 3b 0d 09 73 68 |hort the|Msg;..sh|
|00000ee0| 6f 72 74 20 6e 44 6f 63 | 73 3b 0d 0d 09 2f 2a 20 |ort nDoc|s;.../* |
|00000ef0| 41 6c 6c 6f 63 61 74 65 | 20 61 20 72 65 61 73 6f |Allocate| a reaso|
|00000f00| 6e 61 62 6c 79 20 68 75 | 67 65 20 68 65 61 70 20 |nably hu|ge heap |
|00000f10| 66 6f 72 20 6f 75 72 20 | 62 72 69 73 74 6c 69 6e |for our |bristlin|
|00000f20| 67 20 79 6f 75 6e 67 20 | 6d 65 6d 6f 72 79 20 68 |g young |memory h|
|00000f30| 6f 67 0d 09 20 2a 2f 0d | 09 4d 61 78 41 70 70 6c |og.. */.|.MaxAppl|
|00000f40| 5a 6f 6e 65 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |Zone();.|.MoreMas|
|00000f50| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000f60| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000f70| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000f80| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000f90| 74 65 72 73 28 29 3b 0d | 0d 09 2f 2a 20 52 65 71 |ters();.|../* Req|
|00000fa0| 75 69 72 65 64 20 4d 61 | 63 20 54 6f 6f 6c 62 6f |uired Ma|c Toolbo|
|00000fb0| 78 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |x initia|lization|
|00000fc0| 20 63 61 6c 6c 73 0d 09 | 20 2a 2f 0d 09 46 6c 75 | calls..| */..Flu|
|00000fd0| 73 68 45 76 65 6e 74 73 | 28 65 76 65 72 79 45 76 |shEvents|(everyEv|
|00000fe0| 65 6e 74 2c 20 30 29 3b | 0d 09 49 6e 69 74 47 72 |ent, 0);|..InitGr|
|00000ff0| 61 66 28 26 74 68 65 50 | 6f 72 74 29 3b 0d 09 49 |af(&theP|ort);..I|
|00001000| 6e 69 74 43 75 72 73 6f | 72 28 29 3b 0d 09 49 6e |nitCurso|r();..In|
|00001010| 69 74 46 6f 6e 74 73 28 | 29 3b 0d 09 49 6e 69 74 |itFonts(|);..Init|
|00001020| 57 69 6e 64 6f 77 73 28 | 29 3b 0d 09 49 6e 69 74 |Windows(|);..Init|
|00001030| 4d 65 6e 75 73 28 29 3b | 0d 09 54 45 49 6e 69 74 |Menus();|..TEInit|
|00001040| 28 29 3b 0d 09 49 6e 69 | 74 44 69 61 6c 6f 67 73 |();..Ini|tDialogs|
|00001050| 28 4e 55 4c 4c 29 3b 0d | 09 47 65 74 44 61 74 65 |(NULL);.|.GetDate|
|00001060| 54 69 6d 65 28 28 75 6e | 73 69 67 6e 65 64 20 6c |Time((un|signed l|
|00001070| 6f 6e 67 20 2a 29 20 26 | 72 61 6e 64 53 65 65 64 |ong *) &|randSeed|
|00001080| 29 3b 0d 0d 09 2f 2a 20 | 53 65 74 75 70 20 74 68 |);.../* |Setup th|
|00001090| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 72 65 |e applic|ation re|
|000010a0| 73 6f 75 72 63 65 73 20 | 61 6e 64 20 64 61 74 61 |sources |and data|
|000010b0| 20 73 74 72 75 63 74 75 | 72 65 73 0d 09 20 2a 2f | structu|res.. */|
|000010c0| 0d 09 53 65 74 75 70 41 | 6e 74 69 42 75 67 28 29 |..SetupA|ntiBug()|
|000010d0| 3b 0d 09 53 65 74 75 70 | 52 73 72 63 28 29 3b 0d |;..Setup|Rsrc();.|
|000010e0| 0d 09 53 65 74 75 70 4c | 61 4d 61 63 68 69 6e 65 |..SetupL|aMachine|
|000010f0| 28 29 3b 0d 09 41 70 70 | 6c 53 70 69 6e 43 75 72 |();..App|lSpinCur|
|00001100| 73 28 54 52 55 45 29 3b | 0d 0d 09 53 65 74 75 70 |s(TRUE);|...Setup|
|00001110| 4d 65 6e 75 73 28 29 3b | 0d 09 41 70 70 6c 53 70 |Menus();|..ApplSp|
|00001120| 69 6e 43 75 72 73 28 46 | 41 4c 53 45 29 3b 0d 0d |inCurs(F|ALSE);..|
|00001130| 09 53 65 74 75 70 57 69 | 6e 64 6f 77 73 28 29 3b |.SetupWi|ndows();|
|00001140| 0d 09 41 70 70 6c 53 70 | 69 6e 43 75 72 73 28 46 |..ApplSp|inCurs(F|
|00001150| 41 4c 53 45 29 3b 0d 0d | 09 2f 2a 20 41 70 70 6c |ALSE);..|./* Appl|
|00001160| 69 63 61 74 69 6f 6e 20 | 73 70 65 63 69 66 69 63 |ication |specific|
|00001170| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 0d | initial|ization.|
|00001180| 09 20 2a 2f 0d 09 69 66 | 20 28 6c 61 4d 61 63 68 |. */..if| (laMach|
|00001190| 69 6e 65 2e 68 61 73 43 | 6f 6c 6f 72 29 0d 09 09 |ine.hasC|olor)...|
|000011a0| 49 6e 69 74 50 61 6c 65 | 74 74 65 73 28 29 3b 0d |InitPale|ttes();.|
|000011b0| 0d 09 64 50 74 72 41 6e | 61 6c 20 3d 20 44 6c 6f |..dPtrAn|al = Dlo|
|000011c0| 67 57 69 6e 64 6f 77 28 | 61 6e 61 6c 44 6c 6f 67 |gWindow(|analDlog|
|000011d0| 49 44 29 3b 0d 09 77 50 | 74 72 54 65 78 74 20 3d |ID);..wP|trText =|
|000011e0| 20 54 65 78 74 57 69 6e | 64 6f 77 28 77 69 64 54 | TextWin|dow(widT|
|000011f0| 65 78 74 2c 20 35 2c 20 | 35 2c 20 54 52 55 45 29 |ext, 5, |5, TRUE)|
|00001200| 3b 0d 09 77 50 74 72 47 | 6e 6f 73 20 3d 20 4c 69 |;..wPtrG|nos = Li|
|00001210| 73 74 57 69 6e 64 6f 77 | 28 77 69 64 47 6e 6f 73 |stWindow|(widGnos|
|00001220| 2c 20 30 2c 20 30 2c 20 | 54 52 55 45 29 3b 0d 0d |, 0, 0, |TRUE);..|
|00001230| 09 77 50 74 72 54 65 73 | 74 20 3d 20 57 69 6e 64 |.wPtrTes|t = Wind|
|00001240| 41 6c 6c 6f 63 61 74 65 | 28 77 69 64 54 65 73 74 |Allocate|(widTest|
|00001250| 2c 20 54 52 55 45 29 3b | 0d 09 54 65 73 74 53 65 |, TRUE);|..TestSe|
|00001260| 74 75 70 28 29 3b 0d 09 | 0d 09 2f 2a 20 50 72 65 |tup();..|../* Pre|
|00001270| 73 65 6e 74 20 61 6e 20 | 6f 6d 69 6e 6f 75 73 6c |sent an |ominousl|
|00001280| 79 20 74 68 72 65 61 74 | 65 6e 69 6e 67 20 63 6f |y threat|ening co|
|00001290| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 2c 20 |pyright |notice, |
|000012a0| 69 65 2e 20 73 68 6f 77 | 20 74 68 65 20 61 62 6f |ie. show| the abo|
|000012b0| 75 74 20 0d 09 20 2a 20 | 64 69 61 6c 6f 67 20 61 |ut .. * |dialog a|
|000012c0| 73 20 61 20 73 70 6c 61 | 73 68 20 73 63 72 65 65 |s a spla|sh scree|
|000012d0| 6e 2e 0d 09 20 2a 2f 0d | 09 41 62 6f 75 74 41 70 |n... */.|.AboutAp|
|000012e0| 70 6c 28 29 3b 0d 09 77 | 61 69 74 54 69 6d 65 20 |pl();..w|aitTime |
|000012f0| 3d 20 54 69 63 6b 43 6f | 75 6e 74 28 29 20 2b 20 |= TickCo|unt() + |
|00001300| 31 32 30 4c 3b 0d 0d 09 | 2f 2a 20 41 6c 6c 6f 77 |120L;...|/* Allow|
|00001310| 20 74 68 65 20 75 73 65 | 72 20 74 69 6d 65 20 74 | the use|r time t|
|00001320| 6f 20 66 69 6e 69 73 68 | 20 72 65 61 64 69 6e 67 |o finish| reading|
|00001330| 20 74 68 65 20 63 6f 70 | 79 72 69 67 68 74 20 6e | the cop|yright n|
|00001340| 6f 74 69 63 65 0d 09 20 | 2a 2f 0d 09 77 68 69 6c |otice.. |*/..whil|
|00001350| 65 20 28 54 69 63 6b 43 | 6f 75 6e 74 28 29 20 3c |e (TickC|ount() <|
|00001360| 20 77 61 69 74 54 69 6d | 65 29 20 7b 0d 09 09 53 | waitTim|e) {...S|
|00001370| 79 73 74 65 6d 54 61 73 | 6b 28 29 3b 0d 09 09 41 |ystemTas|k();...A|
|00001380| 70 70 6c 53 70 69 6e 43 | 75 72 73 28 46 41 4c 53 |pplSpinC|urs(FALS|
|00001390| 45 29 3b 0d 09 09 28 76 | 6f 69 64 29 20 47 65 74 |E);...(v|oid) Get|
|000013a0| 4e 65 78 74 45 76 65 6e | 74 28 65 76 65 72 79 45 |NextEven|t(everyE|
|000013b0| 76 65 6e 74 2c 20 26 74 | 68 65 45 76 65 6e 74 29 |vent, &t|heEvent)|
|000013c0| 3b 0d 0d 09 09 69 66 20 | 28 49 73 44 69 61 6c 6f |;....if |(IsDialo|
|000013d0| 67 45 76 65 6e 74 28 26 | 74 68 65 45 76 65 6e 74 |gEvent(&|theEvent|
|000013e0| 29 29 0d 09 09 09 44 6c | 6f 67 4d 6f 64 65 6c 65 |))....Dl|ogModele|
|000013f0| 73 73 45 76 65 6e 74 28 | 26 74 68 65 45 76 65 6e |ssEvent(|&theEven|
|00001400| 74 29 3b 0d 09 7d 0d 0d | 09 57 69 6e 64 43 6c 6f |t);..}..|.WindClo|
|00001410| 73 65 28 28 57 69 6e 64 | 6f 77 50 74 72 29 20 64 |se((Wind|owPtr) d|
|00001420| 50 74 72 41 62 6f 75 74 | 29 3b 0d 09 57 69 6e 64 |PtrAbout|);..Wind|
|00001430| 53 77 69 74 63 68 28 64 | 50 74 72 41 6e 61 6c 2c |Switch(d|PtrAnal,|
|00001440| 20 46 41 4c 53 45 29 3b | 0d 0d 09 2f 2a 20 43 68 | FALSE);|.../* Ch|
|00001450| 65 61 70 20 68 61 63 6b | 20 74 6f 20 6a 61 6d 20 |eap hack| to jam |
|00001460| 74 68 65 20 75 73 65 72 | 20 6d 6f 64 65 20 73 65 |the user| mode se|
|00001470| 74 74 69 6e 67 0d 09 20 | 2a 2f 0d 09 69 66 20 28 |tting.. |*/..if (|
|00001480| 6c 75 63 68 48 64 6c 20 | 3d 20 47 65 74 52 65 73 |luchHdl |= GetRes|
|00001490| 6f 75 72 63 65 28 4c 55 | 43 48 5f 54 41 47 2c 20 |ource(LU|CH_TAG, |
|000014a0| 52 53 52 43 42 41 53 45 | 29 29 20 7b 0d 09 09 74 |RSRCBASE|)) {...t|
|000014b0| 65 73 74 55 73 65 72 20 | 3d 20 46 41 4c 53 45 3b |estUser |= FALSE;|
|000014c0| 0d 09 09 52 65 6c 65 61 | 73 65 52 65 73 6f 75 72 |...Relea|seResour|
|000014d0| 63 65 28 6c 75 63 68 48 | 64 6c 29 3b 0d 09 7d 0d |ce(luchH|dl);..}.|
|000014e0| 0d 09 2f 2a 20 47 65 74 | 20 74 68 65 20 66 69 6e |../* Get| the fin|
|000014f0| 64 65 72 20 6c 61 75 6e | 63 68 20 69 6e 66 6f 20 |der laun|ch info |
|00001500| 74 68 65 6e 20 6f 70 65 | 6e 20 6f 72 20 70 72 69 |then ope|n or pri|
|00001510| 6e 74 20 61 6e 79 20 6c | 61 75 6e 63 68 65 64 20 |nt any l|aunched |
|00001520| 64 6f 63 75 6d 65 6e 74 | 73 0d 09 20 2a 2f 0d 09 |document|s.. */..|
|00001530| 43 6f 75 6e 74 41 70 70 | 46 69 6c 65 73 28 26 74 |CountApp|Files(&t|
|00001540| 68 65 4d 73 67 2c 20 26 | 6e 44 6f 63 73 29 3b 0d |heMsg, &|nDocs);.|
|00001550| 0d 09 69 66 20 28 6e 44 | 6f 63 73 20 3e 20 30 29 |..if (nD|ocs > 0)|
|00001560| 20 7b 0d 09 09 47 65 74 | 41 70 70 46 69 6c 65 73 | {...Get|AppFiles|
|00001570| 28 31 2c 20 26 74 68 65 | 46 69 6c 65 29 3b 0d 09 |(1, &the|File);..|
|00001580| 09 41 70 70 6c 53 70 69 | 6e 43 75 72 73 28 46 41 |.ApplSpi|nCurs(FA|
|00001590| 4c 53 45 29 3b 0d 0d 09 | 09 44 6f 63 4f 70 65 6e |LSE);...|.DocOpen|
|000015a0| 46 69 6c 65 28 77 50 74 | 72 47 6e 6f 73 2c 20 74 |File(wPt|rGnos, t|
|000015b0| 68 65 46 69 6c 65 2e 66 | 4e 61 6d 65 2c 20 74 68 |heFile.f|Name, th|
|000015c0| 65 46 69 6c 65 2e 76 52 | 65 66 4e 75 6d 29 3b 0d |eFile.vR|efNum);.|
|000015d0| 09 09 43 6c 72 41 70 70 | 46 69 6c 65 73 28 31 29 |..ClrApp|Files(1)|
|000015e0| 3b 0d 09 7d 0d 09 65 6c | 73 65 0d 09 09 44 6f 63 |;..}..el|se...Doc|
|000015f0| 4e 65 77 28 77 50 74 72 | 47 6e 6f 73 29 3b 0d 7d |New(wPtr|Gnos);.}|
|00001600| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+