Skip to content

Commit

Permalink
Fixed rom downloading bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamLCobb committed Dec 31, 2015
1 parent 47360d1 commit f0e7e42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions iNDS/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,9 @@ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceAppl
[fm moveItemAtPath:[dstDir stringByAppendingPathComponent:path] toPath:[self.batteryDir stringByAppendingPathComponent:path.lastPathComponent] error:NULL];
[foundItems addObject:path.lastPathComponent];
} else {
NSLog(@"Discarding: %@", path);
NSLog(@"Removing %@", [dstDir stringByAppendingPathComponent:path]);
[[NSFileManager defaultManager] removeItemAtPath:[dstDir stringByAppendingPathComponent:path] error:NULL];
}
NSLog(@"Removing %@", [dstDir stringByAppendingPathComponent:path]);
[[NSFileManager defaultManager] removeItemAtPath:[dstDir stringByAppendingPathComponent:path] error:NULL];
}
if (foundItems.count == 0) {
[self showError:@"No roms or saves found in archive."];
Expand Down
1 change: 1 addition & 0 deletions iNDS/iNDSRomDownloadManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ - (void) connectionDidFinishLoading:(NSURLConnection *)connection {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[AppDelegate.sharedInstance application:nil openURL:escapedPath sourceApplication:nil annotation:nil];
[_delegate removeDownload:self];
[[NSNotificationCenter defaultCenter] postNotificationName:iNDSGameSaveStatesChangedNotification object:self];
});

}
Expand Down
2 changes: 1 addition & 1 deletion iNDS/support/iNDS-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down

0 comments on commit f0e7e42

Please sign in to comment.