Rename get_ios_version_major

This commit is contained in:
twinaphex 2015-04-13 18:20:05 +02:00
parent 2c53d57e9e
commit 6c5489e9c8
4 changed files with 6 additions and 6 deletions

View File

@ -342,7 +342,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
UIActionSheet *menu; UIActionSheet *menu;
NSString *button4_name, *button5_name; NSString *button4_name, *button5_name;
get_ios_version_major(&major, &minor); get_ios_version(&major, &minor);
button4_name = (major >= 7) ? BOXSTRING("AirDrop") : BOXSTRING("Delete"); button4_name = (major >= 7) ? BOXSTRING("AirDrop") : BOXSTRING("Delete");
button5_name = (major >= 7) ? BOXSTRING("Delete") : nil; button5_name = (major >= 7) ? BOXSTRING("Delete") : nil;
@ -366,7 +366,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
NSString* target = self.selectedItem.path; NSString* target = self.selectedItem.path;
NSString* action = [actionSheet buttonTitleAtIndex:buttonIndex]; NSString* action = [actionSheet buttonTitleAtIndex:buttonIndex];
get_ios_version_major(&major, &minor); get_ios_version(&major, &minor);
(void)major; (void)major;
(void)minor; (void)minor;

View File

@ -49,6 +49,6 @@ extern apple_frontend_settings_t apple_frontend_settings;
- (void)refreshSystemConfig; - (void)refreshSystemConfig;
@end @end
void get_ios_version_major(int *major, int *minor); void get_ios_version(int *major, int *minor);
#endif #endif

View File

@ -68,7 +68,7 @@ void apple_rarch_exited(void)
apple_frontend_settings_t apple_frontend_settings; apple_frontend_settings_t apple_frontend_settings;
void get_ios_version_major(int *major, int *minor) void get_ios_version(int *major, int *minor)
{ {
NSArray *decomposed_os_version = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."]; NSArray *decomposed_os_version = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
@ -206,7 +206,7 @@ enum
if (event.allTouches.count) if (event.allTouches.count)
handle_touch_event(event.allTouches.allObjects); handle_touch_event(event.allTouches.allObjects);
get_ios_version_major(&major, &minor); get_ios_version(&major, &minor);
if (!(major >= 7) && [event respondsToSelector:@selector(_gsEvent)]) if (!(major >= 7) && [event respondsToSelector:@selector(_gsEvent)])
{ {

View File

@ -27,7 +27,7 @@ enum
static bool apple_gamecontroller_available(void) static bool apple_gamecontroller_available(void)
{ {
int major, minor; int major, minor;
get_ios_version_major(&major, &minor); get_ios_version(&major, &minor);
if (major <= 6) if (major <= 6)
return false; return false;