X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=cheat_globals.h;fp=cheat_globals.h;h=03bad61731249a933e9129c9221a35022fff97b6;hp=0000000000000000000000000000000000000000;hb=42cf7bbe564d70233a0d73baee613f209eb00eb6;hpb=2d60a59a8ad195dd0af8f90c8d5b74a69ce7f4fa diff --git a/cheat_globals.h b/cheat_globals.h new file mode 100644 index 0000000..03bad61 --- /dev/null +++ b/cheat_globals.h @@ -0,0 +1,40 @@ + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// Project: The Cheat +// +// File: cheat_globals.h +// Created: Fri Sep 19 2003 +// +// Copyright: 2003 Chaz McGarvey. All rights reserved. +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +#ifndef _cheat_globals_H +#define _cheat_globals_H + +#import + +#define TCDefaultListenPort (5007) +//#define TCDefaultListenPath "/tmp/com.brokenzipper.TheCheat" +// this path alone would work, but it *should* go in the user's home directory +char extern TCDefaultListenPath[104]; + +#define TCMaxSearchResults (100000) + +int extern TCGlobalDocumentCount; +int extern TCGlobalAlternateBroadcastNameCount; +char extern TCGlobalListening; + +char extern TCGlobalPlaySounds; +char extern TCGlobalWindowsOnTop; +char extern TCGlobalAllowRemote; +int extern TCGlobalListenPort; +#define TCGlobalBroadcastName ([[NSUserDefaults standardUserDefaults] objectForKey:TCBroadcastNamePref]) + +NSString extern *TCPlaySoundsPref; +NSString extern *TCWindowsOnTopPref; +NSString extern *TCAllowRemotePref; +NSString extern *TCListenPortPref; +NSString extern *TCBroadcastNamePref; + +#endif +