Skip to content

Commit 3011147

Browse files
vlidholtjtwigg
authored andcommitted
Fixes Cocos2D to work with the latest project change for android
1 parent 73bec60 commit 3011147

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cocos2d-ui/CCBReader/CCBReader.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,19 @@ + (void) configureCCFileUtils
8585
@"", CCFileUtilsSuffixDefault,
8686
nil];
8787

88+
#if __CC_PLATFORM_ANDROID
89+
sharedFileUtils.searchPath =
90+
[NSArray arrayWithObjects:
91+
[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Published-Android"],
92+
[[NSBundle mainBundle] resourcePath],
93+
nil];
94+
#else
8895
sharedFileUtils.searchPath =
8996
[NSArray arrayWithObjects:
9097
[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Published-iOS"],
9198
[[NSBundle mainBundle] resourcePath],
9299
nil];
100+
#endif
93101

94102
sharedFileUtils.enableiPhoneResourcesOniPad = YES;
95103
sharedFileUtils.searchMode = CCFileUtilsSearchModeDirectory;

0 commit comments

Comments
 (0)