home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-10 | 1.2 KB | 49 lines | [TEXT/KAHL] |
- // preffile.h
-
- enum {
- kDummyDummyStrangeCompiler = -1, // insures we don't get unsigned arithmetic from this thing
-
- // stuff
- kPlayerNameLength = 64,
- kShortcuts = 24,
- kFics = 0,
- kIcc
- };
-
- // Need to do this due to external file storage
- #pragma options align=mac68k
- typedef struct {
- short versionNumber;
- char name[kPlayerNameLength], password[kPlayerNameLength];
- char serverAddress[256];
- long port;
- Rect textWindPos, gameWindPos1, gameWindPos2;
- Boolean useSound, saidHi, smartClose, autoFlag, autoBug, autoFlip;
- long numLogins;
- RGBColor colWhite, colBlack;
- Boolean trueColors;
- short pieceSet;
- short currentFont, currentSize;
- Boolean adminColors, channelColors, smartText;
- short serverType;
- Boolean slowText, minimal;
- short boardSize1, boardSize2;
- Boolean timeseal, backgroundOnDrag, soundTells;
- } prefStruct;
-
- typedef struct {
- Boolean jexiste;
- char shortcut[kPlayerNameLength];
- char name[kPlayerNameLength], password[kPlayerNameLength];
- char serverAddress[kPlayerNameLength];
- long port;
- short serverType; // fics/icc
- Boolean timeseal;
- } Shortcut;
- #pragma options align=reset
-
- extern prefStruct gPrefs;
- extern Shortcut *gShortcuts;
-
- void DoSavePrefs(Ptr p, long length, Str255 preffilename);
- long DoReadPrefs(Ptr p, long length, Str255 preffilename);