mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-16 07:29:53 +00:00
(Apple) Add some extra location manager logging.
This commit is contained in:
parent
a473154373
commit
2bfcb8e4e8
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user