2 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // File: cheat_globals.h
6 // Created: Fri Sep 19 2003
8 // Copyright: 2003 Chaz McGarvey. All rights reserved.
9 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11 #ifndef _cheat_globals_H
12 #define _cheat_globals_H
14 #import <Cocoa/Cocoa.h>
16 #define TCDefaultListenPort (5007)
17 //#define TCDefaultListenPath "/tmp/com.brokenzipper.TheCheat"
18 // this path alone would work, but it *should* go in the user's home directory
19 char extern TCDefaultListenPath
[104];
21 #define TCMaxSearchResults (100000)
23 int extern TCGlobalDocumentCount
;
24 int extern TCGlobalAlternateBroadcastNameCount
;
25 char extern TCGlobalListening
;
27 char extern TCGlobalPlaySounds
;
28 char extern TCGlobalWindowsOnTop
;
29 char extern TCGlobalAllowRemote
;
30 int extern TCGlobalListenPort
;
31 #define TCGlobalBroadcastName ([[NSUserDefaults standardUserDefaults] objectForKey:TCBroadcastNamePref])
33 NSString
extern *TCPlaySoundsPref
;
34 NSString
extern *TCWindowsOnTopPref
;
35 NSString
extern *TCAllowRemotePref
;
36 NSString
extern *TCListenPortPref
;
37 NSString
extern *TCBroadcastNamePref
;