Skip to content

Commit 65a3394

Browse files
committed
Mac test support
1 parent c0f043d commit 65a3394

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cocos2d-ui-tests/ios/AppController.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ - (NSDictionary*)iosConfig
4747
};
4848
}
4949

50+
- (NSDictionary*)macConfig
51+
{
52+
NSMutableDictionary *config = [super macConfig];
53+
config[CCSetupDepthFormat] = @GL_DEPTH24_STENCIL8;
54+
config[CCSetupTabletScale2X] = @YES;
55+
config[CCSetupShowDebugStats] = @(getenv("SHOW_DEBUG_STATS") != nil);
56+
57+
return config;
58+
}
59+
5060
- (void)configureFileUtilsSearchPathAndRegisterSpriteSheets
5161
{
5262
[[NSUserDefaults standardUserDefaults] setValue:nil forKey:PACKAGE_STORAGE_USERDEFAULTS_KEY];

0 commit comments

Comments
 (0)