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 2983112 commit c4e9f0eCopy full SHA for c4e9f0e
cocos2d/CCPackageDownloadManager.m
@@ -60,11 +60,23 @@ - (void)setDownloadPath:(NSString *)downloadPath
60
61
- (void)enqueuePackageForDownload:(CCPackage *)package
62
{
63
+ if (package.status == CCPackageStatusDownloadPaused)
64
+ {
65
+ [self resumeDownloadOfPackage:package];
66
+ return;
67
+ }
68
+
69
if ([self packageDownloadForPackage:package])
70
71
return;
72
}
73
74
+ if (!(package.status == CCPackageStatusDownloadFailed
75
+ || package.status == CCPackageStatusInitial))
76
77
78
79
80
NSString *fileName = [[package standardIdentifier] stringByAppendingPathExtension:@"zip"];
81
82
CCPackageDownload *packageDownload = [[CCPackageDownload alloc] initWithPackage:package
0 commit comments