home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / sorgenti vari / wolf3dmacsource.sit / Wolf3DMacSource / Mac.c < prev    next >
MacBinary  |  2000-01-21  |  61.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Jan 21 09:04:51 2000, modified Fri Jan 21 09:04:51 2000, creator 'CWIE', type ASCII, 62043 bytes "Mac.c" , at 0xf2db 456 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 4d 61 63 2e 63 00 | 00 00 00 00 00 00 00 00 |..Mac.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 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 f2 5b 00 | 00 01 c8 b4 ae 18 03 b4 |......[.|........|
|00000060| ae 18 03 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c1 bf 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 0d 0d | 09 4d 61 69 6e 20 4d 61 |******..|.Main Ma|
|000000a0| 63 69 6e 74 6f 73 68 20 | 63 6f 64 65 0d 0d 2a 2a |cintosh |code..**|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2f 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |***/..#i|nclude "|
|000000d0| 57 6f 6c 66 64 65 66 2e | 68 22 09 09 2f 2a 20 41 |Wolfdef.|h"../* A|
|000000e0| 6c 6c 20 74 68 65 20 67 | 61 6d 65 20 65 71 75 61 |ll the g|ame equa|
|000000f0| 74 65 73 20 2a 2f 0d 23 | 69 6e 63 6c 75 64 65 20 |tes */.#|include |
|00000100| 3c 73 74 72 69 6e 67 2e | 68 3e 0d 23 69 6e 63 6c |<string.|h>.#incl|
|00000110| 75 64 65 20 3c 63 74 79 | 70 65 2e 68 3e 0d 23 69 |ude <cty|pe.h>.#i|
|00000120| 6e 63 6c 75 64 65 20 3c | 73 65 74 6a 6d 70 2e 68 |nclude <|setjmp.h|
|00000130| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 70 61 6c 65 |>.#inclu|de <pale|
|00000140| 74 74 65 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ttes.h>.|#include|
|00000150| 20 3c 71 64 6f 66 66 73 | 63 72 65 65 6e 2e 68 3e | <qdoffs|creen.h>|
|00000160| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 47 65 73 74 61 |.#includ|e <Gesta|
|00000170| 6c 74 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 22 |lt.h>.#i|nclude "|
|00000180| 53 6f 75 6e 64 4d 75 73 | 69 63 53 79 73 74 65 6d |SoundMus|icSystem|
|00000190| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 50 69 |.h".#inc|lude "Pi|
|000001a0| 63 6b 41 4d 6f 6e 69 74 | 6f 72 2e 68 22 0d 23 69 |ckAMonit|or.h".#i|
|000001b0| 6e 63 6c 75 64 65 20 22 | 48 69 64 65 6d 65 6e 75 |nclude "|Hidemenu|
|000001c0| 62 61 72 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |bar.h".#|include |
|000001d0| 22 50 72 65 66 73 2e 68 | 22 0d 23 69 6e 63 6c 75 |"Prefs.h|".#inclu|
|000001e0| 64 65 20 3c 41 70 70 6c | 65 45 76 65 6e 74 73 2e |de <Appl|eEvents.|
|000001f0| 68 3e 0d 0d 73 74 61 74 | 69 63 20 57 6f 72 64 20 |h>..stat|ic Word |
|00000200| 44 6f 4d 79 41 6c 65 72 | 74 28 57 6f 72 64 20 41 |DoMyAler|t(Word A|
|00000210| 6c 65 72 74 4e 75 6d 29 | 3b 0d 73 74 61 74 69 63 |lertNum)|;.static|
|00000220| 20 76 6f 69 64 20 43 65 | 6e 74 65 72 53 46 57 69 | void Ce|nterSFWi|
|00000230| 6e 64 6f 77 28 50 6f 69 | 6e 74 20 2a 4d 79 50 6f |ndow(Poi|nt *MyPo|
|00000240| 69 6e 74 2c 57 6f 72 64 | 20 78 2c 57 6f 72 64 20 |int,Word| x,Word |
|00000250| 79 29 3b 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |y);.stat|ic void |
|00000260| 43 65 6e 74 65 72 41 57 | 69 6e 64 6f 77 28 57 69 |CenterAW|indow(Wi|
|00000270| 6e 64 6f 77 50 74 72 20 | 4d 79 57 69 6e 64 6f 77 |ndowPtr |MyWindow|
|00000280| 29 3b 0d 73 74 61 74 69 | 63 20 76 6f 69 64 20 46 |);.stati|c void F|
|00000290| 69 78 50 61 75 73 65 4d | 65 6e 75 28 76 6f 69 64 |ixPauseM|enu(void|
|000002a0| 29 3b 0d 42 6f 6f 6c 65 | 61 6e 20 4c 6f 61 64 47 |);.Boole|an LoadG|
|000002b0| 61 6d 65 28 76 6f 69 64 | 29 3b 0d 70 61 73 63 61 |ame(void|);.pasca|
|000002c0| 6c 20 42 6f 6f 6c 65 61 | 6e 20 53 74 61 6e 64 61 |l Boolea|n Standa|
|000002d0| 72 64 4d 6f 64 61 6c 46 | 69 6c 74 65 72 50 72 6f |rdModalF|ilterPro|
|000002e0| 63 28 44 69 61 6c 6f 67 | 50 74 72 20 74 68 65 44 |c(Dialog|Ptr theD|
|000002f0| 69 61 6c 6f 67 2c 20 45 | 76 65 6e 74 52 65 63 6f |ialog, E|ventReco|
|00000300| 72 64 20 2a 74 68 65 45 | 76 65 6e 74 2c 20 73 68 |rd *theE|vent, sh|
|00000310| 6f 72 74 20 2a 69 74 65 | 6d 48 69 74 29 3b 0d 57 |ort *ite|mHit);.W|
|00000320| 6f 72 64 20 43 68 6f 6f | 73 65 47 61 6d 65 44 69 |ord Choo|seGameDi|
|00000330| 66 66 28 76 6f 69 64 29 | 3b 0d 57 6f 72 64 20 44 |ff(void)|;.Word D|
|00000340| 6f 45 76 65 6e 74 28 45 | 76 65 6e 74 52 65 63 6f |oEvent(E|ventReco|
|00000350| 72 64 20 2a 65 76 65 6e | 74 29 3b 0d 76 6f 69 64 |rd *even|t);.void|
|00000360| 20 44 6f 55 70 64 61 74 | 65 28 57 69 6e 64 6f 77 | DoUpdat|e(Window|
|00000370| 50 74 72 20 77 69 6e 64 | 6f 77 29 3b 0d 76 6f 69 |Ptr wind|ow);.voi|
|00000380| 64 20 44 72 61 77 57 69 | 6e 64 6f 77 28 57 69 6e |d DrawWi|ndow(Win|
|00000390| 64 6f 77 50 74 72 20 77 | 69 6e 64 6f 77 29 3b 0d |dowPtr w|indow);.|
|000003a0| 76 6f 69 64 20 41 64 6a | 75 73 74 4d 65 6e 75 73 |void Adj|ustMenus|
|000003b0| 28 76 6f 69 64 29 3b 0d | 76 6f 69 64 20 44 6f 4d |(void);.|void DoM|
|000003c0| 65 6e 75 43 6f 6d 6d 61 | 6e 64 28 4c 6f 6e 67 57 |enuComma|nd(LongW|
|000003d0| 6f 72 64 20 6d 65 6e 75 | 52 65 73 75 6c 74 29 3b |ord menu|Result);|
|000003e0| 0d 42 6f 6f 6c 65 61 6e | 20 44 6f 43 6c 6f 73 65 |.Boolean| DoClose|
|000003f0| 57 69 6e 64 6f 77 28 57 | 69 6e 64 6f 77 50 74 72 |Window(W|indowPtr|
|00000400| 20 77 69 6e 64 6f 77 29 | 3b 0d 76 6f 69 64 20 49 | window)|;.void I|
|00000410| 6e 69 74 54 6f 6f 6c 73 | 28 76 6f 69 64 29 3b 0d |nitTools|(void);.|
|00000420| 76 6f 69 64 20 53 61 76 | 65 47 61 6d 65 28 76 6f |void Sav|eGame(vo|
|00000430| 69 64 29 3b 0d 76 6f 69 | 64 20 4c 6f 61 64 50 72 |id);.voi|d LoadPr|
|00000440| 65 66 73 28 76 6f 69 64 | 29 3b 0d 76 6f 69 64 20 |efs(void|);.void |
|00000450| 53 61 76 65 50 72 65 66 | 73 28 76 6f 69 64 29 3b |SavePref|s(void);|
|00000460| 0d 42 6f 6f 6c 65 61 6e | 20 43 68 6f 6f 73 65 4c |.Boolean| ChooseL|
|00000470| 6f 61 64 47 61 6d 65 28 | 76 6f 69 64 29 3b 0d 42 |oadGame(|void);.B|
|00000480| 6f 6f 6c 65 61 6e 20 43 | 68 6f 6f 73 65 53 61 76 |oolean C|hooseSav|
|00000490| 65 47 61 6d 65 28 76 6f | 69 64 29 3b 0d 4f 53 45 |eGame(vo|id);.OSE|
|000004a0| 72 72 20 4d 79 45 76 65 | 6e 74 48 61 6e 64 6c 65 |rr MyEve|ntHandle|
|000004b0| 72 28 41 70 70 6c 65 45 | 76 65 6e 74 20 2a 4d 79 |r(AppleE|vent *My|
|000004c0| 41 70 70 6c 65 45 76 65 | 6e 74 2c 41 70 70 6c 65 |AppleEve|nt,Apple|
|000004d0| 45 76 65 6e 74 20 2a 41 | 70 70 6c 65 52 65 70 6c |Event *A|ppleRepl|
|000004e0| 79 2c 6c 6f 6e 67 20 4d | 79 52 65 66 43 6f 6e 29 |y,long M|yRefCon)|
|000004f0| 3b 0d 0d 42 6f 6f 6c 65 | 61 6e 20 4d 6f 75 73 65 |;..Boole|an Mouse|
|00000500| 48 69 74 3b 09 09 2f 2a | 20 54 72 75 65 20 69 66 |Hit;../*| True if|
|00000510| 20 61 20 6d 6f 75 73 65 | 20 77 61 73 20 70 72 65 | a mouse| was pre|
|00000520| 73 73 65 64 20 2a 2f 0d | 73 74 61 74 69 63 20 4d |ssed */.|static M|
|00000530| 65 6e 75 48 61 6e 64 6c | 65 20 50 61 75 73 65 4d |enuHandl|e PauseM|
|00000540| 65 6e 75 3b 0d 73 74 61 | 74 69 63 20 42 6f 6f 6c |enu;.sta|tic Bool|
|00000550| 65 61 6e 20 57 61 69 74 | 4e 65 78 74 4f 4b 3b 09 |ean Wait|NextOK;.|
|00000560| 09 2f 2a 20 54 72 75 65 | 20 69 66 20 57 61 69 74 |./* True| if Wait|
|00000570| 4e 65 78 74 45 76 65 6e | 74 20 69 73 20 70 72 65 |NextEven|t is pre|
|00000580| 73 65 6e 74 20 2a 2f 0d | 73 74 61 74 69 63 20 42 |sent */.|static B|
|00000590| 6f 6f 6c 65 61 6e 20 4c | 6f 77 4f 6e 4d 65 6d 3b |oolean L|owOnMem;|
|000005a0| 09 09 2f 2a 20 54 72 75 | 65 20 69 66 20 73 6f 75 |../* Tru|e if sou|
|000005b0| 6e 64 20 69 73 20 64 69 | 73 61 62 6c 65 64 20 66 |nd is di|sabled f|
|000005c0| 6f 72 20 6c 6f 77 20 6d | 65 6d 6f 72 79 20 2a 2f |or low m|emory */|
|000005d0| 0d 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 20 |.static |Boolean |
|000005e0| 4f 70 65 6e 50 65 6e 64 | 69 6e 67 3b 09 09 2f 2a |OpenPend|ing;../*|
|000005f0| 20 54 72 75 65 20 69 66 | 20 61 20 6c 6f 61 64 20 | True if| a load |
|00000600| 67 61 6d 65 20 61 70 70 | 6c 65 20 65 76 65 6e 74 |game app|le event|
|00000610| 20 6f 63 63 75 72 65 64 | 20 2a 2f 0d 73 74 61 74 | occured| */.stat|
|00000620| 69 63 20 42 79 74 65 20 | 2a 53 61 76 65 46 69 6c |ic Byte |*SaveFil|
|00000630| 65 4e 61 6d 65 3b 09 09 | 2f 2a 20 50 6f 69 6e 74 |eName;..|/* Point|
|00000640| 65 72 20 74 6f 20 74 68 | 65 20 73 61 76 65 20 66 |er to th|e save f|
|00000650| 69 6c 65 20 6e 61 6d 65 | 20 2a 2f 0d 73 74 61 74 |ile name| */.stat|
|00000660| 69 63 20 73 68 6f 72 74 | 20 53 61 76 65 46 69 6c |ic short| SaveFil|
|00000670| 65 56 6f 6c 3b 09 09 2f | 2a 20 44 69 72 65 63 74 |eVol;../|* Direct|
|00000680| 6f 72 79 20 72 65 66 65 | 72 61 6e 63 65 20 66 6f |ory refe|rance fo|
|00000690| 72 20 73 61 76 65 20 66 | 69 6c 65 20 6e 61 6d 65 |r save f|ile name|
|000006a0| 20 2a 2f 09 0d 73 74 61 | 74 69 63 20 6c 6f 6e 67 | */..sta|tic long|
|000006b0| 20 53 61 76 65 46 69 6c | 65 50 61 72 49 44 3b 09 | SaveFil|eParID;.|
|000006c0| 09 2f 2a 20 50 61 72 65 | 6e 74 20 64 69 72 65 63 |./* Pare|nt direc|
|000006d0| 74 6f 72 79 20 69 64 20 | 6f 66 20 73 61 76 65 2d |tory id |of save-|
|000006e0| 67 61 6d 65 20 66 69 6c | 65 20 2a 2f 0d 73 74 61 |game fil|e */.sta|
|000006f0| 74 69 63 20 42 6f 6f 6c | 65 61 6e 20 56 61 6c 69 |tic Bool|ean Vali|
|00000700| 64 52 65 63 74 73 3b 09 | 09 2f 2a 20 41 72 65 20 |dRects;.|./* Are |
|00000710| 74 68 65 72 65 20 62 6c | 61 6e 6b 20 72 65 63 74 |there bl|ank rect|
|00000720| 73 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 3f |s in the| window?|
|00000730| 20 2a 2f 0d 73 74 61 74 | 69 63 20 52 67 6e 48 61 | */.stat|ic RgnHa|
|00000740| 6e 64 6c 65 20 42 6c 61 | 63 6b 52 67 6e 3b 09 09 |ndle Bla|ckRgn;..|
|00000750| 2f 2a 20 42 6c 61 6e 6b | 20 72 65 67 69 6f 6e 20 |/* Blank| region |
|00000760| 66 6f 72 20 77 69 6e 64 | 6f 77 20 62 6c 61 6e 6b |for wind|ow blank|
|00000770| 69 6e 67 20 2a 2f 0d 73 | 74 61 74 69 63 20 52 65 |ing */.s|tatic Re|
|00000780| 63 74 20 51 44 47 61 6d | 65 52 65 63 74 3b 09 09 |ct QDGam|eRect;..|
|00000790| 09 2f 2a 20 52 65 63 74 | 20 6f 66 20 74 68 65 20 |./* Rect| of the |
|000007a0| 67 61 6d 65 20 70 6c 61 | 79 69 6e 67 20 61 72 65 |game pla|ying are|
|000007b0| 61 20 2a 2f 0d 73 74 61 | 74 69 63 20 52 65 63 74 |a */.sta|tic Rect|
|000007c0| 20 47 61 6d 65 52 65 63 | 74 20 3d 20 7b 30 2c 30 | GameRec|t = {0,0|
|000007d0| 2c 32 30 30 2c 33 32 30 | 7d 3b 09 2f 2a 20 53 69 |,200,320|};./* Si|
|000007e0| 7a 65 20 6f 66 20 74 68 | 65 20 70 6c 61 79 66 69 |ze of th|e playfi|
|000007f0| 65 6c 64 20 2a 2f 0d 73 | 74 61 74 69 63 20 52 65 |eld */.s|tatic Re|
|00000800| 63 74 20 42 6c 61 63 6b | 52 65 63 74 20 3d 20 7b |ct Black|Rect = {|
|00000810| 30 2c 30 2c 34 38 30 2c | 36 34 30 7d 3b 09 2f 2a |0,0,480,|640};./*|
|00000820| 20 52 65 63 74 20 66 6f | 72 20 74 68 65 20 42 6c | Rect fo|r the Bl|
|00000830| 61 63 6b 20 57 69 6e 64 | 6f 77 20 28 53 65 74 20 |ack Wind|ow (Set |
|00000840| 74 6f 20 6d 61 69 6e 20 | 77 69 6e 64 6f 77 20 73 |to main |window s|
|00000850| 69 7a 65 29 20 2a 2f 0d | 73 74 61 74 69 63 20 52 |ize) */.|static R|
|00000860| 65 63 74 20 42 6c 61 63 | 6b 52 65 63 74 32 20 3d |ect Blac|kRect2 =|
|00000870| 20 7b 30 2c 30 2c 34 38 | 30 2c 36 34 30 7d 3b 09 | {0,0,48|0,640};.|
|00000880| 2f 2a 20 54 72 75 65 20 | 72 65 63 74 20 66 6f 72 |/* True |rect for|
|00000890| 20 74 68 65 20 42 6c 61 | 63 6b 20 77 69 6e 64 6f | the Bla|ck windo|
|000008a0| 77 20 28 47 6c 6f 62 61 | 6c 29 20 2a 2f 0d 73 74 |w (Globa|l) */.st|
|000008b0| 61 74 69 63 20 57 6f 72 | 64 20 4f 6c 64 50 69 78 |atic Wor|d OldPix|
|000008c0| 44 65 70 74 68 3b 09 09 | 2f 2a 20 50 72 65 76 69 |Depth;..|/* Previ|
|000008d0| 6f 75 73 20 70 69 78 65 | 6c 20 64 65 70 74 68 20 |ous pixe|l depth |
|000008e0| 6f 66 20 73 63 72 65 65 | 6e 20 2a 2f 0d 57 6f 72 |of scree|n */.Wor|
|000008f0| 64 20 4d 61 63 57 69 64 | 74 68 3b 09 09 09 09 09 |d MacWid|th;.....|
|00000900| 2f 2a 20 57 69 64 74 68 | 20 6f 66 20 70 6c 61 79 |/* Width| of play|
|00000910| 20 73 63 72 65 65 6e 20 | 28 53 61 6d 65 20 61 73 | screen |(Same as|
|00000920| 20 47 61 6d 65 52 65 63 | 74 2e 72 69 67 68 74 29 | GameRec|t.right)|
|00000930| 20 2a 2f 0d 57 6f 72 64 | 20 4d 61 63 48 65 69 67 | */.Word| MacHeig|
|00000940| 68 74 3b 09 09 09 09 09 | 2f 2a 20 48 65 69 67 68 |ht;.....|/* Heigh|
|00000950| 74 20 6f 66 20 70 6c 61 | 79 20 73 63 72 65 65 6e |t of pla|y screen|
|00000960| 20 28 53 61 6d 65 20 61 | 73 20 47 61 6d 65 52 65 | (Same a|s GameRe|
|00000970| 63 74 2e 62 6f 74 74 6f | 6d 29 20 2a 2f 0d 57 6f |ct.botto|m) */.Wo|
|00000980| 72 64 20 4d 61 63 56 69 | 65 77 48 65 69 67 68 74 |rd MacVi|ewHeight|
|00000990| 3b 09 09 09 09 2f 2a 20 | 48 65 69 67 68 74 20 6f |;..../* |Height o|
|000009a0| 66 20 33 64 20 73 63 72 | 65 65 6e 20 28 42 6f 74 |f 3d scr|een (Bot|
|000009b0| 74 6f 6d 20 6f 66 20 33 | 44 20 76 69 65 77 20 2a |tom of 3|D view *|
|000009c0| 2f 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 4d 6f |/.static| Word Mo|
|000009d0| 6e 69 74 6f 72 57 69 64 | 74 68 3d 36 34 30 3b 09 |nitorWid|th=640;.|
|000009e0| 09 2f 2a 20 57 69 64 74 | 68 20 6f 66 20 74 68 65 |./* Widt|h of the|
|000009f0| 20 6d 6f 6e 69 74 6f 72 | 20 69 6e 20 70 69 78 65 | monitor| in pixe|
|00000a00| 6c 73 20 2a 2f 0d 73 74 | 61 74 69 63 20 57 6f 72 |ls */.st|atic Wor|
|00000a10| 64 20 4d 6f 6e 69 74 6f | 72 48 65 69 67 68 74 3d |d Monito|rHeight=|
|00000a20| 34 38 30 3b 09 09 2f 2a | 20 48 65 69 67 68 74 20 |480;../*| Height |
|00000a30| 6f 66 20 74 68 65 20 6d | 6f 6e 69 74 6f 72 20 69 |of the m|onitor i|
|00000a40| 6e 20 70 69 78 65 6c 73 | 20 2a 2f 0d 57 6f 72 64 |n pixels| */.Word|
|00000a50| 20 51 75 69 74 46 6c 61 | 67 3b 09 09 09 09 09 2f | QuitFla|g;...../|
|00000a60| 2a 20 49 20 71 75 69 74 | 20 69 66 20 74 72 75 65 |* I quit| if true|
|00000a70| 20 2a 2f 0d 57 6f 72 64 | 20 54 72 75 65 56 69 64 | */.Word| TrueVid|
|00000a80| 65 6f 57 69 64 74 68 3b | 09 09 09 2f 2a 20 57 69 |eoWidth;|.../* Wi|
|00000a90| 64 74 68 20 6f 66 20 76 | 69 64 65 6f 20 6d 6f 6e |dth of v|ideo mon|
|00000aa0| 69 74 6f 72 20 69 6e 20 | 62 79 74 65 73 20 2a 2f |itor in |bytes */|
|00000ab0| 0d 42 79 74 65 20 2a 54 | 72 75 65 56 69 64 65 6f |.Byte *T|rueVideo|
|00000ac0| 50 6f 69 6e 74 65 72 3b | 09 09 09 2f 2a 20 50 6f |Pointer;|.../* Po|
|00000ad0| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 76 69 64 |inter to| the vid|
|00000ae0| 65 6f 20 6d 6f 6e 69 74 | 6f 72 20 6d 65 6d 6f 72 |eo monit|or memor|
|00000af0| 79 20 2a 2f 0d 42 79 74 | 65 20 2a 47 61 6d 65 56 |y */.Byt|e *GameV|
|00000b00| 69 64 65 6f 50 6f 69 6e | 74 65 72 3b 09 09 09 2f |ideoPoin|ter;.../|
|00000b10| 2a 20 50 6f 69 6e 74 65 | 72 20 74 6f 20 73 74 61 |* Pointe|r to sta|
|00000b20| 72 74 20 6f 66 20 33 44 | 20 76 69 65 77 20 6f 6e |rt of 3D| view on|
|00000b30| 20 6d 6f 6e 69 74 6f 72 | 20 6d 65 6d 6f 72 79 20 | monitor| memory |
|00000b40| 28 55 73 65 64 20 62 79 | 20 42 6c 61 73 74 53 63 |(Used by| BlastSc|
|00000b50| 72 65 65 6e 29 20 2a 2f | 0d 42 6f 6f 6c 65 61 6e |reen) */|.Boolean|
|00000b60| 20 44 6f 51 75 69 63 6b | 44 72 61 77 20 3d 20 54 | DoQuick|Draw = T|
|00000b70| 52 55 45 3b 09 09 2f 2a | 20 55 73 65 20 71 75 69 |RUE;../*| Use qui|
|00000b80| 63 6b 64 72 61 77 20 66 | 6f 72 20 75 70 64 61 74 |ckdraw f|or updat|
|00000b90| 65 73 3f 20 2a 2f 09 0d | 73 74 61 74 69 63 20 42 |es? */..|static B|
|00000ba0| 6f 6f 6c 65 61 6e 20 44 | 69 6d 51 44 3b 09 09 09 |oolean D|imQD;...|
|00000bb0| 2f 2a 20 46 6f 72 63 65 | 20 51 75 69 63 6b 44 72 |/* Force| QuickDr|
|00000bc0| 61 77 20 66 6f 72 65 76 | 65 72 21 20 2a 2f 0d 57 |aw forev|er! */.W|
|00000bd0| 6f 72 64 20 49 67 6e 6f | 72 65 4d 65 73 73 61 67 |ord Igno|reMessag|
|00000be0| 65 3b 09 09 09 09 2f 2a | 20 56 61 72 69 61 62 6c |e;..../*| Variabl|
|00000bf0| 65 20 73 65 74 20 62 79 | 20 70 72 65 66 73 20 74 |e set by| prefs t|
|00000c00| 6f 20 69 67 6e 6f 72 65 | 20 6d 65 73 73 61 67 65 |o ignore| message|
|00000c10| 73 20 2a 2f 0d 73 74 61 | 74 69 63 20 43 75 72 73 |s */.sta|tic Curs|
|00000c20| 48 61 6e 64 6c 65 20 57 | 61 74 63 68 48 61 6e 64 |Handle W|atchHand|
|00000c30| 6c 65 3b 09 2f 2a 20 48 | 61 6e 64 6c 65 20 74 6f |le;./* H|andle to|
|00000c40| 20 61 20 77 61 74 63 68 | 20 63 75 72 73 6f 72 20 | a watch| cursor |
|00000c50| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 52 65 63 74 58 |*/.#defi|ne RectX|
|00000c60| 20 28 28 4d 6f 6e 69 74 | 6f 72 57 69 64 74 68 2d | ((Monit|orWidth-|
|00000c70| 4d 61 63 57 69 64 74 68 | 29 2f 32 29 0d 23 64 65 |MacWidth|)/2).#de|
|00000c80| 66 69 6e 65 20 52 65 63 | 74 59 20 28 28 4d 6f 6e |fine Rec|tY ((Mon|
|00000c90| 69 74 6f 72 48 65 69 67 | 68 74 2d 4d 61 63 48 65 |itorHeig|ht-MacHe|
|00000ca0| 69 67 68 74 29 2f 32 29 | 0d 57 6f 72 64 20 56 69 |ight)/2)|.Word Vi|
|00000cb0| 64 58 73 5b 5d 20 3d 20 | 7b 33 32 30 2c 35 31 32 |dXs[] = |{320,512|
|00000cc0| 2c 36 34 30 2c 36 34 30 | 7d 3b 09 2f 2a 20 53 63 |,640,640|};./* Sc|
|00000cd0| 72 65 65 6e 20 73 69 7a | 65 73 20 74 6f 20 70 6c |reen siz|es to pl|
|00000ce0| 61 79 20 77 69 74 68 20 | 2a 2f 0d 57 6f 72 64 20 |ay with |*/.Word |
|00000cf0| 56 69 64 59 73 5b 5d 20 | 3d 20 7b 32 30 30 2c 33 |VidYs[] |= {200,3|
|00000d00| 38 34 2c 34 30 30 2c 34 | 38 30 7d 3b 0d 57 6f 72 |84,400,4|80};.Wor|
|00000d10| 64 20 56 69 64 56 73 5b | 5d 20 3d 20 7b 31 36 30 |d VidVs[|] = {160|
|00000d20| 2c 33 32 30 2c 33 32 30 | 2c 34 30 30 7d 3b 0d 57 |,320,320|,400};.W|
|00000d30| 6f 72 64 20 56 69 64 50 | 69 63 73 5b 5d 20 3d 20 |ord VidP|ics[] = |
|00000d40| 7b 72 46 61 63 65 53 68 | 61 70 65 73 2c 72 46 61 |{rFaceSh|apes,rFa|
|00000d50| 63 65 35 31 32 2c 72 46 | 61 63 65 36 34 30 2c 72 |ce512,rF|ace640,r|
|00000d60| 46 61 63 65 36 34 30 7d | 3b 09 09 2f 2a 20 52 65 |Face640}|;../* Re|
|00000d70| 73 6f 75 72 63 65 20 23 | 27 73 20 66 6f 72 20 61 |source #|'s for a|
|00000d80| 72 74 20 2a 2f 0d 73 74 | 61 74 69 63 20 57 6f 72 |rt */.st|atic Wor|
|00000d90| 64 20 4d 6f 75 73 65 42 | 61 73 65 58 3b 0d 73 74 |d MouseB|aseX;.st|
|00000da0| 61 74 69 63 20 57 6f 72 | 64 20 4d 6f 75 73 65 42 |atic Wor|d MouseB|
|00000db0| 61 73 65 59 3b 0d 73 74 | 61 74 69 63 20 42 6f 6f |aseY;.st|atic Boo|
|00000dc0| 6c 65 61 6e 20 49 6e 50 | 61 75 73 65 3b 09 09 09 |lean InP|ause;...|
|00000dd0| 2f 2a 20 50 61 75 73 65 | 20 61 63 74 69 76 65 3f |/* Pause| active?|
|00000de0| 20 2a 2f 0d 0d 65 78 74 | 65 72 6e 20 6a 6d 70 5f | */..ext|ern jmp_|
|00000df0| 62 75 66 20 52 65 73 65 | 74 4a 6d 70 3b 0d 65 78 |buf Rese|tJmp;.ex|
|00000e00| 74 65 72 6e 20 42 6f 6f | 6c 65 61 6e 20 4a 75 6d |tern Boo|lean Jum|
|00000e10| 70 4f 4b 3b 0d 65 78 74 | 65 72 6e 20 43 57 69 6e |pOK;.ext|ern CWin|
|00000e20| 64 6f 77 50 74 72 20 47 | 61 6d 65 57 69 6e 64 6f |dowPtr G|ameWindo|
|00000e30| 77 3b 09 2f 2a 20 50 6f | 69 6e 74 65 72 20 74 6f |w;./* Po|inter to|
|00000e40| 20 6d 61 69 6e 20 67 61 | 6d 65 20 77 69 6e 64 6f | main ga|me windo|
|00000e50| 77 20 2a 2f 0d 65 78 74 | 65 72 6e 20 43 47 72 61 |w */.ext|ern CGra|
|00000e60| 66 50 74 72 20 47 61 6d | 65 47 57 6f 72 6c 64 3b |fPtr Gam|eGWorld;|
|00000e70| 09 09 2f 2a 20 47 72 61 | 66 70 6f 72 74 20 74 6f |../* Gra|fport to|
|00000e80| 20 6f 66 66 73 63 72 65 | 65 6e 20 62 75 66 66 65 | offscre|en buffe|
|00000e90| 72 20 2a 2f 0d 47 44 48 | 61 6e 64 6c 65 20 67 4d |r */.GDH|andle gM|
|00000ea0| 61 69 6e 47 44 48 3b 09 | 09 09 09 2f 2a 20 4d 61 |ainGDH;.|.../* Ma|
|00000eb0| 69 6e 20 67 72 61 70 68 | 69 63 73 20 68 61 6e 64 |in graph|ics hand|
|00000ec0| 6c 65 20 2a 2f 0d 43 54 | 61 62 48 61 6e 64 6c 65 |le */.CT|abHandle|
|00000ed0| 20 4d 61 69 6e 43 6f 6c | 6f 72 48 61 6e 64 6c 65 | MainCol|orHandle|
|00000ee0| 3b 09 09 2f 2a 20 4d 61 | 69 6e 20 63 6f 6c 6f 72 |;../* Ma|in color|
|00000ef0| 20 74 61 62 6c 65 20 68 | 61 6e 64 6c 65 20 2a 2f | table h|andle */|
|00000f00| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 20 57 61 |..static| void Wa|
|00000f10| 69 74 43 75 72 73 6f 72 | 28 76 6f 69 64 29 3b 0d |itCursor|(void);.|
|00000f20| 73 74 61 74 69 63 20 76 | 6f 69 64 20 52 65 73 65 |static v|oid Rese|
|00000f30| 74 50 61 6c 65 74 74 65 | 28 76 6f 69 64 29 3b 0d |tPalette|(void);.|
|00000f40| 73 74 61 74 69 63 20 76 | 6f 69 64 20 44 6f 42 61 |static v|oid DoBa|
|00000f50| 63 6b 67 72 6f 75 6e 64 | 28 45 76 65 6e 74 52 65 |ckground|(EventRe|
|00000f60| 63 6f 72 64 20 2a 65 76 | 65 6e 74 29 3b 0d 73 74 |cord *ev|ent);.st|
|00000f70| 61 74 69 63 20 76 6f 69 | 64 20 49 6e 69 74 41 45 |atic voi|d InitAE|
|00000f80| 53 74 75 66 66 28 76 6f | 69 64 29 3b 0d 73 74 61 |Stuff(vo|id);.sta|
|00000f90| 74 69 63 20 76 6f 69 64 | 20 46 69 78 54 68 65 43 |tic void| FixTheC|
|00000fa0| 75 72 73 6f 72 28 76 6f | 69 64 29 3b 0d 0d 2f 2a |ursor(vo|id);../*|
|00000fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 09 44 69 61 |********|**...Dia|
|00000fd0| 6c 6f 67 20 66 69 6c 74 | 65 72 20 66 6f 72 20 36 |log filt|er for 6|
|00000fe0| 38 30 32 30 2f 33 30 20 | 76 65 72 73 69 6f 6e 20 |8020/30 |version |
|00000ff0| 73 70 65 65 64 20 77 61 | 72 6e 69 6e 67 0d 0d 2a |speed wa|rning..*|
|00001000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 23 69 66 |********|**/..#if|
|00001020| 6e 64 65 66 20 5f 5f 70 | 6f 77 65 72 63 0d 73 74 |ndef __p|owerc.st|
|00001030| 61 74 69 63 20 70 61 73 | 63 61 6c 20 42 6f 6f 6c |atic pas|cal Bool|
|00001040| 65 61 6e 20 49 6e 69 74 | 46 69 6c 74 65 72 28 44 |ean Init|Filter(D|
|00001050| 69 61 6c 6f 67 50 74 72 | 20 74 68 65 44 69 61 6c |ialogPtr| theDial|
|00001060| 6f 67 2c 20 45 76 65 6e | 74 52 65 63 6f 72 64 20 |og, Even|tRecord |
|00001070| 2a 74 68 65 45 76 65 6e | 74 2c 20 73 68 6f 72 74 |*theEven|t, short|
|00001080| 20 2a 69 74 65 6d 48 69 | 74 29 0d 7b 0d 09 63 68 | *itemHi|t).{..ch|
|00001090| 61 72 09 74 68 65 43 68 | 61 72 3b 0d 09 48 61 6e |ar.theCh|ar;..Han|
|000010a0| 64 6c 65 09 74 68 65 48 | 61 6e 64 6c 65 3b 0d 09 |dle.theH|andle;..|
|000010b0| 73 68 6f 72 74 09 74 68 | 65 54 79 70 65 3b 0d 09 |short.th|eType;..|
|000010c0| 52 65 63 74 09 74 68 65 | 52 65 63 74 3b 0d 0d 09 |Rect.the|Rect;...|
|000010d0| 73 77 69 74 63 68 20 28 | 74 68 65 45 76 65 6e 74 |switch (|theEvent|
|000010e0| 2d 3e 77 68 61 74 29 20 | 7b 0d 09 63 61 73 65 20 |->what) |{..case |
|000010f0| 6b 65 79 44 6f 77 6e 3a | 0d 09 09 74 68 65 43 68 |keyDown:|...theCh|
|00001100| 61 72 20 3d 20 74 68 65 | 45 76 65 6e 74 2d 3e 6d |ar = the|Event->m|
|00001110| 65 73 73 61 67 65 20 26 | 20 63 68 61 72 43 6f 64 |essage &| charCod|
|00001120| 65 4d 61 73 6b 3b 0d 09 | 09 73 77 69 74 63 68 20 |eMask;..|.switch |
|00001130| 28 74 68 65 43 68 61 72 | 29 20 7b 0d 09 09 63 61 |(theChar|) {...ca|
|00001140| 73 65 20 30 78 30 44 3a | 09 09 2f 2a 20 52 65 74 |se 0x0D:|../* Ret|
|00001150| 75 72 6e 20 2a 2f 0d 09 | 09 63 61 73 65 20 30 78 |urn */..|.case 0x|
|00001160| 30 33 3a 09 09 2f 2a 20 | 45 6e 74 65 72 20 2a 2f |03:../* |Enter */|
|00001170| 0d 09 09 09 2a 69 74 65 | 6d 48 69 74 20 3d 20 31 |....*ite|mHit = 1|
|00001180| 3b 0d 09 09 09 72 65 74 | 75 72 6e 20 28 54 52 55 |;....ret|urn (TRU|
|00001190| 45 29 3b 0d 09 09 7d 0d | 0d 09 63 61 73 65 20 75 |E);...}.|..case u|
|000011a0| 70 64 61 74 65 45 76 74 | 3a 0d 09 09 47 65 74 44 |pdateEvt|:...GetD|
|000011b0| 69 61 6c 6f 67 49 74 65 | 6d 28 74 68 65 44 69 61 |ialogIte|m(theDia|
|000011c0| 6c 6f 67 2c 31 2c 20 26 | 74 68 65 54 79 70 65 2c |log,1, &|theType,|
|000011d0| 20 26 74 68 65 48 61 6e | 64 6c 65 2c 20 26 74 68 | &theHan|dle, &th|
|000011e0| 65 52 65 63 74 29 3b 0d | 09 09 49 6e 73 65 74 52 |eRect);.|..InsetR|
|000011f0| 65 63 74 28 26 74 68 65 | 52 65 63 74 2c 20 2d 34 |ect(&the|Rect, -4|
|00001200| 2c 20 2d 34 29 3b 0d 09 | 09 50 65 6e 53 69 7a 65 |, -4);..|.PenSize|
|00001210| 28 33 2c 33 29 3b 0d 09 | 09 46 72 61 6d 65 52 6f |(3,3);..|.FrameRo|
|00001220| 75 6e 64 52 65 63 74 28 | 26 74 68 65 52 65 63 74 |undRect(|&theRect|
|00001230| 2c 20 31 36 2c 20 31 36 | 29 3b 0d 09 7d 0d 09 72 |, 16, 16|);..}..r|
|00001240| 65 74 75 72 6e 20 28 46 | 41 4c 53 45 29 3b 09 09 |eturn (F|ALSE);..|
|00001250| 2f 2a 20 54 65 6c 6c 73 | 20 64 69 61 6c 6f 67 20 |/* Tells| dialog |
|00001260| 6d 61 6e 61 67 65 72 20 | 74 6f 20 68 61 6e 64 6c |manager |to handl|
|00001270| 65 20 74 68 65 20 65 76 | 65 6e 74 20 2a 2f 0d 7d |e the ev|ent */.}|
|00001280| 0d 23 65 6e 64 69 66 0d | 0d 2f 2a 2a 2a 2a 2a 2a |.#endif.|./******|
|00001290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012a0| 2a 2a 2a 2a 2a 0d 0d 09 | 49 6e 69 74 20 74 68 65 |*****...|Init the|
|000012b0| 20 4d 61 63 69 6e 74 6f | 73 68 20 61 6e 64 20 61 | Macinto|sh and a|
|000012c0| 6c 6c 20 74 68 65 0d 09 | 73 79 73 74 65 6d 20 74 |ll the..|system t|
|000012d0| 6f 6f 6c 73 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ools..**|********|
|000012e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012f0| 2a 2f 0d 0d 76 6f 69 64 | 20 49 6e 69 74 54 6f 6f |*/..void| InitToo|
|00001300| 6c 73 28 76 6f 69 64 29 | 0d 7b 0d 09 48 61 6e 64 |ls(void)|.{..Hand|
|00001310| 6c 65 20 6d 65 6e 75 42 | 61 72 3b 09 09 09 09 2f |le menuB|ar;..../|
|00001320| 2a 20 48 61 6e 64 6c 65 | 20 74 6f 20 6d 65 6e 75 |* Handle| to menu|
|00001330| 20 62 61 72 20 72 65 63 | 6f 72 64 20 2a 2f 0d 09 | bar rec|ord */..|
|00001340| 57 6f 72 64 20 69 3b 09 | 09 09 09 09 09 2f 2a 20 |Word i;.|...../* |
|00001350| 54 65 6d 70 20 2a 2f 0d | 09 6c 6f 6e 67 20 46 65 |Temp */.|.long Fe|
|00001360| 61 74 75 72 65 3b 09 09 | 09 09 2f 2a 20 47 65 73 |ature;..|../* Ges|
|00001370| 74 61 6c 74 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |talt ret|urn valu|
|00001380| 65 20 2a 2f 0d 09 73 68 | 6f 72 74 20 69 6e 74 20 |e */..sh|ort int |
|00001390| 2a 53 6f 75 6e 64 4c 69 | 73 74 50 74 72 3b 09 2f |*SoundLi|stPtr;./|
|000013a0| 2a 20 50 6f 69 6e 74 65 | 72 20 74 6f 20 73 6f 75 |* Pointe|r to sou|
|000013b0| 6e 64 20 6c 69 73 74 20 | 66 6f 72 20 48 61 6c 65 |nd list |for Hale|
|000013c0| 73 74 6f 72 6d 20 64 72 | 69 76 65 72 20 2a 2f 0d |storm dr|iver */.|
|000013d0| 0d 09 4d 61 78 41 70 70 | 6c 5a 6f 6e 65 28 29 3b |..MaxApp|lZone();|
|000013e0| 09 2f 2a 20 45 78 70 61 | 6e 64 20 74 68 65 20 68 |./* Expa|nd the h|
|000013f0| 65 61 70 20 73 6f 20 63 | 6f 64 65 20 73 65 67 6d |eap so c|ode segm|
|00001400| 65 6e 74 73 20 6c 6f 61 | 64 20 61 74 20 74 68 65 |ents loa|d at the|
|00001410| 20 74 6f 70 20 2a 2f 0d | 09 49 6e 69 74 47 72 61 | top */.|.InitGra|
|00001420| 66 28 28 50 74 72 29 20 | 26 71 64 2e 74 68 65 50 |f((Ptr) |&qd.theP|
|00001430| 6f 72 74 29 3b 09 2f 2a | 20 49 6e 69 74 20 74 68 |ort);./*| Init th|
|00001440| 65 20 67 72 61 70 68 69 | 63 73 20 73 79 73 74 65 |e graphi|cs syste|
|00001450| 6d 20 2a 2f 0d 09 49 6e | 69 74 46 6f 6e 74 73 28 |m */..In|itFonts(|
|00001460| 29 3b 09 09 09 09 09 2f | 2a 20 49 6e 69 74 20 74 |);...../|* Init t|
|00001470| 68 65 20 66 6f 6e 74 20 | 6d 61 6e 61 67 65 72 20 |he font |manager |
|00001480| 2a 2f 0d 09 49 6e 69 74 | 57 69 6e 64 6f 77 73 28 |*/..Init|Windows(|
|00001490| 29 3b 09 09 09 09 09 2f | 2a 20 49 6e 69 74 20 74 |);...../|* Init t|
|000014a0| 68 65 20 77 69 6e 64 6f | 77 20 6d 61 6e 61 67 65 |he windo|w manage|
|000014b0| 72 20 2a 2f 0d 09 49 6e | 69 74 4d 65 6e 75 73 28 |r */..In|itMenus(|
|000014c0| 29 3b 09 09 09 09 09 2f | 2a 20 49 6e 69 74 20 74 |);...../|* Init t|
|000014d0| 68 65 20 6d 65 6e 75 20 | 6d 61 6e 61 67 65 72 20 |he menu |manager |
|000014e0| 2a 2f 0d 09 54 45 49 6e | 69 74 28 29 3b 09 09 09 |*/..TEIn|it();...|
|000014f0| 09 09 09 2f 2a 20 49 6e | 69 74 20 74 65 78 74 20 |.../* In|it text |
|00001500| 65 64 69 74 20 2a 2f 0d | 09 49 6e 69 74 44 69 61 |edit */.|.InitDia|
|00001510| 6c 6f 67 73 28 6e 69 6c | 29 3b 09 09 09 09 2f 2a |logs(nil|);..../*|
|00001520| 20 49 6e 69 74 20 74 68 | 65 20 64 69 61 6c 6f 67 | Init th|e dialog|
|00001530| 20 6d 61 6e 61 67 65 72 | 20 2a 2f 0d 09 69 20 3d | manager| */..i =|
|00001540| 20 31 36 3b 09 09 09 09 | 09 09 09 2f 2a 20 4d 61 | 16;....|.../* Ma|
|00001550| 6b 65 20 36 34 2a 31 36 | 20 68 61 6e 64 6c 65 20 |ke 64*16| handle |
|00001560| 72 65 63 6f 72 64 73 20 | 2a 2f 0d 09 64 6f 20 7b |records |*/..do {|
|00001570| 0d 09 09 4d 6f 72 65 4d | 61 73 74 65 72 73 28 29 |...MoreM|asters()|
|00001580| 3b 09 09 09 09 2f 2a 20 | 43 72 65 61 74 65 20 61 |;..../* |Create a|
|00001590| 20 42 55 4e 43 48 20 6f | 66 20 6e 65 77 20 68 61 | BUNCH o|f new ha|
|000015a0| 6e 64 6c 65 73 20 2a 2f | 0d 09 7d 20 77 68 69 6c |ndles */|..} whil|
|000015b0| 65 20 28 2d 2d 69 29 3b | 0d 23 69 66 64 65 66 20 |e (--i);|.#ifdef |
|000015c0| 5f 5f 70 6f 77 65 72 63 | 0d 09 57 61 69 74 4e 65 |__powerc|..WaitNe|
|000015d0| 78 74 4f 4b 20 3d 20 54 | 52 55 45 3b 0d 23 65 6c |xtOK = T|RUE;.#el|
|000015e0| 73 65 0d 09 69 66 20 28 | 4e 47 65 74 54 72 61 70 |se..if (|NGetTrap|
|000015f0| 41 64 64 72 65 73 73 28 | 30 78 41 38 36 30 2c 31 |Address(|0xA860,1|
|00001600| 29 20 21 3d 20 28 76 6f | 69 64 20 2a 29 30 78 61 |) != (vo|id *)0xa|
|00001610| 38 39 46 29 20 7b 0d 09 | 09 57 61 69 74 4e 65 78 |89F) {..|.WaitNex|
|00001620| 74 4f 4b 20 3d 20 54 52 | 55 45 3b 0d 09 7d 0d 23 |tOK = TR|UE;..}.#|
|00001630| 65 6e 64 69 66 0d 0d 09 | 49 6e 69 74 41 45 53 74 |endif...|InitAESt|
|00001640| 75 66 66 28 29 3b 09 09 | 09 09 09 2f 2a 20 41 70 |uff();..|.../* Ap|
|00001650| 70 6c 65 20 65 76 65 6e | 74 73 20 73 68 69 74 20 |ple even|ts shit |
|00001660| 2a 2f 0d 09 49 6e 69 74 | 43 75 72 73 6f 72 28 29 |*/..Init|Cursor()|
|00001670| 3b 09 09 09 09 09 2f 2a | 20 52 65 73 65 74 20 74 |;...../*| Reset t|
|00001680| 68 65 20 63 75 72 73 6f | 72 20 2a 2f 0d 09 57 61 |he curso|r */..Wa|
|00001690| 74 63 68 48 61 6e 64 6c | 65 20 3d 20 47 65 74 43 |tchHandl|e = GetC|
|000016a0| 75 72 73 6f 72 28 77 61 | 74 63 68 43 75 72 73 6f |ursor(wa|tchCurso|
|000016b0| 72 29 3b 09 2f 2a 20 47 | 65 74 20 74 68 65 20 77 |r);./* G|et the w|
|000016c0| 61 74 63 68 20 63 75 72 | 73 6f 72 20 2a 2f 0d 09 |atch cur|sor */..|
|000016d0| 48 4c 6f 63 6b 28 28 48 | 61 6e 64 6c 65 29 57 61 |HLock((H|andle)Wa|
|000016e0| 74 63 68 48 61 6e 64 6c | 65 29 3b 09 09 2f 2a 20 |tchHandl|e);../* |
|000016f0| 4c 6f 63 6b 20 69 74 20 | 64 6f 77 6e 20 2a 2f 0d |Lock it |down */.|
|00001700| 09 57 61 69 74 43 75 72 | 73 6f 72 28 29 3b 09 09 |.WaitCur|sor();..|
|00001710| 09 09 09 2f 2a 20 53 65 | 74 20 74 68 65 20 77 61 |.../* Se|t the wa|
|00001720| 74 63 68 20 63 75 72 73 | 6f 72 20 2a 2f 0d 09 4c |tch curs|or */..L|
|00001730| 6f 61 64 50 72 65 66 73 | 28 29 3b 09 09 09 09 09 |oadPrefs|();.....|
|00001740| 2f 2a 20 4c 6f 61 64 20 | 74 68 65 20 70 72 65 66 |/* Load |the pref|
|00001750| 73 20 66 69 6c 65 20 2a | 2f 0d 09 0d 09 2f 2a 20 |s file *|/..../* |
|00001760| 4e 6f 77 20 74 68 61 74 | 20 74 68 65 20 6d 61 63 |Now that| the mac|
|00001770| 20 69 73 20 73 74 61 72 | 74 65 64 20 75 70 2c 20 | is star|ted up, |
|00001780| 6c 65 74 27 73 20 6d 61 | 6b 65 20 73 75 72 65 20 |let's ma|ke sure |
|00001790| 49 20 63 61 6e 20 72 75 | 6e 20 6f 6e 20 74 68 69 |I can ru|n on thi|
|000017a0| 73 20 70 61 72 74 69 63 | 75 6c 61 72 20 6d 61 63 |s partic|ular mac|
|000017b0| 20 2a 2f 0d 0d 23 69 66 | 6e 64 65 66 20 5f 5f 70 | */..#if|ndef __p|
|000017c0| 6f 77 65 72 63 09 09 2f | 2a 20 50 6f 77 65 72 20 |owerc../|* Power |
|000017d0| 6d 61 63 73 20 52 45 51 | 55 49 52 45 20 37 2e 31 |macs REQ|UIRE 7.1|
|000017e0| 20 74 6f 20 72 75 6e 20 | 73 6f 20 64 6f 6e 27 74 | to run |so don't|
|000017f0| 20 65 76 65 6e 20 63 68 | 65 63 6b 20 6f 6e 20 70 | even ch|eck on p|
|00001800| 6f 77 65 72 20 6d 61 63 | 73 20 2a 2f 0d 0d 09 69 |ower mac|s */...i|
|00001810| 66 20 28 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |f (Gesta|lt(gesta|
|00001820| 6c 74 56 65 72 73 69 6f | 6e 2c 26 46 65 61 74 75 |ltVersio|n,&Featu|
|00001830| 72 65 29 29 20 7b 09 2f | 2a 20 49 73 20 67 65 73 |re)) {./|* Is ges|
|00001840| 74 61 6c 74 20 77 6f 72 | 6b 69 6e 67 3f 20 2a 2f |talt wor|king? */|
|00001850| 0d 09 09 67 6f 74 6f 20 | 4e 6f 74 36 30 37 3b 09 |...goto |Not607;.|
|00001860| 09 09 2f 2a 20 4f 68 20 | 6f 68 2e 2e 2e 20 2a 2f |../* Oh |oh... */|
|00001870| 0d 09 7d 0d 09 09 0d 09 | 2f 2a 20 43 68 65 63 6b |..}.....|/* Check|
|00001880| 20 66 6f 72 20 53 79 73 | 74 65 6d 20 36 2e 30 2e | for Sys|tem 6.0.|
|00001890| 37 20 6f 72 20 6c 61 74 | 65 72 20 2a 2f 0d 09 0d |7 or lat|er */...|
|000018a0| 09 69 66 20 28 47 65 73 | 74 61 6c 74 28 67 65 73 |.if (Ges|talt(ges|
|000018b0| 74 61 6c 74 53 79 73 74 | 65 6d 56 65 72 73 69 6f |taltSyst|emVersio|
|000018c0| 6e 2c 20 26 46 65 61 74 | 75 72 65 29 20 7c 7c 0d |n, &Feat|ure) ||.|
|000018d0| 09 09 28 73 68 6f 72 74 | 29 46 65 61 74 75 72 65 |..(short|)Feature|
|000018e0| 20 3c 20 30 78 30 36 30 | 37 29 20 7b 09 2f 2a 20 | < 0x060|7) {./* |
|000018f0| 49 73 20 69 74 20 36 2e | 30 2e 37 20 6f 72 20 6c |Is it 6.|0.7 or l|
|00001900| 61 74 65 72 3f 20 2a 2f | 0d 09 09 67 6f 74 6f 20 |ater? */|...goto |
|00001910| 4e 6f 74 36 30 37 3b 0d | 09 7d 0d 0d 23 65 6e 64 |Not607;.|.}..#end|
|00001920| 69 66 0d 0d 09 2f 2a 20 | 43 68 65 63 6b 20 66 6f |if.../* |Check fo|
|00001930| 72 20 43 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 |r Color |QuickDra|
|00001940| 77 2e 20 20 49 66 20 74 | 68 65 72 65 27 73 20 6e |w. If t|here's n|
|00001950| 6f 20 63 6f 6c 6f 72 2c | 20 71 75 69 74 2e 20 20 |o color,| quit. |
|00001960| 42 65 6c 6f 77 2c 20 77 | 65 20 63 68 65 63 6b 20 |Below, w|e check |
|00001970| 66 6f 72 0d 09 09 33 32 | 2d 62 69 74 20 63 6f 6c |for...32|-bit col|
|00001980| 6f 72 20 51 75 69 63 6b | 44 72 61 77 2e 20 20 2a |or Quick|Draw. *|
|00001990| 2f 0d 09 09 0d 09 69 66 | 20 28 47 65 73 74 61 6c |/.....if| (Gestal|
|000019a0| 74 28 67 65 73 74 61 6c | 74 51 75 69 63 6b 64 72 |t(gestal|tQuickdr|
|000019b0| 61 77 56 65 72 73 69 6f | 6e 2c 20 26 46 65 61 74 |awVersio|n, &Feat|
|000019c0| 75 72 65 29 29 20 7b 0d | 4e 6f 74 36 30 37 3a 0d |ure)) {.|Not607:.|
|000019d0| 09 09 44 6f 4d 79 41 6c | 65 72 74 28 4e 6f 74 36 |..DoMyAl|ert(Not6|
|000019e0| 30 37 57 69 6e 29 3b 09 | 09 2f 2a 20 41 6c 65 72 |07Win);.|./* Aler|
|000019f0| 74 20 74 68 65 20 75 73 | 65 72 20 2a 2f 0d 09 09 |t the us|er */...|
|00001a00| 47 6f 6f 64 42 79 65 28 | 29 3b 09 09 09 09 2f 2a |GoodBye(|);..../*|
|00001a10| 20 45 78 69 74 20 6e 6f | 77 20 2a 2f 0d 09 7d 0d | Exit no|w */..}.|
|00001a20| 09 0d 09 2f 2a 20 43 68 | 65 63 6b 20 66 6f 72 20 |.../* Ch|eck for |
|00001a30| 33 32 2d 62 69 74 20 43 | 6f 6c 6f 72 20 51 75 69 |32-bit C|olor Qui|
|00001a40| 63 6b 44 72 61 77 20 2a | 2f 0d 09 0d 09 69 66 28 |ckDraw *|/....if(|
|00001a50| 20 28 46 65 61 74 75 72 | 65 20 26 20 30 78 30 30 | (Featur|e & 0x00|
|00001a60| 30 30 66 66 66 66 29 20 | 3c 20 30 78 30 32 30 30 |00ffff) |< 0x0200|
|00001a70| 29 20 7b 09 2f 2a 20 4e | 6f 74 20 33 32 20 62 69 |) {./* N|ot 32 bi|
|00001a80| 74 3f 20 2a 2f 0d 09 09 | 44 6f 4d 79 41 6c 65 72 |t? */...|DoMyAler|
|00001a90| 74 28 4e 6f 74 33 32 51 | 44 57 69 6e 29 3b 09 2f |t(Not32Q|DWin);./|
|00001aa0| 2a 20 49 20 6e 65 65 64 | 20 33 32 20 62 69 74 20 |* I need| 32 bit |
|00001ab0| 71 75 69 63 6b 64 72 61 | 77 21 20 2a 2f 0d 09 09 |quickdra|w! */...|
|00001ac0| 47 6f 6f 64 42 79 65 28 | 29 3b 09 09 09 09 2f 2a |GoodBye(|);..../*|
|00001ad0| 20 45 78 69 74 20 2a 2f | 0d 09 7d 0d 09 0d 09 09 | Exit */|..}.....|
|00001ae0| 2f 2a 20 20 43 68 65 63 | 6b 20 74 68 65 20 4d 61 |/* Chec|k the Ma|
|00001af0| 63 27 73 20 70 72 6f 63 | 65 73 73 6f 72 2e 20 20 |c's proc|essor. |
|00001b00| 49 66 20 69 74 27 73 20 | 61 20 36 38 30 33 30 20 |If it's |a 68030 |
|00001b10| 6f 72 20 65 61 72 6c 69 | 65 72 2c 20 77 61 72 6e |or earli|er, warn|
|00001b20| 20 74 68 65 20 75 73 65 | 72 20 69 74 0d 09 09 6d | the use|r it...m|
|00001b30| 69 67 68 74 20 62 65 20 | 73 6c 6f 77 2c 20 61 6e |ight be |slow, an|
|00001b40| 64 20 6e 6f 74 65 20 74 | 68 65 20 62 65 73 74 20 |d note t|he best |
|00001b50| 77 61 79 73 20 74 6f 20 | 73 70 65 65 64 20 69 74 |ways to |speed it|
|00001b60| 20 75 70 2e 20 20 2a 2f | 0d 09 0d 23 69 66 6e 64 | up. */|...#ifnd|
|00001b70| 65 66 20 5f 5f 70 6f 77 | 65 72 63 09 09 2f 2a 20 |ef __pow|erc../* |
|00001b80| 50 6f 77 65 72 20 6d 61 | 63 73 20 64 6f 6e 27 74 |Power ma|cs don't|
|00001b90| 20 6e 65 65 64 20 74 68 | 69 73 20 6d 65 73 73 61 | need th|is messa|
|00001ba0| 67 65 20 2a 2f 0d 09 47 | 65 73 74 61 6c 74 28 67 |ge */..G|estalt(g|
|00001bb0| 65 73 74 61 6c 74 50 72 | 6f 63 65 73 73 6f 72 54 |estaltPr|ocessorT|
|00001bc0| 79 70 65 2c 26 46 65 61 | 74 75 72 65 29 3b 0d 09 |ype,&Fea|ture);..|
|00001bd0| 69 20 3d 20 30 3b 0d 09 | 73 77 69 74 63 68 28 46 |i = 0;..|switch(F|
|00001be0| 65 61 74 75 72 65 29 20 | 7b 0d 09 63 61 73 65 20 |eature) |{..case |
|00001bf0| 67 65 73 74 61 6c 74 36 | 38 30 30 30 3a 0d 09 09 |gestalt6|8000:...|
|00001c00| 2b 2b 69 3b 0d 09 09 50 | 61 72 61 6d 54 65 78 74 |++i;...P|aramText|
|00001c10| 28 22 5c 70 36 38 30 30 | 30 22 2c 22 5c 70 22 2c |("\p6800|0","\p",|
|00001c20| 22 5c 70 22 2c 22 5c 70 | 22 29 3b 0d 09 09 62 72 |"\p","\p|");...br|
|00001c30| 65 61 6b 3b 0d 09 63 61 | 73 65 20 67 65 73 74 61 |eak;..ca|se gesta|
|00001c40| 6c 74 36 38 30 32 30 3a | 0d 09 09 2b 2b 69 3b 0d |lt68020:|...++i;.|
|00001c50| 09 09 50 61 72 61 6d 54 | 65 78 74 28 22 5c 70 36 |..ParamT|ext("\p6|
|00001c60| 38 30 32 30 22 2c 22 5c | 70 22 2c 22 5c 70 22 2c |8020","\|p","\p",|
|00001c70| 22 5c 70 22 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |"\p");..|.break;.|
|00001c80| 09 63 61 73 65 20 67 65 | 73 74 61 6c 74 36 38 30 |.case ge|stalt680|
|00001c90| 33 30 3a 0d 09 09 2b 2b | 69 3b 0d 09 09 50 61 72 |30:...++|i;...Par|
|00001ca0| 61 6d 54 65 78 74 28 22 | 5c 70 36 38 30 33 30 22 |amText("|\p68030"|
|00001cb0| 2c 22 5c 70 22 2c 22 5c | 70 22 2c 22 5c 70 22 29 |,"\p","\|p","\p")|
|00001cc0| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 7d 0d 09 0d |;...brea|k;..}...|
|00001cd0| 09 69 66 20 28 69 20 26 | 26 20 21 49 67 6e 6f 72 |.if (i &|& !Ignor|
|00001ce0| 65 4d 65 73 73 61 67 65 | 29 20 7b 0d 09 09 73 68 |eMessage|) {...sh|
|00001cf0| 6f 72 74 20 09 74 68 65 | 56 61 6c 75 65 2c 69 74 |ort .the|Value,it|
|00001d00| 65 6d 48 69 74 2c 69 54 | 79 70 65 3b 0d 09 09 48 |emHit,iT|ype;...H|
|00001d10| 61 6e 64 6c 65 09 69 48 | 6e 64 6c 3b 0d 09 09 52 |andle.iH|ndl;...R|
|00001d20| 65 63 74 09 69 52 65 63 | 74 3b 0d 09 09 44 69 61 |ect.iRec|t;...Dia|
|00001d30| 6c 6f 67 50 74 72 20 4d | 79 44 69 61 6c 6f 67 3b |logPtr M|yDialog;|
|00001d40| 0d 09 09 4d 6f 64 61 6c | 46 69 6c 74 65 72 55 50 |...Modal|FilterUP|
|00001d50| 50 20 74 68 65 44 69 61 | 6c 6f 67 46 69 6c 74 65 |P theDia|logFilte|
|00001d60| 72 3b 0d 0d 09 09 74 68 | 65 44 69 61 6c 6f 67 46 |r;....th|eDialogF|
|00001d70| 69 6c 74 65 72 20 3d 20 | 4e 65 77 4d 6f 64 61 6c |ilter = |NewModal|
|00001d80| 46 69 6c 74 65 72 50 72 | 6f 63 28 49 6e 69 74 46 |FilterPr|oc(InitF|
|00001d90| 69 6c 74 65 72 29 3b 09 | 2f 2a 20 43 72 65 61 74 |ilter);.|/* Creat|
|00001da0| 65 20 61 20 63 6f 64 65 | 20 70 6f 69 6e 74 65 72 |e a code| pointer|
|00001db0| 20 2a 2f 0d 09 09 4d 79 | 44 69 61 6c 6f 67 20 3d | */...My|Dialog =|
|00001dc0| 20 47 65 74 4e 65 77 44 | 69 61 6c 6f 67 28 53 6c | GetNewD|ialog(Sl|
|00001dd0| 6f 77 57 61 72 6e 57 69 | 6e 2c 30 4c 2c 28 57 69 |owWarnWi|n,0L,(Wi|
|00001de0| 6e 64 6f 77 50 74 72 29 | 2d 31 29 3b 09 2f 2a 20 |ndowPtr)|-1);./* |
|00001df0| 4c 6f 61 64 20 6d 79 20 | 64 69 61 6c 6f 67 20 66 |Load my |dialog f|
|00001e00| 72 6f 6d 20 64 69 73 6b | 20 2a 2f 0d 09 09 43 65 |rom disk| */...Ce|
|00001e10| 6e 74 65 72 41 57 69 6e | 64 6f 77 28 4d 79 44 69 |nterAWin|dow(MyDi|
|00001e20| 61 6c 6f 67 29 3b 0d 09 | 09 53 68 6f 77 57 69 6e |alog);..|.ShowWin|
|00001e30| 64 6f 77 28 4d 79 44 69 | 61 6c 6f 67 29 3b 09 2f |dow(MyDi|alog);./|
|00001e40| 2a 20 44 69 73 70 6c 61 | 79 20 77 69 74 68 20 4f |* Displa|y with O|
|00001e50| 4b 20 62 75 74 74 6f 6e | 20 66 72 61 6d 65 64 20 |K button| framed |
|00001e60| 2a 2f 0d 09 09 53 65 74 | 50 6f 72 74 28 28 57 69 |*/...Set|Port((Wi|
|00001e70| 6e 64 6f 77 50 74 72 29 | 20 4d 79 44 69 61 6c 6f |ndowPtr)| MyDialo|
|00001e80| 67 29 3b 0d 09 09 49 6e | 69 74 43 75 72 73 6f 72 |g);...In|itCursor|
|00001e90| 28 29 3b 09 09 09 09 09 | 2f 2a 20 49 6e 69 74 20 |();.....|/* Init |
|00001ea0| 74 68 65 20 63 75 72 73 | 6f 72 20 2a 2f 0d 09 09 |the curs|or */...|
|00001eb0| 64 6f 20 7b 0d 09 09 09 | 4d 6f 64 61 6c 44 69 61 |do {....|ModalDia|
|00001ec0| 6c 6f 67 28 74 68 65 44 | 69 61 6c 6f 67 46 69 6c |log(theD|ialogFil|
|00001ed0| 74 65 72 2c 26 69 74 65 | 6d 48 69 74 29 3b 09 09 |ter,&ite|mHit);..|
|00001ee0| 2f 2a 20 48 61 6e 64 6c | 65 20 74 68 65 20 64 69 |/* Handl|e the di|
|00001ef0| 61 6c 6f 67 20 2a 2f 0d | 09 09 09 69 66 20 28 69 |alog */.|...if (i|
|00001f00| 74 65 6d 48 69 74 3d 3d | 32 29 20 7b 09 09 2f 2a |temHit==|2) {../*|
|00001f10| 20 54 68 65 20 63 68 65 | 63 6b 62 6f 78 20 2a 2f | The che|ckbox */|
|00001f20| 0d 09 09 09 09 47 65 74 | 44 69 61 6c 6f 67 49 74 |.....Get|DialogIt|
|00001f30| 65 6d 28 4d 79 44 69 61 | 6c 6f 67 2c 32 2c 20 26 |em(MyDia|log,2, &|
|00001f40| 69 54 79 70 65 2c 20 26 | 69 48 6e 64 6c 2c 20 26 |iType, &|iHndl, &|
|00001f50| 69 52 65 63 74 29 3b 0d | 09 09 09 09 74 68 65 56 |iRect);.|....theV|
|00001f60| 61 6c 75 65 20 3d 20 47 | 65 74 43 6f 6e 74 72 6f |alue = G|etContro|
|00001f70| 6c 56 61 6c 75 65 28 28 | 43 6f 6e 74 72 6f 6c 48 |lValue((|ControlH|
|00001f80| 61 6e 64 6c 65 29 69 48 | 6e 64 6c 29 3b 0d 09 09 |andle)iH|ndl);...|
|00001f90| 09 09 53 65 74 43 6f 6e | 74 72 6f 6c 56 61 6c 75 |..SetCon|trolValu|
|00001fa0| 65 28 20 28 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |e( (Cont|rolHandl|
|00001fb0| 65 29 20 69 48 6e 64 6c | 2c 20 21 74 68 65 56 61 |e) iHndl|, !theVa|
|00001fc0| 6c 75 65 20 29 3b 0d 09 | 09 09 7d 0d 09 09 7d 20 |lue );..|..}...} |
|00001fd0| 77 68 69 6c 65 20 28 69 | 74 65 6d 48 69 74 21 3d |while (i|temHit!=|
|00001fe0| 31 29 3b 0d 09 09 47 65 | 74 44 69 61 6c 6f 67 49 |1);...Ge|tDialogI|
|00001ff0| 74 65 6d 28 4d 79 44 69 | 61 6c 6f 67 2c 32 2c 20 |tem(MyDi|alog,2, |
|00002000| 26 69 54 79 70 65 2c 20 | 26 69 48 6e 64 6c 2c 20 |&iType, |&iHndl, |
|00002010| 26 69 52 65 63 74 29 3b | 09 2f 2a 20 47 65 74 20 |&iRect);|./* Get |
|00002020| 74 68 65 20 63 68 65 63 | 6b 20 62 6f 78 20 73 74 |the chec|k box st|
|00002030| 61 74 65 20 2a 2f 0d 09 | 09 49 67 6e 6f 72 65 4d |ate */..|.IgnoreM|
|00002040| 65 73 73 61 67 65 20 3d | 20 47 65 74 43 6f 6e 74 |essage =| GetCont|
|00002050| 72 6f 6c 56 61 6c 75 65 | 28 28 43 6f 6e 74 72 6f |rolValue|((Contro|
|00002060| 6c 48 61 6e 64 6c 65 29 | 69 48 6e 64 6c 29 3b 0d |lHandle)|iHndl);.|
|00002070| 09 09 69 66 20 28 49 67 | 6e 6f 72 65 4d 65 73 73 |..if (Ig|noreMess|
|00002080| 61 67 65 29 20 7b 09 09 | 2f 2a 20 49 66 20 49 20 |age) {..|/* If I |
|00002090| 73 68 6f 75 6c 64 20 69 | 67 6e 6f 72 65 2e 2e 2e |should i|gnore...|
|000020a0| 20 2a 2f 0d 09 09 09 53 | 61 76 65 50 72 65 66 73 | */....S|avePrefs|
|000020b0| 28 29 3b 09 09 09 2f 2a | 20 53 61 76 65 20 74 68 |();.../*| Save th|
|000020c0| 65 20 70 72 65 66 73 20 | 66 69 6c 65 20 2a 2f 0d |e prefs |file */.|
|000020d0| 09 09 7d 0d 09 09 44 69 | 73 70 6f 73 65 44 69 61 |..}...Di|sposeDia|
|000020e0| 6c 6f 67 28 4d 79 44 69 | 61 6c 6f 67 29 3b 09 2f |log(MyDi|alog);./|
|000020f0| 2a 20 52 65 6c 65 61 73 | 65 20 74 68 65 20 64 69 |* Releas|e the di|
|00002100| 61 6c 6f 67 20 6d 65 6d | 6f 72 79 20 2a 2f 0d 09 |alog mem|ory */..|
|00002110| 7d 0d 23 65 6e 64 69 66 | 0d 09 0d 2f 2a 20 4c 65 |}.#endif|.../* Le|
|00002120| 74 27 73 20 73 65 74 20 | 75 70 20 74 68 65 20 65 |t's set |up the e|
|00002130| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 2e 2e 20 2a 2f |nvironme|nt... */|
|00002140| 0d 09 0d 09 49 6e 69 74 | 53 6f 75 6e 64 4d 75 73 |....Init|SoundMus|
|00002150| 69 63 53 79 73 74 65 6d | 28 38 2c 38 2c 35 2c 6a |icSystem|(8,8,5,j|
|00002160| 78 4c 6f 77 51 75 61 6c | 69 74 79 29 3b 0d 09 50 |xLowQual|ity);..P|
|00002170| 75 72 67 65 53 6f 6e 67 | 73 28 54 52 55 45 29 3b |urgeSong|s(TRUE);|
|00002180| 09 09 09 2f 2a 20 41 6c | 6c 6f 77 20 73 6f 6e 67 |.../* Al|low song|
|00002190| 73 20 74 6f 20 73 74 61 | 79 20 69 6e 20 6d 65 6d |s to sta|y in mem|
|000021a0| 6f 72 79 20 2a 2f 0d 09 | 53 6f 75 6e 64 4c 69 73 |ory */..|SoundLis|
|000021b0| 74 50 74 72 20 3d 20 28 | 73 68 6f 72 74 20 69 6e |tPtr = (|short in|
|000021c0| 74 20 2a 29 20 4c 6f 61 | 64 41 52 65 73 6f 75 72 |t *) Loa|dAResour|
|000021d0| 63 65 28 4d 79 53 6f 75 | 6e 64 4c 69 73 74 29 3b |ce(MySou|ndList);|
|000021e0| 09 2f 2a 20 47 65 74 20 | 74 68 65 20 6c 69 73 74 |./* Get |the list|
|000021f0| 20 6f 66 20 73 6f 75 6e | 64 73 20 2a 2f 0d 09 52 | of soun|ds */..R|
|00002200| 65 67 69 73 74 65 72 53 | 6f 75 6e 64 73 28 53 6f |egisterS|ounds(So|
|00002210| 75 6e 64 4c 69 73 74 50 | 74 72 2c 46 41 4c 53 45 |undListP|tr,FALSE|
|00002220| 29 3b 09 0d 09 52 65 6c | 65 61 73 65 41 52 65 73 |);...Rel|easeARes|
|00002230| 6f 75 72 63 65 28 4d 79 | 53 6f 75 6e 64 4c 69 73 |ource(My|SoundLis|
|00002240| 74 29 3b 09 09 09 2f 2a | 20 52 65 6c 65 61 73 65 |t);.../*| Release|
|00002250| 20 74 68 65 20 73 6f 75 | 6e 64 20 6c 69 73 74 20 | the sou|nd list |
|00002260| 2a 2f 0d 09 0d 09 47 65 | 74 54 61 62 6c 65 4d 65 |*/....Ge|tTableMe|
|00002270| 6d 6f 72 79 28 29 3b 09 | 09 09 2f 2a 20 47 65 74 |mory();.|../* Get|
|00002280| 20 6d 65 6d 6f 72 79 20 | 66 6f 72 20 66 61 72 20 | memory |for far |
|00002290| 74 61 62 6c 65 73 20 6d | 61 74 68 20 74 61 62 6c |tables m|ath tabl|
|000022a0| 65 73 20 2a 2f 09 20 09 | 0d 09 4d 61 70 4c 69 73 |es */. .|..MapLis|
|000022b0| 74 50 74 72 20 3d 20 28 | 6d 61 70 6c 69 73 74 5f |tPtr = (|maplist_|
|000022c0| 74 20 2a 29 20 4c 6f 61 | 64 41 52 65 73 6f 75 72 |t *) Loa|dAResour|
|000022d0| 63 65 28 72 4d 61 70 4c | 69 73 74 29 3b 09 2f 2a |ce(rMapL|ist);./*|
|000022e0| 20 47 65 74 20 74 68 65 | 20 6d 61 70 20 6c 69 73 | Get the| map lis|
|000022f0| 74 20 2a 2f 0d 09 53 6f | 6e 67 4c 69 73 74 50 74 |t */..So|ngListPt|
|00002300| 72 20 3d 20 28 75 6e 73 | 69 67 6e 65 64 20 73 68 |r = (uns|igned sh|
|00002310| 6f 72 74 20 2a 29 20 4c | 6f 61 64 41 52 65 73 6f |ort *) L|oadAReso|
|00002320| 75 72 63 65 28 72 53 6f | 6e 67 4c 69 73 74 29 3b |urce(rSo|ngList);|
|00002330| 0d 09 57 61 6c 6c 4c 69 | 73 74 50 74 72 20 3d 20 |..WallLi|stPtr = |
|00002340| 28 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 20 |(unsigne|d short |
|00002350| 2a 29 20 4c 6f 61 64 41 | 52 65 73 6f 75 72 63 65 |*) LoadA|Resource|
|00002360| 28 4d 79 57 61 6c 6c 4c | 69 73 74 29 3b 0d 0d 2f |(MyWallL|ist);../|
|00002370| 2a 20 41 6c 65 72 74 20 | 74 68 65 20 75 73 65 72 |* Alert |the user|
|00002380| 20 74 68 61 74 20 79 6f | 75 20 4d 55 53 54 20 70 | that yo|u MUST p|
|00002390| 61 79 21 20 2a 2f 0d 0d | 09 69 66 20 28 4d 61 70 |ay! */..|.if (Map|
|000023a0| 4c 69 73 74 50 74 72 2d | 3e 4d 61 78 4d 61 70 3d |ListPtr-|>MaxMap=|
|000023b0| 3d 33 29 20 7b 09 2f 2a | 20 53 68 61 72 65 77 61 |=3) {./*| Sharewa|
|000023c0| 72 65 20 76 65 72 73 69 | 6f 6e 3f 20 2a 2f 0d 09 |re versi|on? */..|
|000023d0| 09 44 6f 4d 79 41 6c 65 | 72 74 28 53 68 61 72 65 |.DoMyAle|rt(Share|
|000023e0| 57 61 72 65 57 69 6e 29 | 3b 09 2f 2a 20 53 68 6f |WareWin)|;./* Sho|
|000023f0| 77 20 74 68 65 20 73 68 | 61 72 65 77 61 72 65 20 |w the sh|areware |
|00002400| 6d 65 73 73 61 67 65 20 | 2a 2f 0d 09 7d 0d 09 69 |message |*/..}..i|
|00002410| 66 20 28 46 72 65 65 4d | 65 6d 28 29 20 3c 20 33 |f (FreeM|em() < 3|
|00002420| 30 30 30 30 30 30 4c 29 | 20 7b 09 09 2f 2a 20 41 |000000L)| {../* A|
|00002430| 72 65 20 79 6f 75 20 6c | 6f 77 20 6f 6e 20 6d 65 |re you l|ow on me|
|00002440| 6d 6f 72 79 3f 20 2a 2f | 09 09 09 0d 09 09 44 6f |mory? */|......Do|
|00002450| 4d 79 41 6c 65 72 74 28 | 4c 6f 77 4d 65 6d 57 69 |MyAlert(|LowMemWi|
|00002460| 6e 29 3b 0d 09 09 53 79 | 73 74 65 6d 53 74 61 74 |n);...Sy|stemStat|
|00002470| 65 20 3d 20 30 3b 09 09 | 09 2f 2a 20 54 75 72 6e |e = 0;..|./* Turn|
|00002480| 20 6f 66 66 20 6d 75 73 | 69 63 20 61 6e 64 20 73 | off mus|ic and s|
|00002490| 6f 75 6e 64 20 28 4a 75 | 73 74 20 69 6e 20 63 61 |ound (Ju|st in ca|
|000024a0| 73 65 29 20 2a 2f 0d 09 | 09 4c 6f 77 4f 6e 4d 65 |se) */..|.LowOnMe|
|000024b0| 6d 20 3d 20 54 52 55 45 | 3b 0d 09 7d 0d 09 53 68 |m = TRUE|;..}..Sh|
|000024c0| 6f 77 43 75 72 73 6f 72 | 28 29 3b 09 09 09 09 09 |owCursor|();.....|
|000024d0| 2f 2a 20 4d 61 6b 65 20 | 73 75 72 65 20 74 68 65 |/* Make |sure the|
|000024e0| 20 63 75 72 73 6f 72 20 | 69 73 20 6f 6b 20 2a 2f | cursor |is ok */|
|000024f0| 0d 09 57 61 69 74 43 75 | 72 73 6f 72 28 29 3b 09 |..WaitCu|rsor();.|
|00002500| 09 09 09 09 2f 2a 20 52 | 65 73 74 6f 72 65 20 74 |..../* R|estore t|
|00002510| 68 65 20 77 61 74 63 68 | 20 63 75 72 73 6f 72 20 |he watch| cursor |
|00002520| 2a 2f 0d 0d 2f 2a 20 54 | 72 79 20 74 6f 20 73 65 |*/../* T|ry to se|
|00002530| 74 20 75 70 20 38 2d 62 | 69 74 20 63 6f 6c 6f 72 |t up 8-b|it color|
|00002540| 20 6d 6f 64 65 20 2a 2f | 0d 0d 09 67 4d 61 69 6e | mode */|...gMain|
|00002550| 47 44 48 20 3d 20 50 69 | 63 6b 41 4d 6f 6e 69 74 |GDH = Pi|ckAMonit|
|00002560| 6f 72 28 38 2c 54 52 55 | 45 2c 35 31 32 2c 33 38 |or(8,TRU|E,512,38|
|00002570| 34 29 3b 09 2f 2a 20 50 | 69 63 6b 20 61 20 6d 6f |4);./* P|ick a mo|
|00002580| 6e 69 74 6f 72 20 74 6f | 20 70 6c 61 79 20 6f 6e |nitor to| play on|
|00002590| 20 2a 2f 0d 09 69 66 20 | 28 21 67 4d 61 69 6e 47 | */..if |(!gMainG|
|000025a0| 44 48 29 20 7b 09 09 09 | 2f 2a 20 4e 6f 20 6d 61 |DH) {...|/* No ma|
|000025b0| 63 73 20 74 68 61 74 20 | 63 61 6e 20 64 69 73 70 |cs that |can disp|
|000025c0| 6c 61 79 20 6f 72 20 63 | 61 6e 63 65 6c 65 64 20 |lay or c|anceled |
|000025d0| 2a 2f 0d 09 09 47 6f 6f | 64 42 79 65 28 29 3b 09 |*/...Goo|dBye();.|
|000025e0| 09 09 09 2f 2a 20 45 78 | 69 74 20 2a 2f 0d 09 7d |.../* Ex|it */..}|
|000025f0| 0d 09 4f 6c 64 50 69 78 | 44 65 70 74 68 20 3d 20 |..OldPix|Depth = |
|00002600| 28 2a 2a 28 2a 2a 67 4d | 61 69 6e 47 44 48 29 2e |(**(**gM|ainGDH).|
|00002610| 67 64 50 4d 61 70 29 2e | 70 69 78 65 6c 53 69 7a |gdPMap).|pixelSiz|
|00002620| 65 3b 09 09 2f 2a 20 47 | 65 74 20 74 68 65 20 70 |e;../* G|et the p|
|00002630| 72 65 76 69 6f 75 73 20 | 6d 6f 64 65 20 2a 2f 0d |revious |mode */.|
|00002640| 09 69 66 20 28 4f 6c 64 | 50 69 78 44 65 70 74 68 |.if (Old|PixDepth|
|00002650| 20 21 3d 20 38 29 20 7b | 09 09 09 09 09 09 09 09 | != 8) {|........|
|00002660| 09 2f 2a 20 57 61 73 20 | 69 74 20 38 20 62 69 74 |./* Was |it 8 bit|
|00002670| 20 61 6c 72 65 61 64 79 | 3f 20 2a 2f 0d 09 09 20 | already|? */... |
|00002680| 69 66 20 28 53 65 74 44 | 65 70 74 68 28 67 4d 61 |if (SetD|epth(gMa|
|00002690| 69 6e 47 44 48 2c 38 2c | 20 31 20 3c 3c 20 67 64 |inGDH,8,| 1 << gd|
|000026a0| 44 65 76 54 79 70 65 2c | 31 29 29 20 7b 09 09 2f |DevType,|1)) {../|
|000026b0| 2a 20 53 65 74 20 74 6f | 20 38 20 62 69 74 20 2a |* Set to| 8 bit *|
|000026c0| 2f 0d 09 09 09 42 61 69 | 6c 4f 75 74 28 29 3b 09 |/....Bai|lOut();.|
|000026d0| 09 09 09 2f 2a 20 4f 68 | 20 6f 68 2e 2e 2e 20 2a |.../* Oh| oh... *|
|000026e0| 2f 0d 09 09 20 7d 0d 09 | 7d 0d 09 4d 61 69 6e 43 |/... }..|}..MainC|
|000026f0| 6f 6c 6f 72 48 61 6e 64 | 6c 65 20 3d 20 28 2a 28 |olorHand|le = (*(|
|00002700| 2a 67 4d 61 69 6e 47 44 | 48 29 2d 3e 67 64 50 4d |*gMainGD|H)->gdPM|
|00002710| 61 70 29 2d 3e 70 6d 54 | 61 62 6c 65 3b 09 09 2f |ap)->pmT|able;../|
|00002720| 2a 20 47 65 74 20 6d 79 | 20 6d 61 69 6e 20 64 65 |* Get my| main de|
|00002730| 76 69 63 65 27 73 20 63 | 6f 6c 6f 72 20 68 61 6e |vice's c|olor han|
|00002740| 64 6c 65 20 2a 2f 0d 09 | 42 6c 61 63 6b 52 65 63 |dle */..|BlackRec|
|00002750| 74 32 20 3d 20 28 2a 2a | 67 4d 61 69 6e 47 44 48 |t2 = (**|gMainGDH|
|00002760| 29 2e 67 64 52 65 63 74 | 3b 09 09 2f 2a 20 49 6e |).gdRect|;../* In|
|00002770| 69 74 20 74 68 65 20 62 | 6c 61 63 6b 20 72 65 63 |it the b|lack rec|
|00002780| 74 20 2a 2f 0d 09 4c 6f | 63 6b 50 69 78 65 6c 73 |t */..Lo|ckPixels|
|00002790| 28 28 2a 2a 67 4d 61 69 | 6e 47 44 48 29 2e 67 64 |((**gMai|nGDH).gd|
|000027a0| 50 4d 61 70 29 3b 09 2f | 2a 20 4c 6f 63 6b 20 64 |PMap);./|* Lock d|
|000027b0| 6f 77 6e 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 46 |own the |memory F|
|000027c0| 4f 52 45 56 45 52 21 20 | 2a 2f 0d 09 54 72 75 65 |OREVER! |*/..True|
|000027d0| 56 69 64 65 6f 50 6f 69 | 6e 74 65 72 20 3d 20 28 |VideoPoi|nter = (|
|000027e0| 42 79 74 65 20 2a 29 20 | 47 65 74 50 69 78 42 61 |Byte *) |GetPixBa|
|000027f0| 73 65 41 64 64 72 28 28 | 2a 2a 67 4d 61 69 6e 47 |seAddr((|**gMainG|
|00002800| 44 48 29 2e 67 64 50 4d | 61 70 29 3b 09 2f 2a 20 |DH).gdPM|ap);./* |
|00002810| 47 65 74 20 70 6f 69 6e | 74 65 72 20 74 6f 20 73 |Get poin|ter to s|
|00002820| 63 72 65 65 6e 20 6d 65 | 6d 20 2a 2f 0d 09 54 72 |creen me|m */..Tr|
|00002830| 75 65 56 69 64 65 6f 57 | 69 64 74 68 20 3d 20 28 |ueVideoW|idth = (|
|00002840| 57 6f 72 64 29 20 28 28 | 2a 2a 28 2a 2a 67 4d 61 |Word) ((|**(**gMa|
|00002850| 69 6e 47 44 48 29 2e 67 | 64 50 4d 61 70 29 2e 72 |inGDH).g|dPMap).r|
|00002860| 6f 77 42 79 74 65 73 20 | 26 20 30 78 33 46 46 46 |owBytes |& 0x3FFF|
|00002870| 29 3b 09 2f 2a 20 47 65 | 74 20 77 69 64 74 68 20 |);./* Ge|t width |
|00002880| 6f 66 20 73 63 72 65 65 | 6e 20 6d 65 6d 20 2a 2f |of scree|n mem */|
|00002890| 0d 0d 09 69 66 20 28 21 | 54 72 75 65 56 69 64 65 |...if (!|TrueVide|
|000028a0| 6f 50 6f 69 6e 74 65 72 | 20 7c 7c 20 21 54 72 75 |oPointer| || !Tru|
|000028b0| 65 56 69 64 65 6f 57 69 | 64 74 68 29 20 7b 0d 09 |eVideoWi|dth) {..|
|000028c0| 09 44 69 6d 51 44 20 3d | 20 54 52 55 45 3b 09 09 |.DimQD =| TRUE;..|
|000028d0| 09 09 2f 2a 20 44 6f 6e | 27 74 20 61 6c 6c 6f 77 |../* Don|'t allow|
|000028e0| 20 6f 66 66 73 63 72 65 | 65 6e 20 64 72 61 77 69 | offscre|en drawi|
|000028f0| 6e 67 20 2a 2f 0d 09 09 | 44 6f 51 75 69 63 6b 44 |ng */...|DoQuickD|
|00002900| 72 61 77 20 3d 20 54 52 | 55 45 3b 09 2f 2a 20 46 |raw = TR|UE;./* F|
|00002910| 6f 72 63 65 20 51 44 20 | 2a 2f 0d 09 7d 0d 09 4d |orce QD |*/..}..M|
|00002920| 6f 6e 69 74 6f 72 48 65 | 69 67 68 74 20 3d 20 42 |onitorHe|ight = B|
|00002930| 6c 61 63 6b 52 65 63 74 | 32 2e 62 6f 74 74 6f 6d |lackRect|2.bottom|
|00002940| 20 2d 20 42 6c 61 63 6b | 52 65 63 74 32 2e 74 6f | - Black|Rect2.to|
|00002950| 70 3b 09 2f 2a 20 47 65 | 74 20 74 68 65 20 73 69 |p;./* Ge|t the si|
|00002960| 7a 65 20 6f 66 20 74 68 | 65 20 76 69 64 65 6f 20 |ze of th|e video |
|00002970| 73 63 72 65 65 6e 20 2a | 2f 0d 09 4d 6f 6e 69 74 |screen *|/..Monit|
|00002980| 6f 72 57 69 64 74 68 20 | 3d 20 42 6c 61 63 6b 52 |orWidth |= BlackR|
|00002990| 65 63 74 32 2e 72 69 67 | 68 74 20 2d 20 42 6c 61 |ect2.rig|ht - Bla|
|000029a0| 63 6b 52 65 63 74 32 2e | 6c 65 66 74 3b 0d 09 4d |ckRect2.|left;..M|
|000029b0| 6f 75 73 65 42 61 73 65 | 58 20 3d 20 42 6c 61 63 |ouseBase|X = Blac|
|000029c0| 6b 52 65 63 74 32 2e 6c | 65 66 74 2b 32 35 36 3b |kRect2.l|eft+256;|
|000029d0| 0d 09 4d 6f 75 73 65 42 | 61 73 65 59 20 3d 20 42 |..MouseB|aseY = B|
|000029e0| 6c 61 63 6b 52 65 63 74 | 32 2e 74 6f 70 2b 31 39 |lackRect|2.top+19|
|000029f0| 32 3b 0d 09 0d 09 6d 65 | 6e 75 42 61 72 20 3d 20 |2;....me|nuBar = |
|00002a00| 47 65 74 4e 65 77 4d 42 | 61 72 28 4d 79 4d 65 6e |GetNewMB|ar(MyMen|
|00002a10| 75 42 61 72 29 3b 09 2f | 2a 20 72 65 61 64 20 6d |uBar);./|* read m|
|00002a20| 65 6e 75 73 20 69 6e 74 | 6f 20 6d 65 6e 75 20 62 |enus int|o menu b|
|00002a30| 61 72 20 2a 2f 0d 09 69 | 66 20 28 21 6d 65 6e 75 |ar */..i|f (!menu|
|00002a40| 42 61 72 29 20 7b 0d 09 | 09 42 61 69 6c 4f 75 74 |Bar) {..|.BailOut|
|00002a50| 28 29 3b 09 09 09 2f 2a | 20 4d 65 6e 75 20 62 61 |();.../*| Menu ba|
|00002a60| 72 20 65 72 72 6f 72 20 | 2a 2f 0d 09 7d 09 0d 09 |r error |*/..}...|
|00002a70| 53 65 74 4d 65 6e 75 42 | 61 72 28 6d 65 6e 75 42 |SetMenuB|ar(menuB|
|00002a80| 61 72 29 3b 09 09 09 2f | 2a 20 69 6e 73 74 61 6c |ar);.../|* instal|
|00002a90| 6c 20 6d 65 6e 75 73 20 | 2a 2f 0d 09 44 69 73 70 |l menus |*/..Disp|
|00002aa0| 6f 73 65 48 61 6e 64 6c | 65 28 6d 65 6e 75 42 61 |oseHandl|e(menuBa|
|00002ab0| 72 29 3b 09 09 09 2f 2a | 20 52 65 6c 65 61 73 65 |r);.../*| Release|
|00002ac0| 20 74 68 65 20 6d 65 6e | 75 20 62 61 72 20 2a 2f | the men|u bar */|
|00002ad0| 0d 09 41 70 70 65 6e 64 | 52 65 73 4d 65 6e 75 28 |..Append|ResMenu(|
|00002ae0| 47 65 74 4d 65 6e 75 48 | 61 6e 64 6c 65 28 6d 41 |GetMenuH|andle(mA|
|00002af0| 70 70 6c 65 29 2c 27 44 | 52 56 52 27 29 3b 09 2f |pple),'D|RVR');./|
|00002b00| 2a 20 61 64 64 20 44 41 | 20 6e 61 6d 65 73 20 74 |* add DA| names t|
|00002b10| 6f 20 41 70 70 6c 65 20 | 6d 65 6e 75 20 2a 2f 0d |o Apple |menu */.|
|00002b20| 09 44 72 61 77 4d 65 6e | 75 42 61 72 28 29 3b 09 |.DrawMen|uBar();.|
|00002b30| 09 09 09 2f 2a 20 53 68 | 6f 77 20 74 68 65 20 6d |.../* Sh|ow the m|
|00002b40| 65 6e 75 20 62 61 72 20 | 2a 2f 0d 09 48 69 64 65 |enu bar |*/..Hide|
|00002b50| 4d 65 6e 75 42 61 72 28 | 29 3b 09 09 09 2f 2a 20 |MenuBar(|);.../* |
|00002b60| 48 69 64 65 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |Hide the| menu ba|
|00002b70| 72 20 2a 2f 0d 0d 09 47 | 61 6d 65 57 69 6e 64 6f |r */...G|ameWindo|
|00002b80| 77 20 3d 20 28 43 57 69 | 6e 64 6f 77 50 74 72 29 |w = (CWi|ndowPtr)|
|00002b90| 4e 65 77 43 57 69 6e 64 | 6f 77 28 6e 69 6c 2c 26 |NewCWind|ow(nil,&|
|00002ba0| 42 6c 61 63 6b 52 65 63 | 74 32 2c 20 22 5c 70 22 |BlackRec|t2, "\p"|
|00002bb0| 2c 54 52 55 45 2c 20 70 | 6c 61 69 6e 44 42 6f 78 |,TRUE, p|lainDBox|
|00002bc0| 2c 20 28 57 69 6e 64 6f | 77 50 74 72 29 20 2d 31 |, (Windo|wPtr) -1|
|00002bd0| 4c 2c 20 46 41 4c 53 45 | 2c 20 30 29 3b 0d 09 69 |L, FALSE|, 0);..i|
|00002be0| 66 20 28 21 47 61 6d 65 | 57 69 6e 64 6f 77 29 20 |f (!Game|Window) |
|00002bf0| 7b 09 09 2f 2a 20 4e 6f | 20 62 61 63 6b 67 72 6f |{../* No| backgro|
|00002c00| 75 6e 64 20 77 69 6e 64 | 6f 77 3f 20 2a 2f 0d 09 |und wind|ow? */..|
|00002c10| 09 42 61 69 6c 4f 75 74 | 28 29 3b 0d 09 7d 0d 09 |.BailOut|();..}..|
|00002c20| 42 6c 61 63 6b 52 67 6e | 20 3d 20 4e 65 77 52 67 |BlackRgn| = NewRg|
|00002c30| 6e 28 29 3b 09 2f 2a 20 | 4d 61 6b 65 20 61 20 72 |n();./* |Make a r|
|00002c40| 65 67 69 6f 6e 20 66 6f | 72 20 74 68 65 20 62 6c |egion fo|r the bl|
|00002c50| 61 63 6b 20 61 72 65 61 | 20 2a 2f 0d 09 53 65 74 |ack area| */..Set|
|00002c60| 50 6f 72 74 28 28 57 69 | 6e 64 6f 77 50 74 72 29 |Port((Wi|ndowPtr)|
|00002c70| 47 61 6d 65 57 69 6e 64 | 6f 77 29 3b 09 09 2f 2a |GameWind|ow);../*|
|00002c80| 20 55 73 65 20 74 68 69 | 73 20 67 72 61 66 70 6f | Use thi|s grafpo|
|00002c90| 72 74 20 2a 2f 0d 09 41 | 63 74 69 76 61 74 65 50 |rt */..A|ctivateP|
|00002ca0| 61 6c 65 74 74 65 28 28 | 57 69 6e 64 6f 77 50 74 |alette((|WindowPt|
|00002cb0| 72 29 47 61 6d 65 57 69 | 6e 64 6f 77 29 3b 0d 09 |r)GameWi|ndow);..|
|00002cc0| 42 6c 61 63 6b 52 65 63 | 74 2e 74 6f 70 20 3d 20 |BlackRec|t.top = |
|00002cd0| 30 3b 09 09 09 09 2f 2a | 20 49 6e 69 74 20 74 68 |0;..../*| Init th|
|00002ce0| 65 20 6d 61 69 6e 20 72 | 65 63 74 20 2a 2f 0d 09 |e main r|ect */..|
|00002cf0| 42 6c 61 63 6b 52 65 63 | 74 2e 6c 65 66 74 20 3d |BlackRec|t.left =|
|00002d00| 20 30 3b 0d 09 42 6c 61 | 63 6b 52 65 63 74 2e 62 | 0;..Bla|ckRect.b|
|00002d10| 6f 74 74 6f 6d 20 3d 20 | 4d 6f 6e 69 74 6f 72 48 |ottom = |MonitorH|
|00002d20| 65 69 67 68 74 3b 0d 09 | 42 6c 61 63 6b 52 65 63 |eight;..|BlackRec|
|00002d30| 74 2e 72 69 67 68 74 20 | 3d 20 4d 6f 6e 69 74 6f |t.right |= Monito|
|00002d40| 72 57 69 64 74 68 3b 0d | 09 46 69 6c 6c 52 65 63 |rWidth;.|.FillRec|
|00002d50| 74 28 26 42 6c 61 63 6b | 52 65 63 74 2c 26 71 64 |t(&Black|Rect,&qd|
|00002d60| 2e 62 6c 61 63 6b 29 3b | 09 2f 2a 20 45 72 61 73 |.black);|./* Eras|
|00002d70| 65 20 74 68 65 20 73 63 | 72 65 65 6e 20 74 6f 20 |e the sc|reen to |
|00002d80| 62 6c 61 63 6b 20 2a 2f | 0d 09 4e 65 77 47 61 6d |black */|..NewGam|
|00002d90| 65 57 69 6e 64 6f 77 28 | 31 29 3b 09 09 09 09 2f |eWindow(|1);..../|
|00002da0| 2a 20 43 72 65 61 74 65 | 20 61 20 67 61 6d 65 20 |* Create| a game |
|00002db0| 77 69 6e 64 6f 77 20 61 | 74 20 35 31 32 78 33 38 |window a|t 512x38|
|00002dc0| 34 20 2a 2f 0d 09 43 6c | 65 61 72 54 68 65 53 63 |4 */..Cl|earTheSc|
|00002dd0| 72 65 65 6e 28 42 4c 41 | 43 4b 29 3b 09 09 09 2f |reen(BLA|CK);.../|
|00002de0| 2a 20 46 6f 72 63 65 20 | 74 68 65 20 6f 66 66 73 |* Force |the offs|
|00002df0| 63 72 65 65 6e 20 6d 65 | 6d 6f 72 79 20 62 6c 61 |creen me|mory bla|
|00002e00| 6e 6b 20 2a 2f 0d 09 42 | 6c 61 73 74 53 63 72 65 |nk */..B|lastScre|
|00002e10| 65 6e 28 29 3b 0d 09 46 | 69 78 54 68 65 43 75 72 |en();..F|ixTheCur|
|00002e20| 73 6f 72 28 29 3b 09 09 | 09 09 09 2f 2a 20 46 69 |sor();..|.../* Fi|
|00002e30| 78 20 74 68 65 20 63 75 | 72 73 6f 72 20 2a 2f 0d |x the cu|rsor */.|
|00002e40| 7d 0d 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |}../****|********|
|00002e50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e60| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 53 65 74 20 74 |********|...Set t|
|00002e70| 68 65 20 68 61 72 64 77 | 61 72 65 20 70 61 6c 65 |he hardw|are pale|
|00002e80| 74 74 65 20 74 6f 20 6d | 61 74 63 68 20 6d 79 20 |tte to m|atch my |
|00002e90| 77 69 6e 64 6f 77 20 70 | 61 6c 65 74 74 65 20 66 |window p|alette f|
|00002ea0| 6f 72 20 68 69 67 68 20 | 73 70 65 65 64 0d 09 63 |or high |speed..c|
|00002eb0| 6f 70 79 62 69 74 73 20 | 6f 70 65 72 61 74 69 6f |opybits |operatio|
|00002ec0| 6e 0d 09 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n...****|********|
|00002ed0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 65 78 74 65 72 |********|/..exter|
|00002ef0| 6e 20 42 79 74 65 20 43 | 75 72 72 65 6e 74 50 61 |n Byte C|urrentPa|
|00002f00| 6c 5b 37 36 38 5d 3b 09 | 09 2f 2a 20 4c 61 73 74 |l[768];.|./* Last|
|00002f10| 20 70 61 6c 65 74 74 65 | 20 74 68 65 20 67 61 6d | palette| the gam|
|00002f20| 65 20 77 61 73 20 73 65 | 74 20 74 6f 20 2a 2f 0d |e was se|t to */.|
|00002f30| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 52 65 73 |.static |void Res|
|00002f40| 65 74 50 61 6c 65 74 74 | 65 28 76 6f 69 64 29 0d |etPalett|e(void).|
|00002f50| 7b 09 0d 09 53 65 74 50 | 6f 72 74 28 28 57 69 6e |{...SetP|ort((Win|
|00002f60| 64 6f 77 50 74 72 29 20 | 47 61 6d 65 57 69 6e 64 |dowPtr) |GameWind|
|00002f70| 6f 77 29 3b 09 09 2f 2a | 20 52 65 73 65 74 20 74 |ow);../*| Reset t|
|00002f80| 68 65 20 67 61 6d 65 20 | 77 69 6e 64 6f 77 20 2a |he game |window *|
|00002f90| 2f 0d 09 69 66 20 28 28 | 2a 2a 28 2a 2a 67 4d 61 |/..if ((|**(**gMa|
|00002fa0| 69 6e 47 44 48 29 2e 67 | 64 50 4d 61 70 29 2e 70 |inGDH).g|dPMap).p|
|00002fb0| 69 78 65 6c 53 69 7a 65 | 20 21 3d 20 38 29 20 7b |ixelSize| != 8) {|
|00002fc0| 09 09 2f 2a 20 47 65 74 | 20 74 68 65 20 70 72 65 |../* Get| the pre|
|00002fd0| 76 69 6f 75 73 20 6d 6f | 64 65 20 2a 2f 0d 09 09 |vious mo|de */...|
|00002fe0| 53 65 74 44 65 70 74 68 | 28 67 4d 61 69 6e 47 44 |SetDepth|(gMainGD|
|00002ff0| 48 2c 38 2c 20 31 20 3c | 3c 20 67 64 44 65 76 54 |H,8, 1 <|< gdDevT|
|00003000| 79 70 65 2c 31 29 3b 09 | 09 2f 2a 20 53 65 74 20 |ype,1);.|./* Set |
|00003010| 74 6f 20 38 20 62 69 74 | 20 63 6f 6c 6f 72 20 2a |to 8 bit| color *|
|00003020| 2f 0d 09 7d 0d 09 53 65 | 74 41 50 61 6c 65 74 74 |/..}..Se|tAPalett|
|00003030| 65 50 74 72 28 43 75 72 | 72 65 6e 74 50 61 6c 29 |ePtr(Cur|rentPal)|
|00003040| 3b 09 09 09 09 2f 2a 20 | 52 65 73 74 6f 72 65 20 |;..../* |Restore |
|00003050| 74 68 65 20 70 61 6c 65 | 74 74 65 20 2a 2f 0d 7d |the pale|tte */.}|
|00003060| 0d 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00003070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003080| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 09 50 72 6f 63 65 73 |*******.|..Proces|
|00003090| 73 20 74 68 65 20 73 75 | 73 70 65 6e 64 2f 72 65 |s the su|spend/re|
|000030a0| 73 75 6d 65 20 65 76 65 | 6e 74 73 0d 09 0d 2a 2a |sume eve|nts...**|
|000030b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000030c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000030d0| 2a 2a 2f 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 |**/..sta|tic void|
|000030e0| 20 44 6f 42 61 63 6b 67 | 72 6f 75 6e 64 28 45 76 | DoBackg|round(Ev|
|000030f0| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|00003100| 29 0d 7b 0d 09 45 76 65 | 6e 74 52 65 63 6f 72 64 |).{..Eve|ntRecord|
|00003110| 20 50 61 75 73 65 45 76 | 65 6e 74 3b 0d 0d 09 69 | PauseEv|ent;...i|
|00003120| 66 20 28 28 65 76 65 6e | 74 2d 3e 6d 65 73 73 61 |f ((even|t->messa|
|00003130| 67 65 20 26 20 30 78 66 | 66 30 30 30 30 30 30 29 |ge & 0xf|f000000)|
|00003140| 20 3d 3d 30 78 30 31 30 | 30 30 30 30 30 29 20 7b | ==0x010|00000) {|
|00003150| 09 09 2f 2a 20 53 75 73 | 70 65 6e 64 2f 52 65 73 |../* Sus|pend/Res|
|00003160| 75 6d 65 20 65 76 65 6e | 74 73 20 2a 2f 0d 09 09 |ume even|ts */...|
|00003170| 69 66 20 28 21 28 65 76 | 65 6e 74 2d 3e 6d 65 73 |if (!(ev|ent->mes|
|00003180| 73 61 67 65 20 26 20 72 | 65 73 75 6d 65 46 6c 61 |sage & r|esumeFla|
|00003190| 67 29 29 20 7b 09 09 2f | 2a 20 53 75 73 70 65 6e |g)) {../|* Suspen|
|000031a0| 64 20 65 76 65 6e 74 3f | 20 2a 2f 0d 09 09 09 69 |d event?| */....i|
|000031b0| 66 20 28 21 49 6e 50 61 | 75 73 65 29 20 7b 0d 09 |f (!InPa|use) {..|
|000031c0| 09 09 09 50 61 75 73 65 | 53 6f 75 6e 64 4d 75 73 |...Pause|SoundMus|
|000031d0| 69 63 53 79 73 74 65 6d | 28 29 3b 09 09 2f 2a 20 |icSystem|();../* |
|000031e0| 53 74 6f 70 20 74 68 65 | 20 6d 75 73 69 63 20 2a |Stop the| music *|
|000031f0| 2f 0d 09 09 09 09 53 68 | 6f 77 4d 65 6e 75 42 61 |/.....Sh|owMenuBa|
|00003200| 72 28 29 3b 09 2f 2a 20 | 44 69 73 70 6c 61 79 20 |r();./* |Display |
|00003210| 74 68 65 20 6d 65 6e 75 | 20 62 61 72 20 2a 2f 0d |the menu| bar */.|
|00003220| 09 09 09 7d 0d 09 09 09 | 49 6e 69 74 43 75 72 73 |...}....|InitCurs|
|00003230| 6f 72 28 29 3b 09 2f 2a | 20 52 65 73 74 6f 72 65 |or();./*| Restore|
|00003240| 20 74 68 65 20 61 72 72 | 6f 77 20 63 75 72 73 6f | the arr|ow curso|
|00003250| 72 20 2a 2f 0d 09 0d 09 | 09 2f 2a 09 43 61 6c 6c |r */....|./*.Call|
|00003260| 20 61 20 6e 65 77 20 65 | 76 65 6e 74 20 6c 6f 6f | a new e|vent loo|
|00003270| 70 20 77 68 69 6c 65 20 | 69 6e 20 62 61 63 6b 67 |p while |in backg|
|00003280| 72 6f 75 6e 64 20 74 6f | 20 6c 65 74 20 75 73 20 |round to| let us |
|00003290| 6b 6e 6f 77 20 77 68 65 | 6e 20 77 65 27 76 65 20 |know whe|n we've |
|000032a0| 72 65 74 75 72 6e 65 64 | 2e 20 2a 2f 0d 09 09 09 |returned|. */....|
|000032b0| 09 0d 09 09 09 64 6f 20 | 7b 0d 09 09 09 09 57 61 |.....do |{.....Wa|
|000032c0| 69 74 4e 65 78 74 45 76 | 65 6e 74 32 28 65 76 65 |itNextEv|ent2(eve|
|000032d0| 72 79 45 76 65 6e 74 2c | 20 26 50 61 75 73 65 45 |ryEvent,| &PauseE|
|000032e0| 76 65 6e 74 2c 20 30 78 | 46 46 2c 20 6e 69 6c 29 |vent, 0x|FF, nil)|
|000032f0| 3b 0d 09 09 09 09 69 66 | 20 28 50 61 75 73 65 45 |;.....if| (PauseE|
|00003300| 76 65 6e 74 2e 77 68 61 | 74 3d 3d 75 70 64 61 74 |vent.wha|t==updat|
|00003310| 65 45 76 74 29 20 7b 09 | 09 2f 2a 20 54 69 6d 65 |eEvt) {.|./* Time|
|00003320| 20 66 6f 72 20 75 70 64 | 61 74 65 3f 20 2a 2f 0d | for upd|ate? */.|
|00003330| 09 09 09 09 09 44 6f 55 | 70 64 61 74 65 28 28 57 |.....DoU|pdate((W|
|00003340| 69 6e 64 6f 77 50 74 72 | 29 20 50 61 75 73 65 45 |indowPtr|) PauseE|
|00003350| 76 65 6e 74 2e 6d 65 73 | 73 61 67 65 29 3b 09 2f |vent.mes|sage);./|
|00003360| 2a 20 52 65 64 72 61 77 | 20 74 68 65 20 77 69 6e |* Redraw| the win|
|00003370| 64 6f 77 20 2a 2f 0d 09 | 09 09 09 7d 0d 09 09 09 |dow */..|...}....|
|00003380| 7d 20 77 68 69 6c 65 20 | 28 50 61 75 73 65 45 76 |} while |(PauseEv|
|00003390| 65 6e 74 2e 77 68 61 74 | 21 3d 6d 6f 75 73 65 44 |ent.what|!=mouseD|
|000033a0| 6f 77 6e 20 26 26 20 50 | 61 75 73 65 45 76 65 6e |own && P|auseEven|
|000033b0| 74 2e 77 68 61 74 21 3d | 61 63 74 69 76 61 74 65 |t.what!=|activate|
|000033c0| 45 76 74 20 26 26 20 50 | 61 75 73 65 45 76 65 6e |Evt && P|auseEven|
|000033d0| 74 2e 77 68 61 74 21 3d | 61 70 70 34 45 76 74 29 |t.what!=|app4Evt)|
|000033e0| 3b 0d 09 0d 09 2f 2a 09 | 54 75 72 6e 20 74 68 65 |;..../*.|Turn the|
|000033f0| 20 6d 61 69 6e 20 67 61 | 6d 65 20 77 69 6e 64 6f | main ga|me windo|
|00003400| 77 20 62 61 63 6b 20 6f | 6e 20 61 6e 64 20 75 70 |w back o|n and up|
|00003410| 64 61 74 65 20 69 74 73 | 20 63 6f 6e 74 65 6e 74 |date its| content|
|00003420| 73 2e 20 2a 2f 0d 0d 09 | 09 09 52 65 73 65 74 50 |s. */...|..ResetP|
|00003430| 61 6c 65 74 74 65 28 29 | 3b 09 09 2f 2a 20 52 65 |alette()|;../* Re|
|00003440| 73 65 74 20 74 68 65 20 | 67 61 6d 65 20 70 61 6c |set the |game pal|
|00003450| 65 74 74 65 20 2a 2f 0d | 09 09 09 46 69 78 54 68 |ette */.|...FixTh|
|00003460| 65 43 75 72 73 6f 72 28 | 29 3b 09 09 2f 2a 20 4d |eCursor(|);../* M|
|00003470| 61 6b 65 20 69 74 20 64 | 69 73 61 70 70 65 61 72 |ake it d|isappear|
|00003480| 20 66 6f 72 20 67 61 6d | 65 20 69 66 20 6e 65 65 | for gam|e if nee|
|00003490| 64 65 64 20 2a 2f 0d 09 | 09 09 69 66 20 28 21 49 |ded */..|..if (!I|
|000034a0| 6e 50 61 75 73 65 29 20 | 7b 09 09 0d 09 09 09 09 |nPause) |{.......|
|000034b0| 48 69 64 65 4d 65 6e 75 | 42 61 72 28 29 3b 09 09 |HideMenu|Bar();..|
|000034c0| 09 2f 2a 20 4d 61 6b 65 | 20 74 68 65 20 6d 65 6e |./* Make| the men|
|000034d0| 75 20 62 61 72 20 64 69 | 73 61 70 70 65 61 72 20 |u bar di|sappear |
|000034e0| 2a 2f 0d 09 09 09 09 52 | 65 73 75 6d 65 53 6f 75 |*/.....R|esumeSou|
|000034f0| 6e 64 4d 75 73 69 63 53 | 79 73 74 65 6d 28 29 3b |ndMusicS|ystem();|
|00003500| 09 2f 2a 20 52 65 73 74 | 61 72 74 20 74 68 65 20 |./* Rest|art the |
|00003510| 6d 75 73 69 63 20 2a 2f | 0d 09 09 09 7d 0d 09 09 |music */|....}...|
|00003520| 7d 0d 09 7d 0d 7d 0d 0d | 2f 2a 2a 2a 2a 2a 2a 2a |}..}.}..|/*******|
|00003530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003540| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 09 |********|*****...|
|00003550| 43 61 6c 6c 20 57 61 69 | 74 20 6e 65 78 74 20 65 |Call Wai|t next e|
|00003560| 76 65 6e 74 20 69 66 20 | 70 72 65 73 65 6e 74 0d |vent if |present.|
|00003570| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00003580| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003590| 2a 2a 2a 2a 2a 2f 0d 0d | 42 6f 6f 6c 65 61 6e 20 |*****/..|Boolean |
|000035a0| 57 61 69 74 4e 65 78 74 | 45 76 65 6e 74 32 28 73 |WaitNext|Event2(s|
|000035b0| 68 6f 72 74 20 45 76 65 | 6e 74 4d 61 73 6b 2c 45 |hort Eve|ntMask,E|
|000035c0| 76 65 6e 74 52 65 63 6f | 72 64 20 2a 74 68 65 45 |ventReco|rd *theE|
|000035d0| 76 65 6e 74 2c 6c 6f 6e | 67 20 73 6c 65 65 70 2c |vent,lon|g sleep,|
|000035e0| 52 67 6e 48 61 6e 64 6c | 65 20 6d 6f 75 73 65 52 |RgnHandl|e mouseR|
|000035f0| 67 6e 29 0d 7b 0d 09 69 | 66 20 28 57 61 69 74 4e |gn).{..i|f (WaitN|
|00003600| 65 78 74 4f 4b 29 20 7b | 0d 09 09 72 65 74 75 72 |extOK) {|...retur|
|00003610| 6e 20 57 61 69 74 4e 65 | 78 74 45 76 65 6e 74 28 |n WaitNe|xtEvent(|
|00003620| 45 76 65 6e 74 4d 61 73 | 6b 2c 74 68 65 45 76 65 |EventMas|k,theEve|
|00003630| 6e 74 2c 73 6c 65 65 70 | 2c 6d 6f 75 73 65 52 67 |nt,sleep|,mouseRg|
|00003640| 6e 29 3b 0d 09 7d 0d 09 | 53 79 73 74 65 6d 54 61 |n);..}..|SystemTa|
|00003650| 73 6b 28 29 3b 0d 09 72 | 65 74 75 72 6e 20 47 65 |sk();..r|eturn Ge|
|00003660| 74 4e 65 78 74 45 76 65 | 6e 74 28 45 76 65 6e 74 |tNextEve|nt(Event|
|00003670| 4d 61 73 6b 2c 74 68 65 | 45 76 65 6e 74 29 3b 09 |Mask,the|Event);.|
|00003680| 0d 7d 0d 0d 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.}../***|********|
|00003690| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000036a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 09 45 78 65 63 |********|*...Exec|
|000036b0| 75 74 65 20 74 68 65 20 | 61 70 70 6c 65 20 65 76 |ute the |apple ev|
|000036c0| 65 6e 74 0d 09 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ent...**|********|
|000036d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000036e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 73 74 61 |********|**/..sta|
|000036f0| 74 69 63 20 76 6f 69 64 | 20 48 61 6e 64 6c 65 48 |tic void| HandleH|
|00003700| 69 67 68 4c 65 76 65 6c | 45 76 65 6e 74 28 45 76 |ighLevel|Event(Ev|
|00003710| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|00003720| 29 0d 7b 0d 09 41 45 50 | 72 6f 63 65 73 73 41 70 |).{..AEP|rocessAp|
|00003730| 70 6c 65 45 76 65 6e 74 | 28 65 76 65 6e 74 29 3b |pleEvent|(event);|
|00003740| 0d 09 69 66 20 28 51 75 | 69 74 46 6c 61 67 29 20 |..if (Qu|itFlag) |
|00003750| 7b 0d 09 09 47 6f 6f 64 | 42 79 65 28 29 3b 0d 09 |{...Good|Bye();..|
|00003760| 7d 0d 7d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |}.}../**|********|
|00003770| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 09 44 6f 20 |********|**...Do |
|00003790| 74 68 65 20 72 69 67 68 | 74 20 74 68 69 6e 67 20 |the righ|t thing |
|000037a0| 66 6f 72 20 61 6e 20 65 | 76 65 6e 74 2e 20 44 65 |for an e|vent. De|
|000037b0| 74 65 72 6d 69 6e 65 20 | 77 68 61 74 20 6b 69 6e |termine |what kin|
|000037c0| 64 20 6f 66 0d 09 65 76 | 65 6e 74 20 69 74 20 69 |d of..ev|ent it i|
|000037d0| 73 2c 20 61 6e 64 20 63 | 61 6c 6c 20 74 68 65 20 |s, and c|all the |
|000037e0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 72 6f 75 74 |appropri|ate rout|
|000037f0| 69 6e 65 73 2e 0d 09 54 | 68 69 73 20 69 73 20 6c |ines...T|his is l|
|00003800| 69 6b 65 20 54 61 73 6b | 4d 61 73 74 65 72 20 66 |ike Task|Master f|
|00003810| 6f 72 20 74 68 65 20 49 | 49 67 73 0d 0d 2a 2a 2a |or the I|Igs..***|
|00003820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003840| 2a 2f 0d 0d 57 6f 72 64 | 20 44 6f 45 76 65 6e 74 |*/..Word| DoEvent|
|00003850| 28 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 65 76 |(EventRe|cord *ev|
|00003860| 65 6e 74 29 0d 7b 0d 09 | 57 6f 72 64 20 70 61 72 |ent).{..|Word par|
|00003870| 74 3b 0d 09 57 69 6e 64 | 6f 77 50 74 72 09 77 69 |t;..Wind|owPtr.wi|
|00003880| 6e 64 6f 77 3b 0d 09 57 | 6f 72 64 20 6b 65 79 3b |ndow;..W|ord key;|
|00003890| 0d 09 50 6f 69 6e 74 20 | 61 50 6f 69 6e 74 3b 0d |..Point |aPoint;.|
|000038a0| 09 0d 09 73 77 69 74 63 | 68 20 28 65 76 65 6e 74 |...switc|h (event|
|000038b0| 2d 3e 77 68 61 74 29 20 | 7b 09 2f 2a 20 50 72 6f |->what) |{./* Pro|
|000038c0| 63 65 73 73 20 74 68 65 | 20 65 76 65 6e 74 20 2a |cess the| event *|
|000038d0| 2f 0d 09 63 61 73 65 20 | 6b 48 69 67 68 4c 65 76 |/..case |kHighLev|
|000038e0| 65 6c 45 76 65 6e 74 3a | 09 09 2f 2a 20 41 70 70 |elEvent:|../* App|
|000038f0| 6c 65 20 65 76 65 6e 74 | 73 3f 20 2a 2f 0d 09 09 |le event|s? */...|
|00003900| 48 61 6e 64 6c 65 48 69 | 67 68 4c 65 76 65 6c 45 |HandleHi|ghLevelE|
|00003910| 76 65 6e 74 28 65 76 65 | 6e 74 29 3b 09 2f 2a 20 |vent(eve|nt);./* |
|00003920| 50 61 73 73 20 69 74 20 | 6f 6e 2e 2e 2e 20 2a 2f |Pass it |on... */|
|00003930| 0d 09 09 62 72 65 61 6b | 3b 0d 09 09 09 09 0d 09 |...break|;.......|
|00003940| 63 61 73 65 20 6d 6f 75 | 73 65 44 6f 77 6e 3a 09 |case mou|seDown:.|
|00003950| 2f 2a 20 50 72 65 73 73 | 65 64 20 74 68 65 20 6d |/* Press|ed the m|
|00003960| 6f 75 73 65 3f 20 2a 2f | 0d 09 09 46 69 78 4d 48 |ouse? */|...FixMH|
|00003970| 65 69 67 68 74 28 29 3b | 09 09 2f 2a 20 41 6c 6c |eight();|../* All|
|00003980| 6f 77 20 6d 65 6e 75 20 | 62 61 72 20 63 6c 69 63 |ow menu |bar clic|
|00003990| 6b 73 20 2a 2f 0d 09 09 | 70 61 72 74 20 3d 20 46 |ks */...|part = F|
|000039a0| 69 6e 64 57 69 6e 64 6f | 77 28 65 76 65 6e 74 2d |indWindo|w(event-|
|000039b0| 3e 77 68 65 72 65 2c 20 | 26 77 69 6e 64 6f 77 29 |>where, |&window)|
|000039c0| 3b 09 2f 2a 20 43 68 6f | 6f 73 65 20 74 68 65 20 |;./* Cho|ose the |
|000039d0| 68 69 74 20 2a 2f 0d 09 | 09 5a 61 70 4d 48 65 69 |hit */..|.ZapMHei|
|000039e0| 67 68 74 28 29 3b 09 09 | 2f 2a 20 44 6f 6e 27 74 |ght();..|/* Don't|
|000039f0| 20 63 6c 69 63 6b 20 61 | 6e 79 6d 6f 72 65 20 2a | click a|nymore *|
|00003a00| 2f 0d 09 09 73 77 69 74 | 63 68 20 28 70 61 72 74 |/...swit|ch (part|
|00003a10| 29 20 7b 0d 09 09 63 61 | 73 65 20 69 6e 4d 65 6e |) {...ca|se inMen|
|00003a20| 75 42 61 72 3a 09 09 09 | 2f 2a 20 70 72 6f 63 65 |uBar:...|/* proce|
|00003a30| 73 73 20 61 20 6d 6f 75 | 73 65 20 6d 65 6e 75 20 |ss a mou|se menu |
|00003a40| 63 6f 6d 6d 61 6e 64 20 | 28 69 66 20 61 6e 79 29 |command |(if any)|
|00003a50| 20 2a 2f 0d 09 09 09 41 | 64 6a 75 73 74 4d 65 6e | */....A|djustMen|
|00003a60| 75 73 28 29 3b 09 09 2f | 2a 20 45 6e 61 62 6c 65 |us();../|* Enable|
|00003a70| 2f 64 69 73 61 62 6c 65 | 20 6d 65 6e 75 20 69 74 |/disable| menu it|
|00003a80| 65 6d 73 20 2a 2f 0d 09 | 09 09 53 68 6f 77 4d 65 |ems */..|..ShowMe|
|00003a90| 6e 75 42 61 72 28 29 3b | 09 09 2f 2a 20 44 69 73 |nuBar();|../* Dis|
|00003aa0| 70 6c 61 79 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |play the| menu ba|
|00003ab0| 72 20 2a 2f 0d 09 09 09 | 44 6f 4d 65 6e 75 43 6f |r */....|DoMenuCo|
|00003ac0| 6d 6d 61 6e 64 28 4d 65 | 6e 75 53 65 6c 65 63 74 |mmand(Me|nuSelect|
|00003ad0| 28 65 76 65 6e 74 2d 3e | 77 68 65 72 65 29 29 3b |(event->|where));|
|00003ae0| 09 2f 2a 20 48 61 6e 64 | 6c 65 20 74 68 65 20 63 |./* Hand|le the c|
|00003af0| 6f 6d 6d 61 6e 64 20 2a | 2f 0d 09 09 09 69 66 20 |ommand *|/....if |
|00003b00| 28 21 49 6e 50 61 75 73 | 65 29 20 7b 0d 09 09 09 |(!InPaus|e) {....|
|00003b10| 09 48 69 64 65 4d 65 6e | 75 42 61 72 28 29 3b 09 |.HideMen|uBar();.|
|00003b20| 09 2f 2a 20 48 69 64 65 | 20 74 68 65 20 6d 65 6e |./* Hide| the men|
|00003b30| 75 20 62 61 72 20 2a 2f | 0d 09 09 09 7d 0d 09 09 |u bar */|....}...|
|00003b40| 09 62 72 65 61 6b 3b 0d | 09 09 63 61 73 65 20 69 |.break;.|..case i|
|00003b50| 6e 53 79 73 57 69 6e 64 | 6f 77 3a 09 09 09 2f 2a |nSysWind|ow:.../*|
|00003b60| 20 6c 65 74 20 74 68 65 | 20 73 79 73 74 65 6d 20 | let the| system |
|00003b70| 68 61 6e 64 6c 65 20 74 | 68 65 20 6d 6f 75 73 65 |handle t|he mouse|
|00003b80| 44 6f 77 6e 20 2a 2f 0d | 09 09 09 53 79 73 74 65 |Down */.|...Syste|
|00003b90| 6d 43 6c 69 63 6b 28 65 | 76 65 6e 74 2c 20 77 69 |mClick(e|vent, wi|
|00003ba0| 6e 64 6f 77 29 3b 09 2f | 2a 20 50 61 73 73 20 6f |ndow);./|* Pass o|
|00003bb0| 6e 20 74 68 65 20 65 76 | 65 6e 74 20 2a 2f 0d 09 |n the ev|ent */..|
|00003bc0| 09 09 62 72 65 61 6b 3b | 0d 09 09 63 61 73 65 20 |..break;|...case |
|00003bd0| 69 6e 43 6f 6e 74 65 6e | 74 3a 0d 09 09 09 69 66 |inConten|t:....if|
|00003be0| 20 28 77 69 6e 64 6f 77 | 20 21 3d 20 46 72 6f 6e | (window| != Fron|
|00003bf0| 74 57 69 6e 64 6f 77 28 | 29 20 29 20 7b 0d 09 09 |tWindow(|) ) {...|
|00003c00| 09 09 53 65 6c 65 63 74 | 57 69 6e 64 6f 77 28 77 |..Select|Window(w|
|00003c10| 69 6e 64 6f 77 29 3b 09 | 2f 2a 20 4d 61 6b 65 20 |indow);.|/* Make |
|00003c20| 69 74 20 74 68 65 20 66 | 72 6f 6e 74 20 77 69 6e |it the f|ront win|
|00003c30| 64 6f 77 20 2a 2f 0d 09 | 09 09 7d 0d 09 09 09 69 |dow */..|..}....i|
|00003c40| 66 20 28 77 69 6e 64 6f | 77 20 3d 3d 20 28 57 69 |f (windo|w == (Wi|
|00003c50| 6e 64 6f 77 50 74 72 29 | 47 61 6d 65 57 69 6e 64 |ndowPtr)|GameWind|
|00003c60| 6f 77 29 20 7b 0d 09 09 | 09 09 4d 6f 75 73 65 48 |ow) {...|..MouseH|
|00003c70| 69 74 20 3d 20 54 52 55 | 45 3b 0d 09 09 09 7d 0d |it = TRU|E;....}.|
|00003c80| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|00003c90| 20 69 6e 44 72 61 67 3a | 09 09 2f 2a 20 70 61 73 | inDrag:|../* pas|
|00003ca0| 73 20 73 63 72 65 65 6e | 42 69 74 73 2e 62 6f 75 |s screen|Bits.bou|
|00003cb0| 6e 64 73 20 74 6f 20 67 | 65 74 20 61 6c 6c 20 67 |nds to g|et all g|
|00003cc0| 44 65 76 69 63 65 73 20 | 2a 2f 0d 09 09 09 44 72 |Devices |*/....Dr|
|00003cd0| 61 67 57 69 6e 64 6f 77 | 28 77 69 6e 64 6f 77 2c |agWindow|(window,|
|00003ce0| 20 65 76 65 6e 74 2d 3e | 77 68 65 72 65 2c 20 26 | event->|where, &|
|00003cf0| 71 64 2e 73 63 72 65 65 | 6e 42 69 74 73 2e 62 6f |qd.scree|nBits.bo|
|00003d00| 75 6e 64 73 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |unds);..|..break;|
|00003d10| 0d 09 09 63 61 73 65 20 | 69 6e 47 6f 41 77 61 79 |...case |inGoAway|
|00003d20| 3a 0d 09 09 09 69 66 20 | 28 54 72 61 63 6b 47 6f |:....if |(TrackGo|
|00003d30| 41 77 61 79 28 77 69 6e | 64 6f 77 2c 65 76 65 6e |Away(win|dow,even|
|00003d40| 74 2d 3e 77 68 65 72 65 | 29 29 20 7b 09 2f 2a 20 |t->where|)) {./* |
|00003d50| 48 61 6e 64 6c 65 20 74 | 68 65 20 63 6c 6f 73 65 |Handle t|he close|
|00003d60| 20 62 6f 78 20 2a 2f 0d | 09 09 09 09 44 6f 43 6c | box */.|....DoCl|
|00003d70| 6f 73 65 57 69 6e 64 6f | 77 28 77 69 6e 64 6f 77 |oseWindo|w(window|
|00003d80| 29 3b 09 2f 2a 20 43 6c | 6f 73 65 20 6d 79 20 77 |);./* Cl|ose my w|
|00003d90| 69 6e 64 6f 77 20 2a 2f | 0d 09 09 09 7d 0d 09 09 |indow */|....}...|
|00003da0| 09 62 72 65 61 6b 3b 0d | 09 09 63 61 73 65 20 69 |.break;.|..case i|
|00003db0| 6e 5a 6f 6f 6d 49 6e 3a | 0d 09 09 63 61 73 65 20 |nZoomIn:|...case |
|00003dc0| 69 6e 5a 6f 6f 6d 4f 75 | 74 3a 0d 09 09 09 69 66 |inZoomOu|t:....if|
|00003dd0| 20 28 54 72 61 63 6b 42 | 6f 78 28 77 69 6e 64 6f | (TrackB|ox(windo|
|00003de0| 77 2c 20 65 76 65 6e 74 | 2d 3e 77 68 65 72 65 2c |w, event|->where,|
|00003df0| 20 70 61 72 74 29 29 20 | 7b 09 2f 2a 20 54 72 61 | part)) |{./* Tra|
|00003e00| 63 6b 20 74 68 65 20 7a | 6f 6f 6d 20 62 6f 78 20 |ck the z|oom box |
|00003e10| 2a 2f 0d 09 09 09 09 53 | 65 74 50 6f 72 74 28 77 |*/.....S|etPort(w|
|00003e20| 69 6e 64 6f 77 29 3b 09 | 09 09 09 2f 2a 20 74 68 |indow);.|.../* th|
|00003e30| 65 20 77 69 6e 64 6f 77 | 20 6d 75 73 74 20 62 65 |e window| must be|
|00003e40| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 6f 72 | the cur|rent por|
|00003e50| 74 2e 2e 2e 20 2a 2f 0d | 09 09 09 09 45 72 61 73 |t... */.|....Eras|
|00003e60| 65 52 65 63 74 28 26 77 | 69 6e 64 6f 77 2d 3e 70 |eRect(&w|indow->p|
|00003e70| 6f 72 74 52 65 63 74 29 | 3b 09 2f 2a 20 62 65 63 |ortRect)|;./* bec|
|00003e80| 61 75 73 65 20 6f 66 20 | 61 20 62 75 67 20 69 6e |ause of |a bug in|
|00003e90| 20 5a 6f 6f 6d 57 69 6e | 64 6f 77 20 2a 2f 0d 09 | ZoomWin|dow */..|
|00003ea0| 09 09 09 5a 6f 6f 6d 57 | 69 6e 64 6f 77 28 77 69 |...ZoomW|indow(wi|
|00003eb0| 6e 64 6f 77 2c 70 61 72 | 74 2c 54 52 55 45 29 3b |ndow,par|t,TRUE);|
|00003ec0| 09 2f 2a 20 6e 6f 74 65 | 20 74 68 61 74 20 77 65 |./* note| that we|
|00003ed0| 20 69 6e 76 61 6c 69 64 | 61 74 65 20 61 6e 64 20 | invalid|ate and |
|00003ee0| 65 72 61 73 65 2e 2e 2e | 20 2a 2f 0d 09 09 09 09 |erase...| */.....|
|00003ef0| 49 6e 76 61 6c 52 65 63 | 74 28 26 77 69 6e 64 6f |InvalRec|t(&windo|
|00003f00| 77 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 09 2f 2a |w->portR|ect);./*|
|00003f10| 20 74 6f 20 6d 61 6b 65 | 20 74 68 69 6e 67 73 20 | to make| things |
|00003f20| 6c 6f 6f 6b 20 62 65 74 | 74 65 72 20 6f 6e 2d 73 |look bet|ter on-s|
|00003f30| 63 72 65 65 6e 20 2a 2f | 0d 09 09 09 7d 0d 09 09 |creen */|....}...|
|00003f40| 09 62 72 65 61 6b 3b 0d | 09 09 7d 0d 09 09 62 72 |.break;.|..}...br|
|00003f50| 65 61 6b 3b 0d 09 63 61 | 73 65 20 6b 65 79 44 6f |eak;..ca|se keyDo|
|00003f60| 77 6e 3a 0d 09 63 61 73 | 65 20 61 75 74 6f 4b 65 |wn:..cas|e autoKe|
|00003f70| 79 3a 09 09 09 09 09 09 | 2f 2a 20 63 68 65 63 6b |y:......|/* check|
|00003f80| 20 66 6f 72 20 6d 65 6e | 75 6b 65 79 20 65 71 75 | for men|ukey equ|
|00003f90| 69 76 61 6c 65 6e 74 73 | 20 2a 2f 0d 09 09 6b 65 |ivalents| */...ke|
|00003fa0| 79 20 3d 20 65 76 65 6e | 74 2d 3e 6d 65 73 73 61 |y = even|t->messa|
|00003fb0| 67 65 20 26 20 63 68 61 | 72 43 6f 64 65 4d 61 73 |ge & cha|rCodeMas|
|00003fc0| 6b 3b 0d 09 09 69 66 20 | 28 65 76 65 6e 74 2d 3e |k;...if |(event->|
|00003fd0| 6d 6f 64 69 66 69 65 72 | 73 20 26 20 63 6d 64 4b |modifier|s & cmdK|
|00003fe0| 65 79 29 20 7b 09 09 09 | 2f 2a 20 43 6f 6d 6d 61 |ey) {...|/* Comma|
|00003ff0| 6e 64 20 6b 65 79 20 64 | 6f 77 6e 20 2a 2f 0d 09 |nd key d|own */..|
|00004000| 09 09 69 66 20 28 65 76 | 65 6e 74 2d 3e 77 68 61 |..if (ev|ent->wha|
|00004010| 74 20 3d 3d 20 6b 65 79 | 44 6f 77 6e 29 20 7b 0d |t == key|Down) {.|
|00004020| 09 09 09 09 41 64 6a 75 | 73 74 4d 65 6e 75 73 28 |....Adju|stMenus(|
|00004030| 29 3b 09 09 2f 2a 20 65 | 6e 61 62 6c 65 2f 64 69 |);../* e|nable/di|
|00004040| 73 61 62 6c 65 2f 63 68 | 65 63 6b 20 6d 65 6e 75 |sable/ch|eck menu|
|00004050| 20 69 74 65 6d 73 20 70 | 72 6f 70 65 72 6c 79 20 | items p|roperly |
|00004060| 2a 2f 0d 09 09 09 09 44 | 6f 4d 65 6e 75 43 6f 6d |*/.....D|oMenuCom|
|00004070| 6d 61 6e 64 28 4d 65 6e | 75 4b 65 79 28 6b 65 79 |mand(Men|uKey(key|
|00004080| 29 29 3b 09 2f 2a 20 50 | 72 6f 63 65 73 73 20 74 |));./* P|rocess t|
|00004090| 68 65 20 6b 65 79 20 2a | 2f 0d 09 09 09 7d 0d 09 |he key *|/....}..|
|000040a0| 09 09 72 65 74 75 72 6e | 20 30 3b 09 2f 2a 20 49 |..return| 0;./* I|
|000040b0| 67 6e 6f 72 65 20 74 68 | 65 20 65 76 65 6e 74 20 |gnore th|e event |
|000040c0| 2a 2f 0d 09 09 7d 0d 09 | 09 72 65 74 75 72 6e 20 |*/...}..|.return |
|000040d0| 6b 65 79 3b 09 09 2f 2a | 20 52 65 74 75 72 6e 20 |key;../*| Return |
|000040e0| 74 68 65 20 6b 65 79 20 | 70 72 65 73 73 65 64 20 |the key |pressed |
|000040f0| 2a 2f 0d 09 63 61 73 65 | 20 75 70 64 61 74 65 45 |*/..case| updateE|
|00004100| 76 74 3a 0d 09 09 44 6f | 55 70 64 61 74 65 28 28 |vt:...Do|Update((|
|00004110| 57 69 6e 64 6f 77 50 74 | 72 29 20 65 76 65 6e 74 |WindowPt|r) event|
|00004120| 2d 3e 6d 65 73 73 61 67 | 65 29 3b 09 2f 2a 20 46 |->messag|e);./* F|
|00004130| 6f 72 63 65 20 72 65 64 | 72 61 77 20 6f 66 20 6d |orce red|raw of m|
|00004140| 79 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 09 09 62 72 |y window| */...br|
|00004150| 65 61 6b 3b 0d 09 63 61 | 73 65 20 64 69 73 6b 45 |eak;..ca|se diskE|
|00004160| 76 74 3a 0d 09 09 69 66 | 20 28 28 65 76 65 6e 74 |vt:...if| ((event|
|00004170| 2d 3e 6d 65 73 73 61 67 | 65 3e 3e 31 36 29 20 21 |->messag|e>>16) !|
|00004180| 3d 20 6e 6f 45 72 72 20 | 29 20 7b 09 2f 2a 20 57 |= noErr |) {./* W|
|00004190| 61 73 20 74 68 65 72 65 | 20 61 6e 20 65 72 72 6f |as there| an erro|
|000041a0| 72 3f 20 2a 2f 0d 09 09 | 09 53 65 74 50 74 28 26 |r? */...|.SetPt(&|
|000041b0| 61 50 6f 69 6e 74 2c 20 | 6b 44 49 4c 65 66 74 2c |aPoint, |kDILeft,|
|000041c0| 20 6b 44 49 54 6f 70 29 | 3b 0d 09 09 09 44 49 42 | kDITop)|;....DIB|
|000041d0| 61 64 4d 6f 75 6e 74 28 | 61 50 6f 69 6e 74 2c 20 |adMount(|aPoint, |
|000041e0| 65 76 65 6e 74 2d 3e 6d | 65 73 73 61 67 65 29 3b |event->m|essage);|
|000041f0| 09 2f 2a 20 46 6f 72 6d | 61 74 20 74 68 65 20 64 |./* Form|at the d|
|00004200| 69 73 6b 3f 20 2a 2f 0d | 09 09 7d 0d 09 09 62 72 |isk? */.|..}...br|
|00004210| 65 61 6b 3b 0d 09 63 61 | 73 65 20 61 63 74 69 76 |eak;..ca|se activ|
|00004220| 61 74 65 45 76 74 3a 0d | 09 09 69 66 20 28 65 76 |ateEvt:.|..if (ev|
|00004230| 65 6e 74 2d 3e 6d 6f 64 | 69 66 69 65 72 73 20 26 |ent->mod|ifiers &|
|00004240| 20 31 29 20 7b 0d 09 09 | 09 46 69 78 54 68 65 43 | 1) {...|.FixTheC|
|00004250| 75 72 73 6f 72 28 29 3b | 09 09 2f 2a 20 52 65 73 |ursor();|../* Res|
|00004260| 65 74 20 74 68 65 20 63 | 75 72 73 6f 72 20 74 6f |et the c|ursor to|
|00004270| 20 74 68 65 20 68 69 64 | 64 65 6e 20 73 74 61 74 | the hid|den stat|
|00004280| 65 20 2a 2f 0d 09 09 09 | 53 65 74 50 6f 72 74 28 |e */....|SetPort(|
|00004290| 28 57 69 6e 64 6f 77 50 | 74 72 29 47 61 6d 65 57 |(WindowP|tr)GameW|
|000042a0| 69 6e 64 6f 77 29 3b 0d | 09 09 09 52 65 73 65 74 |indow);.|...Reset|
|000042b0| 50 61 6c 65 74 74 65 28 | 29 3b 09 09 2f 2a 20 53 |Palette(|);../* S|
|000042c0| 65 74 20 6d 79 20 73 79 | 73 74 65 6d 20 70 61 6c |et my sy|stem pal|
|000042d0| 65 74 74 65 20 2a 2f 0d | 09 09 7d 0d 09 09 62 72 |ette */.|..}...br|
|000042e0| 65 61 6b 3b 0d 09 63 61 | 73 65 20 6f 73 45 76 74 |eak;..ca|se osEvt|
|000042f0| 3a 09 0d 09 09 44 6f 42 | 61 63 6b 67 72 6f 75 6e |:....DoB|ackgroun|
|00004300| 64 28 65 76 65 6e 74 29 | 3b 09 09 09 2f 2a 20 50 |d(event)|;.../* P|
|00004310| 72 6f 63 65 73 73 20 73 | 75 73 70 65 6e 64 20 2f |rocess s|uspend /|
|00004320| 20 72 65 73 75 6d 65 20 | 2a 2f 0d 09 09 62 72 65 | resume |*/...bre|
|00004330| 61 6b 3b 0d 09 7d 0d 09 | 69 66 20 28 4f 70 65 6e |ak;..}..|if (Open|
|00004340| 50 65 6e 64 69 6e 67 20 | 26 26 20 4a 75 6d 70 4f |Pending |&& JumpO|
|00004350| 4b 29 20 7b 09 0d 09 09 | 4f 70 65 6e 50 65 6e 64 |K) {....|OpenPend|
|00004360| 69 6e 67 3d 46 41 4c 53 | 45 3b 09 09 09 09 2f 2a |ing=FALS|E;..../*|
|00004370| 20 41 63 6b 20 74 68 65 | 20 65 76 65 6e 74 20 2a | Ack the| event *|
|00004380| 2f 0d 09 09 69 66 20 28 | 4c 6f 61 64 47 61 6d 65 |/...if (|LoadGame|
|00004390| 28 29 29 20 7b 09 09 09 | 09 2f 2a 20 4c 6f 61 64 |()) {...|./* Load|
|000043a0| 20 74 68 65 20 67 61 6d | 65 20 69 6e 74 6f 20 6d | the gam|e into m|
|000043b0| 65 6d 6f 72 79 20 2a 2f | 0d 09 09 09 6c 6f 6e 67 |emory */|....long|
|000043c0| 6a 6d 70 28 52 65 73 65 | 74 4a 6d 70 2c 45 58 5f |jmp(Rese|tJmp,EX_|
|000043d0| 4c 4f 41 44 47 41 4d 45 | 29 3b 09 2f 2a 20 52 65 |LOADGAME|);./* Re|
|000043e0| 73 74 61 72 74 20 61 20 | 6c 6f 61 64 65 64 20 67 |start a |loaded g|
|000043f0| 61 6d 65 20 2a 2f 0d 09 | 09 7d 0d 09 7d 0d 09 69 |ame */..|.}..}..i|
|00004400| 66 20 28 21 49 6e 50 61 | 75 73 65 29 20 7b 0d 09 |f (!InPa|use) {..|
|00004410| 09 48 69 64 65 4d 65 6e | 75 42 61 72 28 29 3b 09 |.HideMen|uBar();.|
|00004420| 09 09 2f 2a 20 4d 61 6b | 65 20 53 55 52 45 20 74 |../* Mak|e SURE t|
|00004430| 68 65 20 6d 65 6e 75 20 | 62 61 72 20 69 73 20 67 |he menu |bar is g|
|00004440| 6f 6e 65 21 20 2a 2f 0d | 09 7d 0d 09 72 65 74 75 |one! */.|.}..retu|
|00004450| 72 6e 20 30 3b 09 09 09 | 09 2f 2a 20 4e 6f 20 65 |rn 0;...|./* No e|
|00004460| 76 65 6e 74 20 70 72 6f | 63 65 73 73 65 64 20 2a |vent pro|cessed *|
|00004470| 2f 0d 7d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/.}../**|********|
|00004480| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004490| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 43 61 6c 6c 20 |********|...Call |
|000044a0| 74 68 69 73 20 77 68 65 | 6e 20 49 20 72 65 63 65 |this whe|n I rece|
|000044b0| 69 76 65 20 61 6e 20 75 | 70 64 61 74 65 20 65 76 |ive an u|pdate ev|
|000044c0| 65 6e 74 0d 09 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ent...**|********|
|000044d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000044e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 76 6f 69 64 20 |********|/..void |
|000044f0| 44 6f 55 70 64 61 74 65 | 28 57 69 6e 64 6f 77 50 |DoUpdate|(WindowP|
|00004500| 74 72 20 77 69 6e 64 6f | 77 29 0d 7b 0d 09 69 66 |tr windo|w).{..if|
|00004510| 20 28 28 28 57 69 6e 64 | 6f 77 50 65 65 6b 29 20 | (((Wind|owPeek) |
|00004520| 77 69 6e 64 6f 77 29 2d | 3e 77 69 6e 64 6f 77 4b |window)-|>windowK|
|00004530| 69 6e 64 20 3e 3d 30 29 | 20 7b 09 2f 2a 20 49 73 |ind >=0)| {./* Is|
|00004540| 20 74 68 69 73 20 6d 79 | 20 77 69 6e 64 6f 77 3f | this my| window?|
|00004550| 20 2a 2f 0d 09 09 42 65 | 67 69 6e 55 70 64 61 74 | */...Be|ginUpdat|
|00004560| 65 28 77 69 6e 64 6f 77 | 29 3b 09 09 09 2f 2a 20 |e(window|);.../* |
|00004570| 74 68 69 73 20 73 65 74 | 73 20 75 70 20 74 68 65 |this set|s up the|
|00004580| 20 76 69 73 52 67 6e 20 | 2a 2f 0d 09 09 44 72 61 | visRgn |*/...Dra|
|00004590| 77 57 69 6e 64 6f 77 28 | 77 69 6e 64 6f 77 29 3b |wWindow(|window);|
|000045a0| 09 09 09 09 2f 2a 20 44 | 72 61 77 20 74 68 65 20 |..../* D|raw the |
|000045b0| 67 61 6d 65 20 77 69 6e | 64 6f 77 20 2a 2f 0d 09 |game win|dow */..|
|000045c0| 09 45 6e 64 55 70 64 61 | 74 65 28 77 69 6e 64 6f |.EndUpda|te(windo|
|000045d0| 77 29 3b 09 09 09 09 2f | 2a 20 46 69 78 20 74 68 |w);..../|* Fix th|
|000045e0| 65 20 76 69 73 52 67 6e | 20 2a 2f 0d 09 7d 0d 7d |e visRgn| */..}.}|
|000045f0| 0d 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00004600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 09 55 70 |********|***...Up|
|00004610| 64 61 74 65 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |date the| content|
|00004620| 73 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 0d |s of the| window.|
|00004630| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00004640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 76 6f 69 64 |********|*/..void|
|00004650| 20 44 72 61 77 57 69 6e | 64 6f 77 28 57 69 6e 64 | DrawWin|dow(Wind|
|00004660| 6f 77 50 74 72 20 77 69 | 6e 64 6f 77 29 0d 7b 0d |owPtr wi|ndow).{.|
|00004670| 09 57 6f 72 64 20 4f 6c | 64 51 75 69 63 6b 3b 09 |.Word Ol|dQuick;.|
|00004680| 09 09 09 2f 2a 20 50 72 | 65 76 69 6f 75 73 20 73 |.../* Pr|evious s|
|00004690| 74 61 74 65 20 6f 66 20 | 74 68 65 20 71 75 69 63 |tate of |the quic|
|000046a0| 6b 64 72 61 77 20 66 6c | 61 67 20 2a 2f 0d 09 69 |kdraw fl|ag */..i|
|000046b0| 66 20 28 77 69 6e 64 6f | 77 20 3d 3d 20 28 57 69 |f (windo|w == (Wi|
|000046c0| 6e 64 6f 77 50 74 72 29 | 20 47 61 6d 65 57 69 6e |ndowPtr)| GameWin|
|000046d0| 64 6f 77 29 20 7b 09 2f | 2a 20 49 73 20 69 74 20 |dow) {./|* Is it |
|000046e0| 6d 79 20 77 69 6e 64 6f | 77 3f 20 2a 2f 0d 09 09 |my windo|w? */...|
|000046f0| 53 65 74 50 6f 72 74 28 | 28 57 69 6e 64 6f 77 50 |SetPort(|(WindowP|
|00004700| 74 72 29 47 61 6d 65 57 | 69 6e 64 6f 77 29 3b 0d |tr)GameW|indow);.|
|00004710| 09 09 4f 6c 64 51 75 69 | 63 6b 20 3d 20 44 6f 51 |..OldQui|ck = DoQ|
|00004720| 75 69 63 6b 44 72 61 77 | 3b 09 2f 2a 20 53 61 76 |uickDraw|;./* Sav|
|00004730| 65 20 74 68 65 20 71 75 | 69 63 6b 64 72 61 77 20 |e the qu|ickdraw |
|00004740| 66 6c 61 67 20 2a 2f 0d | 09 09 44 6f 51 75 69 63 |flag */.|..DoQuic|
|00004750| 6b 44 72 61 77 20 3d 20 | 54 52 55 45 3b 09 09 2f |kDraw = |TRUE;../|
|00004760| 2a 20 46 6f 72 63 65 20 | 71 75 69 63 6b 64 72 61 |* Force |quickdra|
|00004770| 77 20 2a 2f 0d 09 09 42 | 6c 61 73 74 53 63 72 65 |w */...B|lastScre|
|00004780| 65 6e 28 29 3b 09 09 09 | 2f 2a 20 55 70 64 61 74 |en();...|/* Updat|
|00004790| 65 20 74 68 65 20 73 63 | 72 65 65 6e 20 2a 2f 0d |e the sc|reen */.|
|000047a0| 09 09 44 6f 51 75 69 63 | 6b 44 72 61 77 20 3d 20 |..DoQuic|kDraw = |
|000047b0| 4f 6c 64 51 75 69 63 6b | 3b 09 2f 2a 20 52 65 73 |OldQuick|;./* Res|
|000047c0| 74 6f 72 65 20 71 75 69 | 63 6b 64 72 61 77 20 66 |tore qui|ckdraw f|
|000047d0| 6c 61 67 20 2a 2f 0d 09 | 09 69 66 20 28 56 61 6c |lag */..|.if (Val|
|000047e0| 69 64 52 65 63 74 73 29 | 20 7b 09 09 2f 2a 20 42 |idRects)| {../* B|
|000047f0| 6c 61 63 6b 20 72 65 67 | 69 6f 6e 20 76 61 6c 69 |lack reg|ion vali|
|00004800| 64 3f 20 2a 2f 0d 09 09 | 09 46 69 6c 6c 52 67 6e |d? */...|.FillRgn|
|00004810| 28 42 6c 61 63 6b 52 67 | 6e 2c 26 71 64 2e 62 6c |(BlackRg|n,&qd.bl|
|00004820| 61 63 6b 29 3b 09 09 2f | 2a 20 46 69 6c 6c 20 74 |ack);../|* Fill t|
|00004830| 68 65 20 62 6c 61 63 6b | 20 72 65 67 69 6f 6e 20 |he black| region |
|00004840| 2a 2f 0d 09 09 7d 0d 09 | 7d 0d 7d 0d 0d 2f 2a 2a |*/...}..|}.}../**|
|00004850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004860| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 09 53 65 74 |********|**...Set|
|00004870| 20 61 6e 20 69 74 65 6d | 27 73 20 6d 61 72 6b 20 | an item|'s mark |
|00004880| 77 69 74 68 20 61 20 63 | 68 65 63 6b 20 6d 61 72 |with a c|heck mar|
|00004890| 6b 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |k..*****|********|
|000048a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000048b0| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 20 53 65 |..static| void Se|
|000048c0| 74 41 4d 61 72 6b 28 4d | 65 6e 75 48 61 6e 64 6c |tAMark(M|enuHandl|
|000048d0| 65 20 4d 79 48 61 6e 64 | 2c 57 6f 72 64 20 57 68 |e MyHand|,Word Wh|
|000048e0| 69 63 68 2c 57 6f 72 64 | 20 56 61 72 29 0d 7b 0d |ich,Word| Var).{.|
|000048f0| 09 56 61 72 20 3d 20 28 | 56 61 72 29 20 3f 20 30 |.Var = (|Var) ? 0|
|00004900| 78 31 32 20 3a 20 30 3b | 0d 09 53 65 74 49 74 65 |x12 : 0;|..SetIte|
|00004910| 6d 4d 61 72 6b 28 4d 79 | 48 61 6e 64 2c 57 68 69 |mMark(My|Hand,Whi|
|00004920| 63 68 2c 56 61 72 29 3b | 0d 7d 0d 0d 2f 2a 2a 2a |ch,Var);|.}../***|
|00004930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 09 45 6e 61 62 |********|*...Enab|
|00004950| 6c 65 20 61 6e 64 20 64 | 69 73 61 62 6c 65 20 6d |le and d|isable m|
|00004960| 65 6e 75 20 69 74 65 6d | 73 0d 0d 2a 2a 2a 2a 2a |enu item|s..*****|
|00004970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004980| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 76 6f 69 64 20 41 |*******/|..void A|
|00004990| 64 6a 75 73 74 4d 65 6e | 75 73 28 76 6f 69 64 29 |djustMen|us(void)|
|000049a0| 0d 7b 0d 09 57 69 6e 64 | 6f 77 50 74 72 20 77 69 |.{..Wind|owPtr wi|
|000049b0| 6e 64 6f 77 3b 0d 09 4d | 65 6e 75 48 61 6e 64 6c |ndow;..M|enuHandl|
|000049c0| 65 20 46 69 6c 65 4d 65 | 6e 75 2c 45 64 69 74 4d |e FileMe|nu,EditM|
|000049d0| 65 6e 75 2c 4f 70 74 69 | 6f 6e 4d 65 6e 75 3b 0d |enu,Opti|onMenu;.|
|000049e0| 09 0d 09 77 69 6e 64 6f | 77 20 3d 20 46 72 6f 6e |...windo|w = Fron|
|000049f0| 74 57 69 6e 64 6f 77 28 | 29 3b 09 09 09 2f 2a 20 |tWindow(|);.../* |
|00004a00| 57 68 69 63 68 20 77 69 | 6e 64 6f 77 20 69 73 20 |Which wi|ndow is |
|00004a10| 69 6e 20 66 72 6f 6e 74 | 20 2a 2f 0d 09 46 69 6c |in front| */..Fil|
|00004a20| 65 4d 65 6e 75 20 3d 20 | 47 65 74 4d 65 6e 75 48 |eMenu = |GetMenuH|
|00004a30| 61 6e 64 6c 65 28 6d 46 | 69 6c 65 29 3b 09 09 2f |andle(mF|ile);../|
|00004a40| 2a 20 47 65 74 20 74 68 | 65 20 66 69 6c 65 20 6d |* Get th|e file m|
|00004a50| 65 6e 75 20 68 61 6e 64 | 6c 65 20 2a 2f 0d 09 45 |enu hand|le */..E|
|00004a60| 64 69 74 4d 65 6e 75 20 | 3d 20 47 65 74 4d 65 6e |ditMenu |= GetMen|
|00004a70| 75 48 61 6e 64 6c 65 28 | 6d 45 64 69 74 29 3b 09 |uHandle(|mEdit);.|
|00004a80| 2f 2a 20 47 65 74 20 74 | 68 65 20 65 64 69 74 20 |/* Get t|he edit |
|00004a90| 6d 65 6e 75 20 68 61 6e | 64 6c 65 20 2a 2f 0d 09 |menu han|dle */..|
|00004aa0| 4f 70 74 69 6f 6e 4d 65 | 6e 75 20 3d 20 47 65 74 |OptionMe|nu = Get|
|00004ab0| 4d 65 6e 75 48 61 6e 64 | 6c 65 28 6d 4f 70 74 69 |MenuHand|le(mOpti|
|00004ac0| 6f 6e 73 29 3b 0d 09 69 | 66 20 28 77 69 6e 64 6f |ons);..i|f (windo|
|00004ad0| 77 21 3d 28 57 69 6e 64 | 6f 77 50 74 72 29 47 61 |w!=(Wind|owPtr)Ga|
|00004ae0| 6d 65 57 69 6e 64 6f 77 | 29 20 7b 09 2f 2a 20 45 |meWindow|) {./* E|
|00004af0| 6e 61 62 6c 65 20 69 66 | 20 74 68 65 72 65 20 69 |nable if| there i|
|00004b00| 73 20 61 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 09 09 |s a wind|ow */...|
|00004b10| 45 6e 61 62 6c 65 49 74 | 65 6d 28 46 69 6c 65 4d |EnableIt|em(FileM|
|00004b20| 65 6e 75 2c 69 43 6c 6f | 73 65 29 3b 0d 09 09 45 |enu,iClo|se);...E|
|00004b30| 6e 61 62 6c 65 49 74 65 | 6d 28 45 64 69 74 4d 65 |nableIte|m(EditMe|
|00004b40| 6e 75 2c 30 29 3b 0d 09 | 7d 20 65 6c 73 65 20 7b |nu,0);..|} else {|
|00004b50| 0d 09 09 44 69 73 61 62 | 6c 65 49 74 65 6d 28 46 |...Disab|leItem(F|
|00004b60| 69 6c 65 4d 65 6e 75 2c | 69 43 6c 6f 73 65 29 3b |ileMenu,|iClose);|
|00004b70| 0d 09 09 44 69 73 61 62 | 6c 65 49 74 65 6d 28 45 |...Disab|leItem(E|
|00004b80| 64 69 74 4d 65 6e 75 2c | 30 29 3b 0d 09 7d 0d 09 |ditMenu,|0);..}..|
|00004b90| 69 66 20 28 70 6c 61 79 | 73 74 61 74 65 20 3d 3d |if (play|state ==|
|00004ba0| 20 45 58 5f 53 54 49 4c | 4c 50 4c 41 59 49 4e 47 | EX_STIL|LPLAYING|
|00004bb0| 29 20 7b 09 2f 2a 20 47 | 61 6d 65 20 69 73 20 69 |) {./* G|ame is i|
|00004bc0| 6e 20 70 72 6f 67 72 65 | 73 73 20 2a 2f 0d 09 09 |n progre|ss */...|
|00004bd0| 45 6e 61 62 6c 65 49 74 | 65 6d 28 46 69 6c 65 4d |EnableIt|em(FileM|
|00004be0| 65 6e 75 2c 69 53 61 76 | 65 41 73 29 3b 09 2f 2a |enu,iSav|eAs);./*|
|00004bf0| 20 53 61 76 65 20 74 68 | 65 20 67 61 6d 65 20 2a | Save th|e game *|
|00004c00| 2f 0d 09 09 45 6e 61 62 | 6c 65 49 74 65 6d 28 46 |/...Enab|leItem(F|
|00004c10| 69 6c 65 4d 65 6e 75 2c | 69 53 61 76 65 29 3b 09 |ileMenu,|iSave);.|
|00004c20| 09 2f 2a 20 51 75 69 63 | 6b 73 61 76 65 20 74 68 |./* Quic|ksave th|
|00004c30| 65 20 67 61 6d 65 20 2a | 2f 0d 09 7d 20 65 6c 73 |e game *|/..} els|
|00004c40| 65 20 7b 0d 09 09 44 69 | 73 61 62 6c 65 49 74 65 |e {...Di|sableIte|
|00004c50| 6d 28 46 69 6c 65 4d 65 | 6e 75 2c 69 53 61 76 65 |m(FileMe|nu,iSave|
|00004c60| 41 73 29 3b 09 2f 2a 20 | 43 61 6e 27 74 20 73 61 |As);./* |Can't sa|
|00004c70| 76 65 20 67 61 6d 65 20 | 77 68 65 6e 20 69 73 6e |ve game |when isn|
|00004c80| 27 74 20 69 6e 20 74 68 | 65 20 6d 6f 64 65 20 2a |'t in th|e mode *|
|00004c90| 2f 0d 09 09 44 69 73 61 | 62 6c 65 49 74 65 6d 28 |/...Disa|bleItem(|
|00004ca0| 46 69 6c 65 4d 65 6e 75 | 2c 69 53 61 76 65 29 3b |FileMenu|,iSave);|
|00004cb0| 0d 09 7d 0d 09 69 66 20 | 28 4c 6f 77 4f 6e 4d 65 |..}..if |(LowOnMe|
|00004cc0| 6d 29 20 7b 0d 09 09 44 | 69 73 61 62 6c 65 49 74 |m) {...D|isableIt|
|00004cd0| 65 6d 28 4f 70 74 69 6f | 6e 4d 65 6e 75 2c 69 53 |em(Optio|nMenu,iS|
|00004ce0| 6f 75 6e 64 29 3b 0d 09 | 09 44 69 73 61 62 6c 65 |ound);..|.Disable|
|00004cf0| 49 74 65 6d 28 4f 70 74 | 69 6f 6e 4d 65 6e 75 2c |Item(Opt|ionMenu,|
|00004d00| 69 4d 75 73 69 63 29 3b | 0d 09 7d 0d 09 69 66 20 |iMusic);|..}..if |
|00004d10| 28 44 69 6d 51 44 29 20 | 7b 0d 09 09 44 69 73 61 |(DimQD) |{...Disa|
|00004d20| 62 6c 65 49 74 65 6d 28 | 4f 70 74 69 6f 6e 4d 65 |bleItem(|OptionMe|
|00004d30| 6e 75 2c 69 55 73 65 51 | 75 69 63 6b 44 72 61 77 |nu,iUseQ|uickDraw|
|00004d40| 29 3b 0d 09 7d 0d 09 69 | 66 20 28 70 6c 61 79 73 |);..}..i|f (plays|
|00004d50| 74 61 74 65 3d 3d 45 58 | 5f 41 55 54 4f 4d 41 50 |tate==EX|_AUTOMAP|
|00004d60| 20 7c 7c 20 70 6c 61 79 | 73 74 61 74 65 3d 3d 45 | || play|state==E|
|00004d70| 58 5f 44 49 45 44 29 20 | 7b 0d 09 09 44 69 73 61 |X_DIED) |{...Disa|
|00004d80| 62 6c 65 49 74 65 6d 28 | 4f 70 74 69 6f 6e 4d 65 |bleItem(|OptionMe|
|00004d90| 6e 75 2c 69 53 63 72 65 | 65 6e 53 69 7a 65 29 3b |nu,iScre|enSize);|
|00004da0| 0d 09 7d 20 65 6c 73 65 | 20 7b 0d 09 09 45 6e 61 |..} else| {...Ena|
|00004db0| 62 6c 65 49 74 65 6d 28 | 4f 70 74 69 6f 6e 4d 65 |bleItem(|OptionMe|
|00004dc0| 6e 75 2c 69 53 63 72 65 | 65 6e 53 69 7a 65 29 3b |nu,iScre|enSize);|
|00004dd0| 0d 09 7d 0d 09 53 65 74 | 41 4d 61 72 6b 28 4f 70 |..}..Set|AMark(Op|
|00004de0| 74 69 6f 6e 4d 65 6e 75 | 2c 69 53 6f 75 6e 64 2c |tionMenu|,iSound,|
|00004df0| 53 79 73 74 65 6d 53 74 | 61 74 65 26 53 66 78 41 |SystemSt|ate&SfxA|
|00004e00| 63 74 69 76 65 29 3b 09 | 2f 2a 20 43 68 65 63 6b |ctive);.|/* Check|
|00004e10| 20 74 68 65 20 73 6f 75 | 6e 64 20 6d 65 6e 75 20 | the sou|nd menu |
|00004e20| 2a 2f 0d 09 53 65 74 41 | 4d 61 72 6b 28 4f 70 74 |*/..SetA|Mark(Opt|
|00004e30| 69 6f 6e 4d 65 6e 75 2c | 69 4d 75 73 69 63 2c 53 |ionMenu,|iMusic,S|
|00004e40| 79 73 74 65 6d 53 74 61 | 74 65 26 4d 75 73 69 63 |ystemSta|te&Music|
|00004e50| 41 63 74 69 76 65 29 3b | 09 2f 2a 20 43 68 65 63 |Active);|./* Chec|
|00004e60| 6b 20 74 68 65 20 6d 75 | 73 69 63 20 6d 65 6e 75 |k the mu|sic menu|
|00004e70| 20 2a 2f 0d 09 53 65 74 | 41 4d 61 72 6b 28 4f 70 | */..Set|AMark(Op|
|00004e80| 74 69 6f 6e 4d 65 6e 75 | 2c 69 47 6f 76 65 6e 6f |tionMenu|,iGoveno|
|00004e90| 72 2c 53 6c 6f 77 44 6f | 77 6e 29 3b 09 09 09 2f |r,SlowDo|wn);.../|
|00004ea0| 2a 20 43 68 65 63 6b 20 | 74 68 65 20 53 70 65 65 |* Check |the Spee|
|00004eb0| 64 20 67 6f 76 65 72 6f | 72 20 2a 2f 0d 09 53 65 |d govero|r */..Se|
|00004ec0| 74 41 4d 61 72 6b 28 4f | 70 74 69 6f 6e 4d 65 6e |tAMark(O|ptionMen|
|00004ed0| 75 2c 69 4d 6f 75 73 65 | 43 6f 6e 74 72 6f 6c 2c |u,iMouse|Control,|
|00004ee0| 4d 6f 75 73 65 45 6e 61 | 62 6c 65 64 29 3b 09 09 |MouseEna|bled);..|
|00004ef0| 09 09 2f 2a 20 43 68 65 | 63 6b 20 74 68 65 20 6d |../* Che|ck the m|
|00004f00| 6f 75 73 65 20 66 6c 61 | 67 20 2a 2f 0d 09 53 65 |ouse fla|g */..Se|
|00004f10| 74 41 4d 61 72 6b 28 4f | 70 74 69 6f 6e 4d 65 6e |tAMark(O|ptionMen|
|00004f20| 75 2c 69 55 73 65 51 75 | 69 63 6b 44 72 61 77 2c |u,iUseQu|ickDraw,|
|00004f30| 44 6f 51 75 69 63 6b 44 | 72 61 77 29 3b 09 09 09 |DoQuickD|raw);...|
|00004f40| 09 2f 2a 20 43 68 65 63 | 6b 20 74 68 65 20 6d 6f |./* Chec|k the mo|
|00004f50| 75 73 65 20 66 6c 61 67 | 20 2a 2f 0d 7d 0d 0d 2f |use flag| */.}../|
|00004f60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004f70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004f80| 2a 2a 0d 0d 09 50 72 6f | 63 65 73 73 20 61 20 6d |**...Pro|cess a m|
|00004f90| 65 6e 75 20 62 61 72 20 | 65 76 65 6e 74 0d 0d 2a |enu bar |event..*|
|00004fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fc0| 2a 2f 0d 0d 76 6f 69 64 | 20 44 6f 4d 65 6e 75 43 |*/..void| DoMenuC|
|00004fd0| 6f 6d 6d 61 6e 64 28 4c | 6f 6e 67 57 6f 72 64 20 |ommand(L|ongWord |
|00004fe0| 6d 65 6e 75 52 65 73 75 | 6c 74 29 0d 7b 0d 09 57 |menuResu|lt).{..W|
|00004ff0| 6f 72 64 20 6d 65 6e 75 | 49 44 3b 09 09 09 2f 2a |ord menu|ID;.../*|
|00005000| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 49 44 | the res|ource ID|
|00005010| 20 6f 66 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 | of the |selected|
|00005020| 20 6d 65 6e 75 20 2a 2f | 0d 09 57 6f 72 64 20 6d | menu */|..Word m|
|00005030| 65 6e 75 49 74 65 6d 3b | 09 09 09 2f 2a 20 74 68 |enuItem;|.../* th|
|00005040| 65 20 69 74 65 6d 20 6e | 75 6d 62 65 72 20 6f 66 |e item n|umber of|
|00005050| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 6d 65 | the sel|ected me|
|00005060| 6e 75 20 2a 2f 0d 09 53 | 74 72 32 35 35 20 64 61 |nu */..S|tr255 da|
|00005070| 4e 61 6d 65 3b 09 09 09 | 2f 2a 20 4e 61 6d 65 20 |Name;...|/* Name |
|00005080| 6f 66 20 64 65 73 6b 20 | 61 63 63 20 2a 2f 0d 09 |of desk |acc */..|
|00005090| 57 6f 72 64 20 69 3b 09 | 09 09 09 09 2f 2a 20 54 |Word i;.|..../* T|
|000050a0| 65 6d 70 20 2a 2f 0d 09 | 0d 09 6d 65 6e 75 49 44 |emp */..|..menuID|
|000050b0| 20 3d 20 6d 65 6e 75 52 | 65 73 75 6c 74 3e 3e 31 | = menuR|esult>>1|
|000050c0| 36 3b 09 0d 09 6d 65 6e | 75 49 74 65 6d 20 3d 20 |6;...men|uItem = |
|000050d0| 6d 65 6e 75 52 65 73 75 | 6c 74 26 30 78 66 66 66 |menuResu|lt&0xfff|
|000050e0| 66 3b 09 2f 2a 20 67 65 | 74 20 6d 65 6e 75 20 69 |f;./* ge|t menu i|
|000050f0| 74 65 6d 20 6e 75 6d 62 | 65 72 20 61 6e 64 20 6d |tem numb|er and m|
|00005100| 65 6e 75 20 6e 75 6d 62 | 65 72 20 2a 2f 0d 09 73 |enu numb|er */..s|
|00005110| 77 69 74 63 68 20 28 6d | 65 6e 75 49 44 29 20 7b |witch (m|enuID) {|
|00005120| 0d 09 63 61 73 65 20 6d | 41 70 70 6c 65 3a 09 09 |..case m|Apple:..|
|00005130| 09 09 2f 2a 20 41 70 70 | 6c 65 20 6d 65 6e 75 20 |../* App|le menu |
|00005140| 2a 2f 0d 09 09 73 77 69 | 74 63 68 20 28 6d 65 6e |*/...swi|tch (men|
|00005150| 75 49 74 65 6d 29 20 7b | 0d 09 09 63 61 73 65 20 |uItem) {|...case |
|00005160| 69 41 62 6f 75 74 3a 09 | 09 2f 2a 20 42 72 69 6e |iAbout:.|./* Brin|
|00005170| 67 20 75 70 20 61 6c 65 | 72 74 20 66 6f 72 20 41 |g up ale|rt for A|
|00005180| 62 6f 75 74 20 2a 2f 0d | 09 09 09 50 6c 61 79 53 |bout */.|...PlayS|
|00005190| 6f 75 6e 64 28 53 4e 44 | 5f 4d 45 4e 55 29 3b 0d |ound(SND|_MENU);.|
|000051a0| 09 09 09 44 6f 4d 79 41 | 6c 65 72 74 28 72 41 62 |...DoMyA|lert(rAb|
|000051b0| 6f 75 74 41 6c 65 72 74 | 29 3b 09 09 2f 2a 20 53 |outAlert|);../* S|
|000051c0| 68 6f 77 20 74 68 65 20 | 63 72 65 64 69 74 73 20 |how the |credits |
|000051d0| 2a 2f 0d 09 09 09 50 6c | 61 79 53 6f 75 6e 64 28 |*/....Pl|aySound(|
|000051e0| 53 4e 44 5f 4f 4b 29 3b | 0d 09 09 09 62 72 65 61 |SND_OK);|....brea|
|000051f0| 6b 3b 0d 09 09 63 61 73 | 65 20 69 53 70 65 65 64 |k;...cas|e iSpeed|
|00005200| 48 69 6e 74 3a 09 0d 09 | 09 09 50 6c 61 79 53 6f |Hint:...|..PlaySo|
|00005210| 75 6e 64 28 53 4e 44 5f | 4d 45 4e 55 29 3b 0d 09 |und(SND_|MENU);..|
|00005220| 09 09 44 6f 4d 79 41 6c | 65 72 74 28 53 70 65 65 |..DoMyAl|ert(Spee|
|00005230| 64 54 69 70 73 57 69 6e | 29 3b 09 2f 2a 20 53 68 |dTipsWin|);./* Sh|
|00005240| 6f 77 20 74 68 65 20 68 | 69 6e 74 73 20 66 6f 72 |ow the h|ints for|
|00005250| 20 73 70 65 65 64 20 2a | 2f 0d 09 09 09 50 6c 61 | speed *|/....Pla|
|00005260| 79 53 6f 75 6e 64 28 53 | 4e 44 5f 4f 4b 29 3b 0d |ySound(S|ND_OK);.|
|00005270| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|00005280| 20 69 53 68 61 72 65 57 | 61 72 65 3a 0d 09 09 09 | iShareW|are:....|
|00005290| 50 6c 61 79 53 6f 75 6e | 64 28 53 4e 44 5f 4d 45 |PlaySoun|d(SND_ME|
|000052a0| 4e 55 29 3b 0d 09 09 09 | 44 6f 4d 79 41 6c 65 72 |NU);....|DoMyAler|
|000052b0| 74 28 53 68 61 72 65 57 | 61 72 65 57 69 6e 29 3b |t(ShareW|areWin);|
|000052c0| 09 2f 2a 20 41 73 6b 20 | 61 62 6f 75 74 20 24 24 |./* Ask |about $$|
|000052d0| 24 20 2a 2f 0d 09 09 09 | 50 6c 61 79 53 6f 75 6e |$ */....|PlaySoun|
|000052e0| 64 28 53 4e 44 5f 4f 4b | 29 3b 0d 09 09 09 62 72 |d(SND_OK|);....br|
|000052f0| 65 61 6b 3b 0d 09 09 64 | 65 66 61 75 6c 74 3a 09 |eak;...d|efault:.|
|00005300| 09 09 2f 2a 20 61 6c 6c | 20 6e 6f 6e 2d 41 62 6f |../* all| non-Abo|
|00005310| 75 74 20 69 74 65 6d 73 | 20 69 6e 20 74 68 69 73 |ut items| in this|
|00005320| 20 6d 65 6e 75 20 61 72 | 65 20 44 41 73 20 2a 2f | menu ar|e DAs */|
|00005330| 0d 09 09 09 47 65 74 4d | 65 6e 75 49 74 65 6d 54 |....GetM|enuItemT|
|00005340| 65 78 74 28 47 65 74 4d | 65 6e 75 48 61 6e 64 6c |ext(GetM|enuHandl|
|00005350| 65 28 6d 41 70 70 6c 65 | 29 2c 20 6d 65 6e 75 49 |e(mApple|), menuI|
|00005360| 74 65 6d 2c 20 64 61 4e | 61 6d 65 29 3b 0d 09 09 |tem, daN|ame);...|
|00005370| 09 4f 70 65 6e 44 65 73 | 6b 41 63 63 28 64 61 4e |.OpenDes|kAcc(daN|
|00005380| 61 6d 65 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |ame);...|.break;.|
|00005390| 09 09 7d 0d 09 09 62 72 | 65 61 6b 3b 0d 09 63 61 |..}...br|eak;..ca|
|000053a0| 73 65 20 6d 46 69 6c 65 | 3a 09 09 09 09 2f 2a 20 |se mFile|:..../* |
|000053b0| 46 69 6c 65 20 6d 65 6e | 75 20 2a 2f 0d 09 09 73 |File men|u */...s|
|000053c0| 77 69 74 63 68 20 28 6d | 65 6e 75 49 74 65 6d 29 |witch (m|enuItem)|
|000053d0| 20 7b 0d 09 09 63 61 73 | 65 20 69 4e 65 77 3a 09 | {...cas|e iNew:.|
|000053e0| 0d 09 09 09 69 66 20 28 | 43 68 6f 6f 73 65 47 61 |....if (|ChooseGa|
|000053f0| 6d 65 44 69 66 66 28 29 | 29 20 7b 09 09 2f 2a 20 |meDiff()|) {../* |
|00005400| 43 68 6f 6f 73 65 20 6c | 65 76 65 6c 20 6f 66 20 |Choose l|evel of |
|00005410| 64 69 66 66 69 63 75 6c | 74 79 20 2a 2f 0d 09 09 |difficul|ty */...|
|00005420| 09 09 48 69 6c 69 74 65 | 4d 65 6e 75 28 30 29 3b |..Hilite|Menu(0);|
|00005430| 0d 09 09 09 09 46 69 78 | 50 61 75 73 65 4d 65 6e |.....Fix|PauseMen|
|00005440| 75 28 29 3b 0d 09 09 09 | 09 53 61 76 65 46 69 6c |u();....|.SaveFil|
|00005450| 65 4e 61 6d 65 20 3d 20 | 30 3b 09 09 2f 2a 20 5a |eName = |0;../* Z|
|00005460| 61 70 20 74 68 65 20 73 | 61 76 65 20 67 61 6d 65 |ap the s|ave game|
|00005470| 20 6e 61 6d 65 20 2a 2f | 0d 09 09 09 09 6c 6f 6e | name */|.....lon|
|00005480| 67 6a 6d 70 28 52 65 73 | 65 74 4a 6d 70 2c 45 58 |gjmp(Res|etJmp,EX|
|00005490| 5f 4e 45 57 47 41 4d 45 | 29 3b 0d 09 09 09 7d 0d |_NEWGAME|);....}.|
|000054a0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|000054b0| 20 69 43 6c 6f 73 65 3a | 0d 09 09 09 44 6f 43 6c | iClose:|....DoCl|
|000054c0| 6f 73 65 57 69 6e 64 6f | 77 28 46 72 6f 6e 74 57 |oseWindo|w(FrontW|
|000054d0| 69 6e 64 6f 77 28 29 29 | 3b 0d 09 09 09 62 72 65 |indow())|;....bre|
|000054e0| 61 6b 3b 0d 09 09 63 61 | 73 65 20 69 4f 70 65 6e |ak;...ca|se iOpen|
|000054f0| 3a 0d 09 09 09 69 66 20 | 28 43 68 6f 6f 73 65 4c |:....if |(ChooseL|
|00005500| 6f 61 64 47 61 6d 65 28 | 29 29 20 7b 09 09 2f 2a |oadGame(|)) {../*|
|00005510| 20 43 68 6f 6f 73 65 20 | 61 20 67 61 6d 65 20 74 | Choose |a game t|
|00005520| 6f 20 6c 6f 61 64 20 2a | 2f 0d 09 09 09 09 69 66 |o load *|/.....if|
|00005530| 20 28 4c 6f 61 64 47 61 | 6d 65 28 29 29 20 7b 09 | (LoadGa|me()) {.|
|00005540| 09 09 09 2f 2a 20 4c 6f | 61 64 20 74 68 65 20 67 |.../* Lo|ad the g|
|00005550| 61 6d 65 20 69 6e 74 6f | 20 6d 65 6d 6f 72 79 20 |ame into| memory |
|00005560| 2a 2f 0d 09 09 09 09 09 | 48 69 6c 69 74 65 4d 65 |*/......|HiliteMe|
|00005570| 6e 75 28 30 29 3b 0d 09 | 09 09 09 09 46 69 78 50 |nu(0);..|....FixP|
|00005580| 61 75 73 65 4d 65 6e 75 | 28 29 3b 0d 09 09 09 09 |auseMenu|();.....|
|00005590| 09 6c 6f 6e 67 6a 6d 70 | 28 52 65 73 65 74 4a 6d |.longjmp|(ResetJm|
|000055a0| 70 2c 45 58 5f 4c 4f 41 | 44 47 41 4d 45 29 3b 09 |p,EX_LOA|DGAME);.|
|000055b0| 2f 2a 20 52 65 73 74 61 | 72 74 20 61 20 6c 6f 61 |/* Resta|rt a loa|
|000055c0| 64 65 64 20 67 61 6d 65 | 20 2a 2f 0d 09 09 09 09 |ded game| */.....|
|000055d0| 7d 0d 09 09 09 7d 0d 09 | 09 09 62 72 65 61 6b 3b |}....}..|..break;|
|000055e0| 0d 09 09 63 61 73 65 20 | 69 53 61 76 65 3a 0d 09 |...case |iSave:..|
|000055f0| 09 09 69 66 20 28 53 61 | 76 65 46 69 6c 65 4e 61 |..if (Sa|veFileNa|
|00005600| 6d 65 29 20 7b 09 09 09 | 2f 2a 20 53 61 76 65 20 |me) {...|/* Save |
|00005610| 74 68 65 20 66 69 6c 65 | 20 61 75 74 6f 6d 61 74 |the file| automat|
|00005620| 69 63 61 6c 6c 79 3f 20 | 2a 2f 0d 09 09 09 09 53 |ically? |*/.....S|
|00005630| 61 76 65 47 61 6d 65 28 | 29 3b 09 09 09 09 2f 2a |aveGame(|);..../*|
|00005640| 20 53 61 76 65 20 69 74 | 20 2a 2f 0d 09 09 09 09 | Save it| */.....|
|00005650| 62 72 65 61 6b 3b 0d 09 | 09 09 7d 0d 09 09 63 61 |break;..|..}...ca|
|00005660| 73 65 20 69 53 61 76 65 | 41 73 3a 0d 09 09 09 69 |se iSave|As:....i|
|00005670| 66 20 28 43 68 6f 6f 73 | 65 53 61 76 65 47 61 6d |f (Choos|eSaveGam|
|00005680| 65 28 29 29 20 7b 09 09 | 2f 2a 20 53 65 6c 65 63 |e()) {..|/* Selec|
|00005690| 74 20 61 20 73 61 76 65 | 20 67 61 6d 65 20 6e 61 |t a save| game na|
|000056a0| 6d 65 20 2a 2f 0d 09 09 | 09 09 53 61 76 65 47 61 |me */...|..SaveGa|
|000056b0| 6d 65 28 29 3b 09 09 09 | 09 2f 2a 20 53 61 76 65 |me();...|./* Save|
|000056c0| 20 69 74 20 2a 2f 0d 09 | 09 09 7d 0d 09 09 09 62 | it */..|..}....b|
|000056d0| 72 65 61 6b 3b 0d 09 09 | 63 61 73 65 20 69 51 75 |reak;...|case iQu|
|000056e0| 69 74 3a 0d 09 09 09 47 | 6f 6f 64 42 79 65 28 29 |it:....G|oodBye()|
|000056f0| 3b 09 2f 2a 20 54 72 79 | 20 74 6f 20 71 75 69 74 |;./* Try| to quit|
|00005700| 20 2a 2f 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 | */....b|reak;...|
|00005710| 7d 0d 09 09 62 72 65 61 | 6b 3b 0d 09 63 61 73 65 |}...brea|k;..case|
|00005720| 20 6d 45 64 69 74 3a 09 | 09 2f 2a 20 63 61 6c 6c | mEdit:.|./* call|
|00005730| 20 53 79 73 74 65 6d 45 | 64 69 74 20 66 6f 72 20 | SystemE|dit for |
|00005740| 44 41 20 65 64 69 74 69 | 6e 67 20 26 20 4d 75 6c |DA editi|ng & Mul|
|00005750| 74 69 46 69 6e 64 65 72 | 20 2a 2f 0d 09 09 53 79 |tiFinder| */...Sy|
|00005760| 73 74 65 6d 45 64 69 74 | 28 6d 65 6e 75 49 74 65 |stemEdit|(menuIte|
|00005770| 6d 2d 31 29 3b 09 2f 2a | 20 73 69 6e 63 65 20 77 |m-1);./*| since w|
|00005780| 65 20 64 6f 6e 27 74 20 | 64 6f 20 61 6e 79 20 45 |e don't |do any E|
|00005790| 64 69 74 69 6e 67 20 2a | 2f 0d 09 09 62 72 65 61 |diting *|/...brea|
|000057a0| 6b 3b 0d 09 63 61 73 65 | 20 6d 4f 70 74 69 6f 6e |k;..case| mOption|
|000057b0| 73 3a 0d 09 09 73 77 69 | 74 63 68 20 28 6d 65 6e |s:...swi|tch (men|
|000057c0| 75 49 74 65 6d 29 20 7b | 0d 09 09 63 61 73 65 20 |uItem) {|...case |
|000057d0| 69 53 6f 75 6e 64 3a 0d | 09 09 09 53 79 73 74 65 |iSound:.|...Syste|
|000057e0| 6d 53 74 61 74 65 5e 3d | 53 66 78 41 63 74 69 76 |mState^=|SfxActiv|
|000057f0| 65 3b 09 09 09 09 2f 2a | 20 53 6f 75 6e 64 20 6f |e;..../*| Sound o|
|00005800| 6e 2f 6f 66 66 20 66 6c | 61 67 73 20 2a 2f 0d 09 |n/off fl|ags */..|
|00005810| 09 09 69 66 20 28 21 28 | 53 79 73 74 65 6d 53 74 |..if (!(|SystemSt|
|00005820| 61 74 65 26 53 66 78 41 | 63 74 69 76 65 29 29 20 |ate&SfxA|ctive)) |
|00005830| 7b 0d 09 09 09 09 69 66 | 20 28 49 6e 50 61 75 73 |{.....if| (InPaus|
|00005840| 65 29 20 7b 0d 09 09 09 | 09 09 52 65 73 75 6d 65 |e) {....|..Resume|
|00005850| 53 6f 75 6e 64 4d 75 73 | 69 63 53 79 73 74 65 6d |SoundMus|icSystem|
|00005860| 28 29 3b 0d 09 09 09 09 | 7d 0d 09 09 09 09 50 6c |();.....|}.....Pl|
|00005870| 61 79 53 6f 75 6e 64 28 | 30 29 3b 09 09 09 2f 2a |aySound(|0);.../*|
|00005880| 20 54 75 72 6e 20 6f 66 | 66 20 61 6c 6c 20 65 78 | Turn of|f all ex|
|00005890| 69 73 74 69 6e 67 20 73 | 6f 75 6e 64 73 20 2a 2f |isting s|ounds */|
|000058a0| 0d 09 09 09 09 69 66 20 | 28 49 6e 50 61 75 73 65 |.....if |(InPause|
|000058b0| 29 20 7b 0d 09 09 09 09 | 09 50 61 75 73 65 53 6f |) {.....|.PauseSo|
|000058c0| 75 6e 64 4d 75 73 69 63 | 53 79 73 74 65 6d 28 29 |undMusic|System()|
|000058d0| 3b 0d 09 09 09 09 7d 0d | 09 09 09 7d 0d 09 09 09 |;.....}.|...}....|
|000058e0| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 69 4d |break;..|.case iM|
|000058f0| 75 73 69 63 3a 0d 09 09 | 09 53 79 73 74 65 6d 53 |usic:...|.SystemS|
|00005900| 74 61 74 65 5e 3d 4d 75 | 73 69 63 41 63 74 69 76 |tate^=Mu|sicActiv|
|00005910| 65 3b 09 09 09 2f 2a 20 | 4d 75 73 69 63 20 6f 6e |e;.../* |Music on|
|00005920| 2f 6f 66 66 20 66 6c 61 | 67 73 20 2a 2f 0d 09 09 |/off fla|gs */...|
|00005930| 09 69 66 20 28 49 6e 50 | 61 75 73 65 29 20 7b 0d |.if (InP|ause) {.|
|00005940| 09 09 09 09 52 65 73 75 | 6d 65 53 6f 75 6e 64 4d |....Resu|meSoundM|
|00005950| 75 73 69 63 53 79 73 74 | 65 6d 28 29 3b 0d 09 09 |usicSyst|em();...|
|00005960| 09 7d 0d 09 09 09 69 66 | 20 28 53 79 73 74 65 6d |.}....if| (System|
|00005970| 53 74 61 74 65 26 4d 75 | 73 69 63 41 63 74 69 76 |State&Mu|sicActiv|
|00005980| 65 29 20 7b 0d 09 09 09 | 09 50 6c 61 79 53 6f 6e |e) {....|.PlaySon|
|00005990| 67 28 4b 69 6c 6c 65 64 | 53 6f 6e 67 29 3b 09 09 |g(Killed|Song);..|
|000059a0| 2f 2a 20 52 65 73 74 61 | 72 74 20 74 68 65 20 6d |/* Resta|rt the m|
|000059b0| 75 73 69 63 20 2a 2f 0d | 09 09 09 7d 20 65 6c 73 |usic */.|...} els|
|000059c0| 65 20 7b 0d 09 09 09 09 | 50 6c 61 79 53 6f 6e 67 |e {.....|PlaySong|
|000059d0| 28 30 29 3b 09 2f 2a 20 | 53 68 75 74 20 64 6f 77 |(0);./* |Shut dow|
|000059e0| 6e 20 74 68 65 20 6d 75 | 73 69 63 20 2a 2f 0d 09 |n the mu|sic */..|
|000059f0| 09 09 7d 0d 09 09 09 69 | 66 20 28 49 6e 50 61 75 |..}....i|f (InPau|
|00005a00| 73 65 29 20 7b 0d 09 09 | 09 09 50 61 75 73 65 53 |se) {...|..PauseS|
|00005a10| 6f 75 6e 64 4d 75 73 69 | 63 53 79 73 74 65 6d 28 |oundMusi|cSystem(|
|00005a20| 29 3b 0d 09 09 09 7d 0d | 09 09 09 62 72 65 61 6b |);....}.|...break|
|00005a30| 3b 0d 09 09 63 61 73 65 | 20 69 53 63 72 65 65 6e |;...case| iScreen|
|00005a40| 53 69 7a 65 3a 0d 09 09 | 09 69 20 3d 20 44 6f 4d |Size:...|.i = DoM|
|00005a50| 79 41 6c 65 72 74 28 41 | 73 6b 53 69 7a 65 57 69 |yAlert(A|skSizeWi|
|00005a60| 6e 29 3b 09 09 2f 2a 20 | 53 68 6f 75 6c 64 20 49 |n);../* |Should I|
|00005a70| 20 63 68 61 6e 67 65 20 | 74 68 65 20 73 69 7a 65 | change |the size|
|00005a80| 3f 20 2a 2f 0d 09 09 09 | 69 66 20 28 69 20 26 26 |? */....|if (i &&|
|00005a90| 20 69 3c 35 29 20 7b 0d | 09 09 09 09 2d 2d 69 3b | i<5) {.|....--i;|
|00005aa0| 0d 09 09 09 09 69 66 20 | 28 47 61 6d 65 56 69 65 |.....if |(GameVie|
|00005ab0| 77 53 69 7a 65 21 3d 69 | 29 20 7b 09 09 2f 2a 20 |wSize!=i|) {../* |
|00005ac0| 44 69 64 20 79 6f 75 20 | 63 68 61 6e 67 65 20 74 |Did you |change t|
|00005ad0| 68 65 20 73 69 7a 65 3f | 20 2a 2f 0d 09 09 09 09 |he size?| */.....|
|00005ae0| 09 69 66 20 28 21 49 6e | 50 61 75 73 65 29 20 7b |.if (!In|Pause) {|
|00005af0| 0d 09 09 09 09 09 09 48 | 69 64 65 4d 65 6e 75 42 |.......H|ideMenuB|
|00005b00| 61 72 28 29 3b 0d 09 09 | 09 09 09 7d 0d 09 09 09 |ar();...|...}....|
|00005b10| 09 09 4d 6f 75 73 65 48 | 69 74 20 3d 20 54 52 55 |..MouseH|it = TRU|
|00005b20| 45 3b 09 09 2f 2a 20 47 | 65 74 20 6f 75 74 20 6f |E;../* G|et out o|
|00005b30| 66 20 70 61 75 73 65 20 | 6d 6f 64 65 20 2a 2f 0d |f pause |mode */.|
|00005b40| 09 09 09 09 09 47 61 6d | 65 56 69 65 77 53 69 7a |.....Gam|eViewSiz|
|00005b50| 65 20 3d 20 69 3b 09 09 | 2f 2a 20 53 65 74 20 74 |e = i;..|/* Set t|
|00005b60| 68 65 20 6e 65 77 20 73 | 69 7a 65 20 2a 2f 0d 09 |he new s|ize */..|
|00005b70| 09 09 09 09 69 66 20 28 | 70 6c 61 79 73 74 61 74 |....if (|playstat|
|00005b80| 65 3d 3d 45 58 5f 53 54 | 49 4c 4c 50 4c 41 59 49 |e==EX_ST|ILLPLAYI|
|00005b90| 4e 47 20 7c 7c 20 70 6c | 61 79 73 74 61 74 65 3d |NG || pl|aystate=|
|00005ba0| 3d 45 58 5f 41 55 54 4f | 4d 41 50 29 20 7b 0d 54 |=EX_AUTO|MAP) {.T|
|00005bb0| 72 79 49 74 3a 0d 09 09 | 09 09 09 09 47 61 6d 65 |ryIt:...|....Game|
|00005bc0| 56 69 65 77 53 69 7a 65 | 20 3d 20 4e 65 77 47 61 |ViewSize| = NewGa|
|00005bd0| 6d 65 57 69 6e 64 6f 77 | 28 47 61 6d 65 56 69 65 |meWindow|(GameVie|
|00005be0| 77 53 69 7a 65 29 3b 09 | 09 2f 2a 20 4d 61 6b 65 |wSize);.|./* Make|
|00005bf0| 20 61 20 6e 65 77 20 77 | 69 6e 64 6f 77 20 2a 2f | a new w|indow */|
|00005c00| 0d 09 09 09 09 09 09 69 | 66 20 28 21 53 74 61 72 |.......i|f (!Star|
|00005c10| 74 75 70 52 65 6e 64 65 | 72 69 6e 67 28 47 61 6d |tupRende|ring(Gam|
|00005c20| 65 56 69 65 77 53 69 7a | 65 29 29 20 7b 09 2f 2a |eViewSiz|e)) {./*|
|00005c30| 20 53 65 74 20 74 68 65 | 20 73 69 7a 65 20 6f 66 | Set the| size of|
|00005c40| 20 74 68 65 20 67 61 6d | 65 20 73 63 72 65 65 6e | the gam|e screen|
|00005c50| 20 2a 2f 0d 09 09 09 09 | 09 09 09 52 65 6c 65 61 | */.....|...Relea|
|00005c60| 73 65 53 63 61 6c 65 72 | 73 28 29 3b 0d 09 09 09 |seScaler|s();....|
|00005c70| 09 09 09 09 69 66 20 28 | 21 47 61 6d 65 56 69 65 |....if (|!GameVie|
|00005c80| 77 53 69 7a 65 29 20 7b | 0d 09 09 09 09 09 09 09 |wSize) {|........|
|00005c90| 09 42 61 69 6c 4f 75 74 | 28 29 3b 0d 09 09 09 09 |.BailOut|();.....|
|00005ca0| 09 09 09 7d 0d 09 09 09 | 09 09 09 09 2d 2d 47 61 |...}....|....--Ga|
|00005cb0| 6d 65 56 69 65 77 53 69 | 7a 65 3b 0d 09 09 09 09 |meViewSi|ze;.....|
|00005cc0| 09 09 09 67 6f 74 6f 20 | 54 72 79 49 74 3b 0d 09 |...goto |TryIt;..|
|00005cd0| 09 09 09 09 09 7d 0d 09 | 09 09 09 09 09 69 66 20 |.....}..|.....if |
|00005ce0| 28 70 6c 61 79 73 74 61 | 74 65 3d 3d 45 58 5f 53 |(playsta|te==EX_S|
|00005cf0| 54 49 4c 4c 50 4c 41 59 | 49 4e 47 29 20 7b 0d 09 |TILLPLAY|ING) {..|
|00005d00| 09 09 09 09 09 09 52 65 | 64 72 61 77 53 74 61 74 |......Re|drawStat|
|00005d10| 75 73 42 61 72 28 29 3b | 09 09 2f 2a 20 52 65 64 |usBar();|../* Red|
|00005d20| 72 61 77 20 74 68 65 20 | 6c 6f 77 65 72 20 61 72 |raw the |lower ar|
|00005d30| 65 61 20 2a 2f 0d 09 09 | 09 09 09 09 7d 0d 09 09 |ea */...|....}...|
|00005d40| 09 09 09 09 70 6c 61 79 | 73 74 61 74 65 3d 45 58 |....play|state=EX|
|00005d50| 5f 53 54 49 4c 4c 50 4c | 41 59 49 4e 47 3b 0d 09 |_STILLPL|AYING;..|
|00005d60| 09 09 09 09 09 53 65 74 | 41 50 61 6c 65 74 74 65 |.....Set|APalette|
|00005d70| 28 72 47 61 6d 65 50 61 | 6c 29 3b 09 09 09 2f 2a |(rGamePa|l);.../*|
|00005d80| 20 52 65 73 65 74 20 74 | 68 65 20 67 61 6d 65 20 | Reset t|he game |
|00005d90| 70 61 6c 65 74 74 65 20 | 2a 2f 0d 09 09 09 09 09 |palette |*/......|
|00005da0| 7d 0d 09 09 09 09 7d 0d | 09 09 09 7d 0d 09 09 09 |}.....}.|...}....|
|00005db0| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 69 47 |break;..|.case iG|
|00005dc0| 6f 76 65 6e 6f 72 3a 0d | 09 09 09 53 6c 6f 77 44 |ovenor:.|...SlowD|
|00005dd0| 6f 77 6e 5e 3d 31 3b 09 | 09 2f 2a 20 54 6f 67 67 |own^=1;.|./* Togg|
|00005de0| 6c 65 20 74 68 65 20 73 | 6c 6f 77 20 64 6f 77 6e |le the s|low down|
|00005df0| 20 66 6c 61 67 20 2a 2f | 0d 09 09 09 62 72 65 61 | flag */|....brea|
|00005e00| 6b 3b 0d 09 09 63 61 73 | 65 20 69 4d 6f 75 73 65 |k;...cas|e iMouse|
|00005e10| 43 6f 6e 74 72 6f 6c 3a | 0d 09 09 09 4d 6f 75 73 |Control:|....Mous|
|00005e20| 65 45 6e 61 62 6c 65 64 | 20 3d 20 28 21 4d 6f 75 |eEnabled| = (!Mou|
|00005e30| 73 65 45 6e 61 62 6c 65 | 64 29 3b 09 2f 2a 20 54 |seEnable|d);./* T|
|00005e40| 6f 67 67 6c 65 20 74 68 | 65 20 63 75 72 73 6f 72 |oggle th|e cursor|
|00005e50| 20 2a 2f 0d 09 09 09 46 | 69 78 54 68 65 43 75 72 | */....F|ixTheCur|
|00005e60| 73 6f 72 28 29 3b 0d 09 | 09 09 69 66 20 28 4d 6f |sor();..|..if (Mo|
|00005e70| 75 73 65 45 6e 61 62 6c | 65 64 29 20 7b 0d 09 09 |useEnabl|ed) {...|
|00005e80| 09 09 52 65 61 64 53 79 | 73 74 65 6d 4a 6f 79 73 |..ReadSy|stemJoys|
|00005e90| 74 69 63 6b 28 29 3b 0d | 09 09 09 09 6d 6f 75 73 |tick();.|....mous|
|00005ea0| 65 78 20 3d 20 30 3b 0d | 09 09 09 09 6d 6f 75 73 |ex = 0;.|....mous|
|00005eb0| 65 79 20 3d 20 30 3b 0d | 09 09 09 09 6d 6f 75 73 |ey = 0;.|....mous|
|00005ec0| 65 74 75 72 6e 3d 30 3b | 0d 09 09 09 09 52 65 61 |eturn=0;|.....Rea|
|00005ed0| 64 53 79 73 74 65 6d 4a | 6f 79 73 74 69 63 6b 28 |dSystemJ|oystick(|
|00005ee0| 29 3b 0d 09 09 09 09 6d | 6f 75 73 65 78 20 3d 30 |);.....m|ousex =0|
|00005ef0| 3b 09 09 2f 2a 20 44 69 | 73 63 61 72 64 20 74 68 |;../* Di|scard th|
|00005f00| 65 20 72 65 73 75 6c 74 | 73 20 2a 2f 0d 09 09 09 |e result|s */....|
|00005f10| 09 6d 6f 75 73 65 79 20 | 3d 30 3b 0d 09 09 09 09 |.mousey |=0;.....|
|00005f20| 6d 6f 75 73 65 74 75 72 | 6e 3d 30 3b 0d 09 09 09 |mousetur|n=0;....|
|00005f30| 7d 20 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |} ....br|eak;...c|
|00005f40| 61 73 65 20 69 55 73 65 | 51 75 69 63 6b 44 72 61 |ase iUse|QuickDra|
|00005f50| 77 3a 0d 09 09 09 44 6f | 51 75 69 63 6b 44 72 61 |w:....Do|QuickDra|
|00005f60| 77 5e 3d 54 52 55 45 3b | 09 09 2f 2a 20 54 6f 67 |w^=TRUE;|../* Tog|
|00005f70| 67 6c 65 20 74 68 65 20 | 71 75 69 63 6b 64 72 61 |gle the |quickdra|
|00005f80| 77 20 66 6c 61 67 20 2a | 2f 0d 09 09 09 62 72 65 |w flag *|/....bre|
|00005f90| 61 6b 3b 0d 09 09 7d 0d | 09 09 53 61 76 65 50 72 |ak;...}.|..SavePr|
|00005fa0| 65 66 73 28 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |efs();..|.break;.|
|00005fb0| 09 7d 0d 09 48 69 6c 69 | 74 65 4d 65 6e 75 28 30 |.}..Hili|teMenu(0|
|00005fc0| 29 3b 09 09 2f 2a 20 75 | 6e 68 69 67 68 6c 69 67 |);../* u|nhighlig|
|00005fd0| 68 74 20 77 68 61 74 20 | 4d 65 6e 75 53 65 6c 65 |ht what |MenuSele|
|00005fe0| 63 74 20 28 6f 72 20 4d | 65 6e 75 4b 65 79 29 20 |ct (or M|enuKey) |
|00005ff0| 68 69 6c 69 74 65 64 20 | 2a 2f 0d 7d 0d 0d 2f 2a |hilited |*/.}../*|
|00006000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006020| 0d 0d 09 43 6c 6f 73 65 | 20 61 20 77 69 6e 64 6f |...Close| a windo|
|00006030| 77 2c 20 72 65 74 75 72 | 6e 20 54 52 55 45 20 69 |w, retur|n TRUE i|
|00006040| 66 20 73 75 63 63 65 73 | 73 66 75 6c 0d 0d 2a 2a |f succes|sful..**|
|00006050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00006070| 0d 0d 42 6f 6f 6c 65 61 | 6e 20 44 6f 43 6c 6f 73 |..Boolea|n DoClos|
|00006080| 65 57 69 6e 64 6f 77 28 | 57 69 6e 64 6f 77 50 74 |eWindow(|WindowPt|
|00006090| 72 20 77 69 6e 64 6f 77 | 29 0d 7b 0d 09 69 6e 74 |r window|).{..int|
|000060a0| 20 4b 69 6e 64 3b 0d 0d | 09 69 66 20 28 77 69 6e | Kind;..|.if (win|
|000060b0| 64 6f 77 29 20 7b 09 09 | 2f 2a 20 56 61 6c 69 64 |dow) {..|/* Valid|
|000060c0| 20 70 6f 69 6e 74 65 72 | 3f 20 2a 2f 0d 09 09 4b | pointer|? */...K|
|000060d0| 69 6e 64 20 3d 20 28 28 | 57 69 6e 64 6f 77 50 65 |ind = ((|WindowPe|
|000060e0| 65 6b 29 20 77 69 6e 64 | 6f 77 29 2d 3e 77 69 6e |ek) wind|ow)->win|
|000060f0| 64 6f 77 4b 69 6e 64 3b | 09 2f 2a 20 47 65 74 20 |dowKind;|./* Get |
|00006100| 74 68 65 20 6b 69 6e 64 | 20 2a 2f 0d 09 09 69 66 |the kind| */...if|
|00006110| 20 28 4b 69 6e 64 3c 30 | 29 20 7b 0d 09 09 09 43 | (Kind<0|) {....C|
|00006120| 6c 6f 73 65 44 65 73 6b | 41 63 63 28 4b 69 6e 64 |loseDesk|Acc(Kind|
|00006130| 29 3b 0d 09 09 7d 0d 09 | 7d 0d 09 72 65 74 75 72 |);...}..|}..retur|
|00006140| 6e 20 54 52 55 45 3b 09 | 2f 2a 20 49 20 63 6c 6f |n TRUE;.|/* I clo|
|00006150| 73 65 64 20 69 74 21 20 | 2a 2f 0d 7d 0d 0d 2f 2a |sed it! |*/.}../*|
|00006160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 09 49 20 63 |********|**...I c|
|00006180| 61 6e 27 74 20 6c 6f 61 | 64 21 20 42 61 69 6c 20 |an't loa|d! Bail |
|00006190| 6f 75 74 20 6e 6f 77 21 | 0d 0d 2a 2a 2a 2a 2a 2a |out now!|..******|
|000061a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000061b0| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 76 6f 69 64 20 42 61 |******/.|.void Ba|
|000061c0| 69 6c 4f 75 74 28 76 6f | 69 64 29 0d 7b 0d 09 44 |ilOut(vo|id).{..D|
|000061d0| 6f 4d 79 41 6c 65 72 74 | 28 72 55 73 65 72 41 6c |oMyAlert|(rUserAl|
|000061e0| 65 72 74 29 3b 09 09 2f | 2a 20 53 68 6f 77 20 74 |ert);../|* Show t|
|000061f0| 68 65 20 61 6c 65 72 74 | 20 77 69 6e 64 6f 77 20 |he alert| window |
|00006200| 2a 2f 0d 09 47 6f 6f 64 | 42 79 65 28 29 3b 09 09 |*/..Good|Bye();..|
|00006210| 09 09 2f 2a 20 42 61 69 | 6c 20 6f 75 74 21 20 2a |../* Bai|l out! *|
|00006220| 2f 0d 7d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/.}../**|********|
|00006230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006240| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 55 70 64 61 74 |********|...Updat|
|00006250| 65 20 74 68 65 20 77 6f | 6c 66 20 73 63 72 65 65 |e the wo|lf scree|
|00006260| 6e 20 61 73 20 66 61 73 | 74 20 61 73 20 70 6f 73 |n as fas|t as pos|
|00006270| 73 69 62 6c 65 0d 0d 09 | 4d 61 6b 65 20 73 75 72 |sible...|Make sur|
|00006280| 65 20 74 68 61 74 20 46 | 6f 72 65 43 6f 6c 6f 72 |e that F|oreColor|
|00006290| 20 3d 20 42 4c 41 43 4b | 20 61 6e 64 20 43 6f 6c | = BLACK| and Col|
|000062a0| 6f 72 20 3d 20 57 48 49 | 54 45 2c 0d 09 52 4f 57 |or = WHI|TE,..ROW|
|000062b0| 42 59 54 45 53 20 73 68 | 6f 75 6c 64 20 62 65 20 |BYTES sh|ould be |
|000062c0| 6c 6f 6e 67 20 61 6c 69 | 67 6e 65 64 20 28 34 2c |long ali|gned (4,|
|000062d0| 38 2c 31 32 2c 31 36 2e | 2e 2e 29 0d 09 53 6f 75 |8,12,16.|..)..Sou|
|000062e0| 72 63 65 20 61 6e 64 20 | 64 65 73 74 20 73 68 6f |rce and |dest sho|
|000062f0| 75 6c 64 20 62 65 20 45 | 58 41 43 54 4c 59 20 74 |uld be E|XACTLY t|
|00006300| 68 65 20 73 61 6d 65 20 | 62 69 74 20 64 65 70 74 |he same |bit dept|
|00006310| 68 0d 09 63 74 53 65 65 | 64 20 73 68 6f 75 6c 64 |h..ctSee|d should|
|00006320| 20 6d 61 74 63 68 20 74 | 68 65 20 57 49 4e 44 4f | match t|he WINDO|
|00006330| 57 27 73 20 63 6f 6c 6f | 72 20 73 65 65 64 0d 09 |W's colo|r seed..|
|00006340| 42 6f 74 68 20 72 65 63 | 74 73 20 73 68 6f 75 6c |Both rec|ts shoul|
|00006350| 64 20 62 65 20 6d 75 6c | 74 69 70 6c 65 73 20 6f |d be mul|tiples o|
|00006360| 66 20 34 20 74 6f 20 6d | 61 6b 65 20 6c 6f 6e 67 |f 4 to m|ake long|
|00006370| 20 77 6f 72 64 20 74 72 | 61 6e 73 66 65 72 73 20 | word tr|ansfers |
|00006380| 6f 6e 6c 79 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |only..**|********|
|00006390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000063a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 76 6f 69 64 20 |********|/..void |
|000063b0| 42 6c 61 73 74 53 63 72 | 65 65 6e 32 28 52 65 63 |BlastScr|een2(Rec|
|000063c0| 74 20 2a 42 6c 61 73 74 | 52 65 63 74 29 20 0d 7b |t *Blast|Rect) .{|
|000063d0| 0d 09 52 65 63 74 20 51 | 44 52 65 63 74 3b 0d 09 |..Rect Q|DRect;..|
|000063e0| 43 54 61 62 48 61 6e 64 | 6c 65 20 43 6f 6c 6f 72 |CTabHand|le Color|
|000063f0| 48 61 6e 64 6c 65 2c 43 | 6f 6c 6f 72 48 61 6e 64 |Handle,C|olorHand|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.