We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78478e2 commit b66ab58Copy full SHA for b66ab58
cocos2d/CCPackageHelper.m
@@ -1,23 +1,20 @@
1
#import <MacTypes.h>
2
#import "CCPackageHelper.h"
3
#import "CCFileUtils.h"
4
+#import "ccMacros.h"
5
6
7
@implementation CCPackageHelper
8
9
+ (NSString *)currentOS
10
{
-#ifdef __CC_PLATFORM_IOS
11
- return @"iOS";
12
-
13
-#elif defined(__CC_PLATFORM_MAC)
14
- return @"Mac";
15
16
-#elif defined(__CC_PLATFORM_ANDROID)
+#if __CC_PLATFORM_ANDROID
17
return @"Android";
18
19
-#endif
+#elif __CC_PLATFORM_MAC
+ return @"Mac";
+#else
20
return @"iOS";
+#endif
21
}
22
23
+ (NSString *)ccFileUtilsSuffixToResolution:(NSString *)suffix
0 commit comments