home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / nethack-3.1 / sys / mac / NHrez.hqx / NetHack.r
Encoding:
Text File  |  1993-01-24  |  3.1 KB  |  115 lines

  1. INCLUDE "NetHack.rsrc";            /* MENU, MBAR, ALRT, WIND, ICN#, etc */
  2. INCLUDE "Sounds.rsrc";            /* Instruments as snd resources */
  3.  
  4. #include "Types.r"
  5. #include "SysTypes.r"
  6. #include "BalloonTypes.r"        /* Mac resource type definitions */
  7.  
  8. read 'TEXT' (1000,"Help")      $$Shell("Dat") "Help";
  9. read 'TEXT' (1001,"WizHelp") $$Shell("Dat") "WizHelp";
  10. read 'TEXT' (1002,"OptHelp") $$Shell("Dat") "OptHelp";
  11. /*
  12. read 'TEXT' (1003,"CmdHelp") $$Shell("Dat") "CmdHelp";
  13. */
  14. read 'TEXT' (1004,"MacHelp") $$Shell("MacDir") "MacHelp";
  15.  
  16. read 'TEXT' (1005,"HH")      $$Shell("Dat") "HH";
  17. read 'TEXT' (1006,"History") $$Shell("Dat") "History";
  18. read 'TEXT' (1007,"License") $$Shell("Dat") "License";
  19.  
  20. read 'TEXT' (1008,"News")     $$Shell("MacDir") "News";
  21. read 'TEXT' (1009,"Options") $$Shell("ObjDir") "Options";
  22.  
  23. /*
  24. read 'TEXT' (1010,"Rumors")  $$Shell("ObjDir") "Rumors";
  25. read 'TEXT' (1011,"Data")    $$Shell("ObjDir") "Data";
  26. */
  27.  
  28. #define kSignature 'nh31'        /* Application signature, registered with DTS */
  29.  
  30. #define kVersion "3.1º1"        /* Change here and below */
  31.  
  32. resource 'vers' (1) {
  33.     0x03, 0x01, beta, 0x01, verUS,    /* Version/subversion/{alpha|beta|release}/country */
  34.     kVersion,
  35.     kVersion " ⌐ 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992 by Stichting Mathematisch Centrum and M. Stephenson."
  36. };
  37.  
  38. type kSignature as 'STR ';
  39. resource kSignature (0,purgeable) 
  40.   { "NetHack v" kVersion " " };
  41.  
  42. resource 'FREF' (128,purgeable) 
  43. { 'APPL', 0, "" };
  44.  
  45. resource 'FREF' (129,purgeable) 
  46. { 'SAVE', 1, "" };
  47.  
  48. resource 'FREF' (130,purgeable) 
  49. { 'PREF', 2, "" };
  50.  
  51. resource 'BNDL' (128,purgeable) 
  52. {   kSignature,
  53.     0,
  54.     { 'ICN#',
  55.         { 0, 1000,
  56.           1, 1001,
  57.           2, 1002
  58.         },
  59.         
  60.         'FREF',
  61.         { 0, 128,
  62.           1, 129,
  63.           2, 130
  64.         }
  65.     }
  66. };
  67.  
  68. resource 'SIZE' (-1) {
  69.     reserved,
  70.     acceptSuspendResumeEvents,
  71.     reserved,
  72.     canBackground,
  73.     doesActivateOnFGSwitch,
  74.     backgroundAndForeground,
  75.     dontGetFrontClicks,
  76.     ignoreAppDiedEvents,
  77.     is32BitCompatible,
  78.     notHighLevelEventAware,
  79.     onlyLocalHLEvents,
  80.     notStationeryAware,
  81.     dontUseTextEditServices,
  82.     reserved,
  83.     reserved,
  84.     reserved,
  85.     1800 * 1024,        /* recommended */
  86.     1300 * 1024            /* absolute minimum, to be determined */
  87. };
  88.  
  89. /* System 7 help balloon information */
  90. resource 'hfdr' (-5696, purgeable) { 
  91.      HelpMgrVersion, hmDefaultOptions, 0, 0, /* header information */ 
  92.         { HMSTRResItem { /* use 'STR ' resource 2000 */ 2000 } 
  93.     } 
  94. };
  95.  
  96. resource 'STR ' (2000, purgeable) { /* Help message for app icon */
  97.    "NetHack v" kVersion "\nThis is the famous Dungeons and Dragons¬-like game ported to the Macintosh." 
  98. };
  99.  
  100. resource 'STR '(-16396, purgeable) {    /* Will be copied to the saved file. */
  101.     "NetHack"                            /* See Inside Mac VI, page 9-21.     */
  102. };
  103.  
  104.  
  105. /* Mac error decodes : 2000 - err# for common errors. Add your favorites below */
  106.  
  107. resource 'STR ' (2034) { "the disk is full"  };
  108. resource 'STR ' (2036) { "there was an I/O error"  };
  109. resource 'STR ' (2043) { "a file is missing"  };
  110. resource 'STR ' (2044) { "the disk is write-protected"  };
  111. resource 'STR ' (2047) { "the file is busy"  };
  112. resource 'STR ' (2049) { "the file is already open"  };
  113. resource 'STR ' (2108) { "there is not enough memory"  };
  114. resource 'STR ' (2192) { "a resource is missing"  };
  115.