equal
deleted
inserted
replaced
27 #import <QuartzCore/QuartzCore.h> |
27 #import <QuartzCore/QuartzCore.h> |
28 #import "AudioToolbox/AudioToolbox.h" |
28 #import "AudioToolbox/AudioToolbox.h" |
29 #import "PascalImports.h" |
29 #import "PascalImports.h" |
30 |
30 |
31 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) { |
31 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) { |
32 if (IS_IPAD()) |
32 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) || |
33 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) || |
33 (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
34 (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
|
35 else |
|
36 return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
|
37 } |
34 } |
38 |
35 |
39 NSInteger inline randomPort () { |
36 NSInteger inline randomPort () { |
40 srandom(time(NULL)); |
37 srandom(time(NULL)); |
41 NSInteger res = (random() % 64511) + 1024; |
38 NSInteger res = (random() % 64511) + 1024; |