home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-13 | 4.0 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
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, Mon Aug 22 12:42:46 1988, modified Wed Sep 7 17:53:00 1988, creator Think C, type ASCII, 3893 bytes "volume.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 08 76 6f 6c 75 6d 65 | 2e 63 00 00 00 00 00 00 |..volume|.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 0f 35 00 | 00 00 00 9f 35 ff 86 9f |......5.|....5...|
|00000060| 4b 60 3c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K`<.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 61 63 54 79 70 |#include| <MacTyp|
|00000090| 65 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|000000a0| 51 75 69 63 6b 44 72 61 | 77 2e 68 3e 0d 23 69 6e |QuickDra|w.h>.#in|
|000000b0| 63 6c 75 64 65 20 3c 57 | 69 6e 64 6f 77 4d 67 72 |clude <W|indowMgr|
|000000c0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 44 69 |.h>.#inc|lude <Di|
|000000d0| 61 6c 6f 67 4d 67 72 2e | 68 3e 0d 23 69 6e 63 6c |alogMgr.|h>.#incl|
|000000e0| 75 64 65 20 3c 45 76 65 | 6e 74 4d 67 72 2e 68 3e |ude <Eve|ntMgr.h>|
|000000f0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 46 69 6c 65 4d |.#includ|e <FileM|
|00000100| 67 72 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |gr.h>.#i|nclude <|
|00000110| 48 46 53 2e 68 3e 0d 0d | 23 69 6e 63 6c 75 64 65 |HFS.h>..|#include|
|00000120| 20 22 66 69 78 2e 68 22 | 0d 0d 23 64 65 66 69 6e | "fix.h"|..#defin|
|00000130| 65 20 52 45 54 55 52 4e | 5f 4b 45 59 20 30 78 32 |e RETURN|_KEY 0x2|
|00000140| 34 0d 23 64 65 66 69 6e | 65 20 54 41 42 5f 4b 45 |4.#defin|e TAB_KE|
|00000150| 59 20 20 20 20 30 78 33 | 30 0d 23 64 65 66 69 6e |Y 0x3|0.#defin|
|00000160| 65 20 45 4e 54 45 52 5f | 4b 45 59 20 20 30 78 33 |e ENTER_|KEY 0x3|
|00000170| 34 0d 0d 65 6e 75 6d 20 | 7b 0d 09 49 54 45 4d 5f |4..enum |{..ITEM_|
|00000180| 56 4f 4c 55 4d 45 5f 4f | 4b 20 3d 20 31 2c 0d 09 |VOLUME_O|K = 1,..|
|00000190| 49 54 45 4d 5f 56 4f 4c | 55 4d 45 5f 43 41 4e 43 |ITEM_VOL|UME_CANC|
|000001a0| 45 4c 2c 0d 09 49 54 45 | 4d 5f 56 4f 4c 55 4d 45 |EL,..ITE|M_VOLUME|
|000001b0| 5f 56 4f 4c 4e 41 4d 45 | 20 3d 20 34 2c 0d 09 49 |_VOLNAME| = 4,..I|
|000001c0| 54 45 4d 5f 56 4f 4c 55 | 4d 45 5f 44 52 49 56 45 |TEM_VOLU|ME_DRIVE|
|000001d0| 2c 0d 09 49 54 45 4d 5f | 56 4f 4c 55 4d 45 5f 45 |,..ITEM_|VOLUME_E|
|000001e0| 4a 45 43 54 0d 7d 3b 0d | 0d 69 6e 74 20 67 65 74 |JECT.};.|.int get|
|000001f0| 5f 76 6f 6c 75 6d 65 5f | 69 6e 66 6f 28 69 6e 74 |_volume_|info(int|
|00000200| 20 69 6e 64 65 78 2c 20 | 69 6e 74 20 2a 72 65 66 | index, |int *ref|
|00000210| 6e 75 6d 2c 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |num, uns|igned ch|
|00000220| 61 72 20 2a 6e 61 6d 65 | 2c 20 69 6e 74 20 2a 64 |ar *name|, int *d|
|00000230| 72 69 76 65 2c 0d 09 09 | 09 09 09 69 6e 74 20 2a |rive,...|...int *|
|00000240| 69 73 5f 68 66 73 29 3b | 0d 70 61 73 63 61 6c 20 |is_hfs);|.pascal |
|00000250| 42 6f 6f 6c 65 61 6e 20 | 64 69 73 6b 5f 66 69 6c |Boolean |disk_fil|
|00000260| 74 65 72 28 44 69 61 6c | 6f 67 50 74 72 20 74 68 |ter(Dial|ogPtr th|
|00000270| 65 5f 64 69 61 6c 6f 67 | 2c 20 45 76 65 6e 74 52 |e_dialog|, EventR|
|00000280| 65 63 6f 72 64 20 2a 74 | 68 65 5f 65 76 65 6e 74 |ecord *t|he_event|
|00000290| 2c 0d 09 09 09 09 09 09 | 20 20 20 69 6e 74 20 2a |,.......| int *|
|000002a0| 69 74 65 6d 5f 68 69 74 | 29 3b 0d 0d 09 2f 2a 20 |item_hit|);.../* |
|000002b0| 56 6f 6c 75 6d 65 20 73 | 65 6c 65 63 74 69 6f 6e |Volume s|election|
|000002c0| 20 61 6e 64 20 75 74 69 | 6c 69 74 69 65 73 2e 20 | and uti|lities. |
|000002d0| 2a 2f 0d 0d 09 2f 2a 20 | 53 65 6c 65 63 74 20 77 |*/.../* |Select w|
|000002e0| 68 69 63 68 20 76 6f 6c | 75 6d 65 20 74 6f 20 70 |hich vol|ume to p|
|000002f0| 72 6f 63 65 73 73 2e 20 | 2a 2f 0d 0d 69 6e 74 20 |rocess. |*/..int |
|00000300| 73 65 6c 65 63 74 5f 76 | 6f 6c 75 6d 65 5f 64 69 |select_v|olume_di|
|00000310| 61 6c 6f 67 28 72 65 66 | 6e 75 6d 2c 20 69 73 5f |alog(ref|num, is_|
|00000320| 68 66 73 29 20 2f 2a 20 | 52 65 74 75 72 6e 20 31 |hfs) /* |Return 1|
|00000330| 20 69 66 20 4f 4b 2c 20 | 30 20 69 66 20 63 61 6e | if OK, |0 if can|
|00000340| 63 65 6c 65 64 20 2a 2f | 0d 09 69 6e 74 20 2a 72 |celed */|..int *r|
|00000350| 65 66 6e 75 6d 2c 20 2a | 69 73 5f 68 66 73 3b 0d |efnum, *|is_hfs;.|
|00000360| 7b 0d 09 72 65 67 69 73 | 74 65 72 20 44 69 61 6c |{..regis|ter Dial|
|00000370| 6f 67 50 74 72 20 74 68 | 65 5f 64 69 61 6c 6f 67 |ogPtr th|e_dialog|
|00000380| 3b 0d 09 72 65 67 69 73 | 74 65 72 20 48 61 6e 64 |;..regis|ter Hand|
|00000390| 6c 65 20 74 68 65 5f 69 | 74 65 6d 3b 0d 09 69 6e |le the_i|tem;..in|
|000003a0| 74 20 69 74 65 6d 2c 20 | 64 72 69 76 65 3b 0d 09 |t item, |drive;..|
|000003b0| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 63 75 72 |register| int cur|
|000003c0| 72 65 6e 74 5f 69 6e 64 | 65 78 2c 20 69 6e 64 65 |rent_ind|ex, inde|
|000003d0| 78 5f 63 68 61 6e 67 65 | 64 2c 20 64 6f 6e 65 3b |x_change|d, done;|
|000003e0| 0d 09 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 |..unsign|ed char |
|000003f0| 76 6f 6c 75 6d 65 5f 6e | 61 6d 65 5b 4e 41 4d 45 |volume_n|ame[NAME|
|00000400| 5f 53 49 5a 45 5d 3b 0d | 0d 09 74 68 65 5f 64 69 |_SIZE];.|..the_di|
|00000410| 61 6c 6f 67 20 3d 20 47 | 65 74 4e 65 77 44 69 61 |alog = G|etNewDia|
|00000420| 6c 6f 67 28 44 49 41 4c | 4f 47 5f 56 4f 4c 55 4d |log(DIAL|OG_VOLUM|
|00000430| 45 2c 20 4e 49 4c 2c 20 | 4d 49 4e 55 53 5f 4f 4e |E, NIL, |MINUS_ON|
|00000440| 45 29 3b 0d 09 74 68 65 | 5f 69 74 65 6d 20 3d 20 |E);..the|_item = |
|00000450| 67 65 74 5f 69 74 65 6d | 28 74 68 65 5f 64 69 61 |get_item|(the_dia|
|00000460| 6c 6f 67 2c 20 49 54 45 | 4d 5f 56 4f 4c 55 4d 45 |log, ITE|M_VOLUME|
|00000470| 5f 56 4f 4c 4e 41 4d 45 | 29 3b 0d 0d 09 69 6e 64 |_VOLNAME|);...ind|
|00000480| 65 78 5f 63 68 61 6e 67 | 65 64 20 3d 20 63 75 72 |ex_chang|ed = cur|
|00000490| 72 65 6e 74 5f 69 6e 64 | 65 78 20 3d 20 31 3b 0d |rent_ind|ex = 1;.|
|000004a0| 09 64 6f 6e 65 20 3d 20 | 30 3b 0d 09 64 6f 20 7b |.done = |0;..do {|
|000004b0| 0d 09 09 69 66 20 28 69 | 6e 64 65 78 5f 63 68 61 |...if (i|ndex_cha|
|000004c0| 6e 67 65 64 29 20 7b 0d | 09 09 09 72 65 67 69 73 |nged) {.|...regis|
|000004d0| 74 65 72 20 69 6e 74 20 | 65 72 72 3b 0d 0d 09 09 |ter int |err;....|
|000004e0| 09 69 6e 64 65 78 5f 63 | 68 61 6e 67 65 64 20 3d |.index_c|hanged =|
|000004f0| 20 30 3b 0d 09 09 09 65 | 72 72 20 3d 20 67 65 74 | 0;....e|rr = get|
|00000500| 5f 76 6f 6c 75 6d 65 5f | 69 6e 66 6f 28 63 75 72 |_volume_|info(cur|
|00000510| 72 65 6e 74 5f 69 6e 64 | 65 78 2c 20 72 65 66 6e |rent_ind|ex, refn|
|00000520| 75 6d 2c 20 76 6f 6c 75 | 6d 65 5f 6e 61 6d 65 2c |um, volu|me_name,|
|00000530| 20 26 64 72 69 76 65 2c | 0d 09 09 09 09 09 09 09 | &drive,|........|
|00000540| 09 20 20 69 73 5f 68 66 | 73 29 3b 0d 09 09 09 77 |. is_hf|s);....w|
|00000550| 68 69 6c 65 20 28 21 65 | 72 72 20 26 26 20 21 64 |hile (!e|rr && !d|
|00000560| 72 69 76 65 29 20 7b 09 | 2f 2a 20 4c 69 73 74 20 |rive) {.|/* List |
|00000570| 6f 6e 6c 79 20 6f 6e 2d | 6c 69 6e 65 20 76 6f 6c |only on-|line vol|
|00000580| 75 6d 65 73 2e 2e 2e 20 | 2a 2f 0d 09 09 09 09 63 |umes... |*/.....c|
|00000590| 75 72 72 65 6e 74 5f 69 | 6e 64 65 78 2b 2b 3b 0d |urrent_i|ndex++;.|
|000005a0| 09 09 09 09 65 72 72 20 | 3d 20 67 65 74 5f 76 6f |....err |= get_vo|
|000005b0| 6c 75 6d 65 5f 69 6e 66 | 6f 28 63 75 72 72 65 6e |lume_inf|o(curren|
|000005c0| 74 5f 69 6e 64 65 78 2c | 20 72 65 66 6e 75 6d 2c |t_index,| refnum,|
|000005d0| 20 76 6f 6c 75 6d 65 5f | 6e 61 6d 65 2c 0d 09 09 | volume_|name,...|
|000005e0| 09 09 09 09 09 09 09 20 | 20 26 64 72 69 76 65 2c |....... | &drive,|
|000005f0| 69 73 5f 68 66 73 29 3b | 0d 09 09 09 7d 0d 09 09 |is_hfs);|....}...|
|00000600| 09 69 66 20 28 65 72 72 | 29 09 2f 2a 20 49 66 20 |.if (err|)./* If |
|00000610| 61 74 20 65 6e 64 20 6f | 66 20 6c 69 73 74 2c 20 |at end o|f list, |
|00000620| 6a 75 73 74 20 75 73 65 | 20 66 69 72 73 74 20 76 |just use| first v|
|00000630| 6f 6c 75 6d 65 2e 20 2a | 2f 0d 09 09 09 09 67 65 |olume. *|/.....ge|
|00000640| 74 5f 76 6f 6c 75 6d 65 | 5f 69 6e 66 6f 28 63 75 |t_volume|_info(cu|
|00000650| 72 72 65 6e 74 5f 69 6e | 64 65 78 20 3d 20 31 2c |rrent_in|dex = 1,|
|00000660| 20 72 65 66 6e 75 6d 2c | 20 76 6f 6c 75 6d 65 5f | refnum,| volume_|
|00000670| 6e 61 6d 65 2c 0d 09 09 | 09 09 09 09 09 09 26 64 |name,...|......&d|
|00000680| 72 69 76 65 2c 20 69 73 | 5f 68 66 73 29 3b 0d 09 |rive, is|_hfs);..|
|00000690| 09 09 53 65 74 49 54 65 | 78 74 28 74 68 65 5f 69 |..SetITe|xt(the_i|
|000006a0| 74 65 6d 2c 20 76 6f 6c | 75 6d 65 5f 6e 61 6d 65 |tem, vol|ume_name|
|000006b0| 29 3b 0d 09 09 7d 0d 09 | 09 4d 6f 64 61 6c 44 69 |);...}..|.ModalDi|
|000006c0| 61 6c 6f 67 28 64 69 73 | 6b 5f 66 69 6c 74 65 72 |alog(dis|k_filter|
|000006d0| 2c 20 26 69 74 65 6d 29 | 3b 0d 09 09 69 66 20 28 |, &item)|;...if (|
|000006e0| 69 74 65 6d 20 3c 20 30 | 29 20 7b 09 09 09 09 2f |item < 0|) {..../|
|000006f0| 2a 20 44 69 73 6b 20 69 | 6e 73 65 72 74 65 64 3a |* Disk i|nserted:|
|00000700| 20 74 72 79 20 74 6f 20 | 66 69 6e 64 20 69 74 2e | try to |find it.|
|00000710| 20 2a 2f 0d 09 09 09 72 | 65 67 69 73 74 65 72 20 | */....r|egister |
|00000720| 69 6e 74 20 66 6f 75 6e | 64 3b 0d 0d 09 09 09 69 |int foun|d;.....i|
|00000730| 74 65 6d 20 3d 20 2d 69 | 74 65 6d 3b 0d 09 09 09 |tem = -i|tem;....|
|00000740| 63 75 72 72 65 6e 74 5f | 69 6e 64 65 78 20 3d 20 |current_|index = |
|00000750| 31 3b 0d 09 09 09 66 6f | 75 6e 64 20 3d 20 30 3b |1;....fo|und = 0;|
|00000760| 0d 09 09 09 77 68 69 6c | 65 20 28 21 66 6f 75 6e |....whil|e (!foun|
|00000770| 64 29 20 7b 0d 09 09 09 | 09 69 66 20 28 67 65 74 |d) {....|.if (get|
|00000780| 5f 76 6f 6c 75 6d 65 5f | 69 6e 66 6f 28 63 75 72 |_volume_|info(cur|
|00000790| 72 65 6e 74 5f 69 6e 64 | 65 78 2c 20 72 65 66 6e |rent_ind|ex, refn|
|000007a0| 75 6d 2c 20 76 6f 6c 75 | 6d 65 5f 6e 61 6d 65 2c |um, volu|me_name,|
|000007b0| 20 26 64 72 69 76 65 2c | 0d 09 09 09 09 09 09 09 | &drive,|........|
|000007c0| 09 09 69 73 5f 68 66 73 | 29 20 21 3d 20 30 29 0d |..is_hfs|) != 0).|
|000007d0| 09 09 09 09 09 66 6f 75 | 6e 64 20 3d 20 63 75 72 |.....fou|nd = cur|
|000007e0| 72 65 6e 74 5f 69 6e 64 | 65 78 20 3d 20 31 3b 09 |rent_ind|ex = 1;.|
|000007f0| 09 2f 2a 20 41 62 6f 72 | 74 20 6f 6e 20 65 72 72 |./* Abor|t on err|
|00000800| 6f 72 2e 20 2a 2f 0d 09 | 09 09 09 65 6c 73 65 0d |or. */..|...else.|
|00000810| 09 09 09 09 09 69 66 20 | 28 64 72 69 76 65 20 3d |.....if |(drive =|
|00000820| 3d 20 69 74 65 6d 29 09 | 09 09 09 2f 2a 20 57 65 |= item).|.../* We|
|00000830| 20 66 6f 75 6e 64 20 69 | 74 21 20 2a 2f 0d 09 09 | found i|t! */...|
|00000840| 09 09 09 09 66 6f 75 6e | 64 20 3d 20 31 3b 0d 09 |....foun|d = 1;..|
|00000850| 09 09 09 09 65 6c 73 65 | 0d 09 09 09 09 09 09 63 |....else|.......c|
|00000860| 75 72 72 65 6e 74 5f 69 | 6e 64 65 78 2b 2b 3b 0d |urrent_i|ndex++;.|
|00000870| 09 09 09 7d 0d 09 09 09 | 69 6e 64 65 78 5f 63 68 |...}....|index_ch|
|00000880| 61 6e 67 65 64 20 3d 20 | 31 3b 0d 09 09 7d 0d 09 |anged = |1;...}..|
|00000890| 09 65 6c 73 65 0d 09 09 | 09 73 77 69 74 63 68 20 |.else...|.switch |
|000008a0| 28 69 74 65 6d 29 20 7b | 0d 09 09 09 09 63 61 73 |(item) {|.....cas|
|000008b0| 65 20 49 54 45 4d 5f 56 | 4f 4c 55 4d 45 5f 4f 4b |e ITEM_V|OLUME_OK|
|000008c0| 3a 0d 09 09 09 09 63 61 | 73 65 20 49 54 45 4d 5f |:.....ca|se ITEM_|
|000008d0| 56 4f 4c 55 4d 45 5f 43 | 41 4e 43 45 4c 3a 0d 09 |VOLUME_C|ANCEL:..|
|000008e0| 09 09 09 09 64 6f 6e 65 | 20 3d 20 31 3b 0d 09 09 |....done| = 1;...|
|000008f0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 09 63 61 |...break|;.....ca|
|00000900| 73 65 20 49 54 45 4d 5f | 56 4f 4c 55 4d 45 5f 44 |se ITEM_|VOLUME_D|
|00000910| 52 49 56 45 3a 0d 09 09 | 09 09 09 63 75 72 72 65 |RIVE:...|...curre|
|00000920| 6e 74 5f 69 6e 64 65 78 | 2b 2b 3b 0d 09 09 09 09 |nt_index|++;.....|
|00000930| 09 69 6e 64 65 78 5f 63 | 68 61 6e 67 65 64 20 3d |.index_c|hanged =|
|00000940| 20 31 3b 0d 09 09 09 09 | 09 62 72 65 61 6b 3b 0d | 1;.....|.break;.|
|00000950| 09 09 09 09 63 61 73 65 | 20 49 54 45 4d 5f 56 4f |....case| ITEM_VO|
|00000960| 4c 55 4d 45 5f 45 4a 45 | 43 54 3a 0d 09 09 09 09 |LUME_EJE|CT:.....|
|00000970| 09 45 6a 65 63 74 28 4e | 49 4c 2c 20 2a 72 65 66 |.Eject(N|IL, *ref|
|00000980| 6e 75 6d 29 3b 0d 09 09 | 09 09 09 69 6e 64 65 78 |num);...|...index|
|00000990| 5f 63 68 61 6e 67 65 64 | 20 3d 20 31 3b 0d 09 09 |_changed| = 1;...|
|000009a0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 7d 0d 09 |...break|;....}..|
|000009b0| 7d 20 77 68 69 6c 65 20 | 28 21 64 6f 6e 65 29 3b |} while |(!done);|
|000009c0| 0d 09 44 69 73 70 6f 73 | 44 69 61 6c 6f 67 28 74 |..Dispos|Dialog(t|
|000009d0| 68 65 5f 64 69 61 6c 6f | 67 29 3b 0d 0d 09 69 66 |he_dialo|g);...if|
|000009e0| 20 28 69 74 65 6d 20 3d | 3d 20 49 54 45 4d 5f 56 | (item =|= ITEM_V|
|000009f0| 4f 4c 55 4d 45 5f 4f 4b | 29 20 7b 0d 09 09 50 61 |OLUME_OK|) {...Pa|
|00000a00| 72 61 6d 54 65 78 74 28 | 76 6f 6c 75 6d 65 5f 6e |ramText(|volume_n|
|00000a10| 61 6d 65 2c 20 4e 49 4c | 2c 20 4e 49 4c 2c 20 4e |ame, NIL|, NIL, N|
|00000a20| 49 4c 29 3b 09 2f 2a 20 | 53 65 74 20 76 6f 6c 75 |IL);./* |Set volu|
|00000a30| 6d 65 20 6e 61 6d 65 20 | 2a 2f 0d 09 09 72 65 74 |me name |*/...ret|
|00000a40| 75 72 6e 28 31 29 3b 0d | 09 7d 0d 09 65 6c 73 65 |urn(1);.|.}..else|
|00000a50| 0d 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0d 7d 0d |...retur|n(0);.}.|
|00000a60| 0d 09 2f 2a 20 47 65 74 | 20 69 6e 66 6f 72 6d 61 |../* Get| informa|
|00000a70| 74 69 6f 6e 20 61 62 6f | 75 74 20 61 20 76 6f 6c |tion abo|ut a vol|
|00000a80| 75 6d 65 2c 20 67 69 76 | 65 6e 20 69 74 73 20 69 |ume, giv|en its i|
|00000a90| 6e 64 65 78 2e 20 2a 2f | 0d 0d 69 6e 74 20 67 65 |ndex. */|..int ge|
|00000aa0| 74 5f 76 6f 6c 75 6d 65 | 5f 69 6e 66 6f 28 69 6e |t_volume|_info(in|
|00000ab0| 64 65 78 2c 20 72 65 66 | 6e 75 6d 2c 20 6e 61 6d |dex, ref|num, nam|
|00000ac0| 65 2c 20 64 72 69 76 65 | 2c 20 69 73 5f 68 66 73 |e, drive|, is_hfs|
|00000ad0| 29 0d 09 69 6e 74 20 69 | 6e 64 65 78 2c 20 2a 72 |)..int i|ndex, *r|
|00000ae0| 65 66 6e 75 6d 2c 20 2a | 64 72 69 76 65 2c 20 2a |efnum, *|drive, *|
|00000af0| 69 73 5f 68 66 73 3b 0d | 09 75 6e 73 69 67 6e 65 |is_hfs;.|.unsigne|
|00000b00| 64 20 63 68 61 72 20 2a | 6e 61 6d 65 3b 0d 7b 0d |d char *|name;.{.|
|00000b10| 09 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 65 72 |.registe|r int er|
|00000b20| 72 3b 0d 09 48 50 61 72 | 61 6d 42 6c 6f 63 6b 52 |r;..HPar|amBlockR|
|00000b30| 65 63 20 62 6c 6f 62 3b | 0d 0d 09 62 6c 6f 62 2e |ec blob;|...blob.|
|00000b40| 76 6f 6c 75 6d 65 50 61 | 72 61 6d 2e 69 6f 43 6f |volumePa|ram.ioCo|
|00000b50| 6d 70 6c 65 74 69 6f 6e | 20 3d 20 4e 49 4c 3b 0d |mpletion| = NIL;.|
|00000b60| 09 62 6c 6f 62 2e 76 6f | 6c 75 6d 65 50 61 72 61 |.blob.vo|lumePara|
|00000b70| 6d 2e 69 6f 4e 61 6d 65 | 50 74 72 20 3d 20 6e 61 |m.ioName|Ptr = na|
|00000b80| 6d 65 3b 0d 09 62 6c 6f | 62 2e 76 6f 6c 75 6d 65 |me;..blo|b.volume|
|00000b90| 50 61 72 61 6d 2e 69 6f | 56 6f 6c 49 6e 64 65 78 |Param.io|VolIndex|
|00000ba0| 20 3d 20 69 6e 64 65 78 | 3b 0d 09 65 72 72 20 3d | = index|;..err =|
|00000bb0| 20 50 42 48 47 65 74 56 | 49 6e 66 6f 28 26 62 6c | PBHGetV|Info(&bl|
|00000bc0| 6f 62 2c 20 30 29 3b 0d | 0d 09 69 66 20 28 21 65 |ob, 0);.|..if (!e|
|00000bd0| 72 72 29 20 7b 0d 09 09 | 2a 72 65 66 6e 75 6d 20 |rr) {...|*refnum |
|00000be0| 3d 20 62 6c 6f 62 2e 76 | 6f 6c 75 6d 65 50 61 72 |= blob.v|olumePar|
|00000bf0| 61 6d 2e 69 6f 56 52 65 | 66 4e 75 6d 3b 0d 09 09 |am.ioVRe|fNum;...|
|00000c00| 2a 64 72 69 76 65 20 3d | 20 62 6c 6f 62 2e 76 6f |*drive =| blob.vo|
|00000c10| 6c 75 6d 65 50 61 72 61 | 6d 2e 69 6f 56 44 72 76 |lumePara|m.ioVDrv|
|00000c20| 49 6e 66 6f 3b 0d 09 09 | 2a 69 73 5f 68 66 73 20 |Info;...|*is_hfs |
|00000c30| 3d 20 28 62 6c 6f 62 2e | 76 6f 6c 75 6d 65 50 61 |= (blob.|volumePa|
|00000c40| 72 61 6d 2e 69 6f 56 53 | 69 67 57 6f 72 64 20 3d |ram.ioVS|igWord =|
|00000c50| 3d 20 27 42 44 27 29 3b | 0d 09 7d 0d 09 72 65 74 |= 'BD');|..}..ret|
|00000c60| 75 72 6e 28 65 72 72 29 | 3b 0d 7d 0d 0d 09 2f 2a |urn(err)|;.}.../*|
|00000c70| 20 46 69 6c 74 65 72 20 | 74 6f 20 61 6c 6c 6f 77 | Filter |to allow|
|00000c80| 20 6d 6f 75 6e 74 69 6e | 67 20 6f 66 20 76 6f 6c | mountin|g of vol|
|00000c90| 75 6d 65 73 20 77 69 74 | 68 69 6e 20 61 20 64 69 |umes wit|hin a di|
|00000ca0| 61 6c 6f 67 2e 20 2a 2f | 0d 0d 73 74 61 74 69 63 |alog. */|..static|
|00000cb0| 20 70 61 73 63 61 6c 20 | 42 6f 6f 6c 65 61 6e 20 | pascal |Boolean |
|00000cc0| 64 69 73 6b 5f 66 69 6c | 74 65 72 28 74 68 65 5f |disk_fil|ter(the_|
|00000cd0| 64 69 61 6c 6f 67 2c 20 | 74 68 65 5f 65 76 65 6e |dialog, |the_even|
|00000ce0| 74 2c 20 69 74 65 6d 5f | 68 69 74 29 0d 09 44 69 |t, item_|hit)..Di|
|00000cf0| 61 6c 6f 67 50 74 72 20 | 74 68 65 5f 64 69 61 6c |alogPtr |the_dial|
|00000d00| 6f 67 3b 0d 09 72 65 67 | 69 73 74 65 72 20 45 76 |og;..reg|ister Ev|
|00000d10| 65 6e 74 52 65 63 6f 72 | 64 20 2a 74 68 65 5f 65 |entRecor|d *the_e|
|00000d20| 76 65 6e 74 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |vent;..r|egister |
|00000d30| 69 6e 74 20 2a 69 74 65 | 6d 5f 68 69 74 3b 0d 7b |int *ite|m_hit;.{|
|00000d40| 0d 09 69 66 20 28 74 68 | 65 5f 65 76 65 6e 74 2d |..if (th|e_event-|
|00000d50| 3e 77 68 61 74 20 3d 3d | 20 6b 65 79 44 6f 77 6e |>what ==| keyDown|
|00000d60| 29 20 7b 0d 09 09 72 65 | 67 69 73 74 65 72 20 69 |) {...re|gister i|
|00000d70| 6e 74 20 6b 65 79 5f 63 | 6f 64 65 3b 0d 0d 09 09 |nt key_c|ode;....|
|00000d80| 6b 65 79 5f 63 6f 64 65 | 20 3d 20 28 74 68 65 5f |key_code| = (the_|
|00000d90| 65 76 65 6e 74 2d 3e 6d | 65 73 73 61 67 65 20 3e |event->m|essage >|
|00000da0| 3e 20 38 29 20 26 20 30 | 78 46 46 3b 09 2f 2a 20 |> 8) & 0|xFF;./* |
|00000db0| 4b 65 79 62 6f 61 72 64 | 20 6b 65 79 20 2a 2f 0d |Keyboard| key */.|
|00000dc0| 09 09 69 66 20 28 28 6b | 65 79 5f 63 6f 64 65 20 |..if ((k|ey_code |
|00000dd0| 3d 3d 20 52 45 54 55 52 | 4e 5f 4b 45 59 29 20 7c |== RETUR|N_KEY) ||
|00000de0| 7c 20 28 6b 65 79 5f 63 | 6f 64 65 20 3d 3d 20 45 || (key_c|ode == E|
|00000df0| 4e 54 45 52 5f 4b 45 59 | 29 29 20 7b 0d 09 09 09 |NTER_KEY|)) {....|
|00000e00| 2a 69 74 65 6d 5f 68 69 | 74 20 3d 20 49 54 45 4d |*item_hi|t = ITEM|
|00000e10| 5f 56 4f 4c 55 4d 45 5f | 4f 4b 3b 0d 09 09 09 72 |_VOLUME_|OK;....r|
|00000e20| 65 74 75 72 6e 20 28 54 | 52 55 45 29 3b 0d 09 09 |eturn (T|RUE);...|
|00000e30| 7d 0d 09 09 65 6c 73 65 | 20 69 66 20 28 6b 65 79 |}...else| if (key|
|00000e40| 5f 63 6f 64 65 20 3d 3d | 20 54 41 42 5f 4b 45 59 |_code ==| TAB_KEY|
|00000e50| 29 20 7b 0d 09 09 09 2a | 69 74 65 6d 5f 68 69 74 |) {....*|item_hit|
|00000e60| 20 3d 20 49 54 45 4d 5f | 56 4f 4c 55 4d 45 5f 44 | = ITEM_|VOLUME_D|
|00000e70| 52 49 56 45 3b 0d 09 09 | 09 72 65 74 75 72 6e 20 |RIVE;...|.return |
|00000e80| 28 54 52 55 45 29 3b 0d | 09 09 7d 0d 09 7d 0d 09 |(TRUE);.|..}..}..|
|00000e90| 65 6c 73 65 20 69 66 20 | 28 74 68 65 5f 65 76 65 |else if |(the_eve|
|00000ea0| 6e 74 2d 3e 77 68 61 74 | 20 3d 3d 20 6e 75 6c 6c |nt->what| == null|
|00000eb0| 45 76 65 6e 74 29 20 7b | 0d 09 09 45 76 65 6e 74 |Event) {|...Event|
|00000ec0| 52 65 63 6f 72 64 20 64 | 69 73 6b 5f 65 76 65 6e |Record d|isk_even|
|00000ed0| 74 3b 0d 0d 09 09 69 66 | 20 28 47 65 74 4e 65 78 |t;....if| (GetNex|
|00000ee0| 74 45 76 65 6e 74 28 64 | 69 73 6b 4d 61 73 6b 2c |tEvent(d|iskMask,|
|00000ef0| 20 26 64 69 73 6b 5f 65 | 76 65 6e 74 29 29 0d 09 | &disk_e|vent))..|
|00000f00| 09 09 69 66 20 28 48 69 | 57 6f 72 64 28 64 69 73 |..if (Hi|Word(dis|
|00000f10| 6b 5f 65 76 65 6e 74 2e | 6d 65 73 73 61 67 65 29 |k_event.|message)|
|00000f20| 29 0d 09 09 09 09 45 6a | 65 63 74 28 4e 49 4c 2c |).....Ej|ect(NIL,|
|00000f30| 20 4c 6f 57 6f 72 64 28 | 64 69 73 6b 5f 65 76 65 | LoWord(|disk_eve|
|00000f40| 6e 74 2e 6d 65 73 73 61 | 67 65 29 29 3b 0d 09 09 |nt.messa|ge));...|
|00000f50| 09 65 6c 73 65 20 7b 0d | 09 09 09 09 2a 69 74 65 |.else {.|....*ite|
|00000f60| 6d 5f 68 69 74 20 3d 20 | 2d 4c 6f 57 6f 72 64 28 |m_hit = |-LoWord(|
|00000f70| 64 69 73 6b 5f 65 76 65 | 6e 74 2e 6d 65 73 73 61 |disk_eve|nt.messa|
|00000f80| 67 65 29 3b 0d 09 09 09 | 09 72 65 74 75 72 6e 20 |ge);....|.return |
|00000f90| 28 54 52 55 45 29 3b 0d | 09 09 09 7d 0d 09 7d 3b |(TRUE);.|...}..};|
|00000fa0| 0d 0d 09 72 65 74 75 72 | 6e 20 28 46 41 4c 53 45 |...retur|n (FALSE|
|00000fb0| 29 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |);.}....|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+