18 #define DEBUG_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
18 #define DEBUG_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
19 objectAtIndex:0] stringByAppendingString:@"/debug.txt"] |
19 objectAtIndex:0] stringByAppendingString:@"/debug.txt"] |
20 |
20 |
21 #define TEAMS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
21 #define TEAMS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
22 objectAtIndex:0] stringByAppendingString:@"/Teams/"] |
22 objectAtIndex:0] stringByAppendingString:@"/Teams/"] |
|
23 #define WEAPONS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
24 objectAtIndex:0] stringByAppendingString:@"/Weapons/"] |
23 #define SCHEMES_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
25 #define SCHEMES_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
24 objectAtIndex:0] stringByAppendingString:@"/Schemes/"] |
26 objectAtIndex:0] stringByAppendingString:@"/Schemes/"] |
25 |
27 |
26 #define GRAPHICS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"] |
28 #define GRAPHICS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"] |
27 #define HATS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"] |
29 #define HATS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"] |
36 |
38 |
37 #define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); print_free_memory() |
39 #define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); print_free_memory() |
38 #define MSG_DIDUNLOAD() DLog(@"did unload"); |
40 #define MSG_DIDUNLOAD() DLog(@"did unload"); |
39 |
41 |
40 void createTeamNamed (NSString *nameWithoutExt); |
42 void createTeamNamed (NSString *nameWithoutExt); |
|
43 void createWeaponNamed (NSString *nameWithoutExt); |
41 void createSchemeNamed (NSString *nameWithoutExt); |
44 void createSchemeNamed (NSString *nameWithoutExt); |
42 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
45 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
43 NSInteger randomPort (); |
46 NSInteger randomPort (); |
44 void popError (const char *title, const char *message); |
47 void popError (const char *title, const char *message); |
45 void print_free_memory (); |
48 void print_free_memory (); |