(Apple) Add some extra location manager logging.

This commit is contained in:
meancoot 2013-12-26 13:27:49 -05:00
parent a473154373
commit 2bfcb8e4e8
2 changed files with 17 additions and 4 deletions

View File

@ -365,7 +365,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
{
locationChanged = true;
CLLocation *location = [locations objectAtIndex:([locations count]-1)];
CLLocation *location = [locations objectAtIndex:([locations count] - 1)];
currentLatitude = [location coordinate].latitude;
currentLongitude = [location coordinate].longitude;
currentHorizontalAccuracy = [location horizontalAccuracy];
@ -373,6 +373,21 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
RARCH_LOG("didUpdateLocations - latitude %f, longitude %f\n", (float)currentLatitude, (float)currentLongitude);
}
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
{
RARCH_LOG("didFailWithError - %s\n", [[error localizedDescription] UTF8String]);
}
- (void)locationManagerDidPauseLocationUpdates:(CLLocationManager *)manager
{
RARCH_LOG("didPauseLocationUpdates\n");
}
- (void)locationManagerDidResumeLocationUpdates:(CLLocationManager *)manager
{
RARCH_LOG("didResumeLocationUpdates\n");
}
- (void)onLocationInit
{
// Create the location manager if this object does not

View File

@ -532,9 +532,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
}
- (void)loadGame
{
NSString* rootPath = RetroArch_iOS.get.documentsDirectory;
{
RAMainMenu __weak* weakSelf = self;
RADirectoryList* list = [[RADirectoryList alloc] initWithPath:RetroArch_iOS.get.documentsDirectory extensions:NULL action: