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;
NSString *button4_name, *button5_name;
get_ios_version_major(&major, &minor);
get_ios_version(&major, &minor);
button4_name = (major >= 7) ? BOXSTRING("AirDrop") : BOXSTRING("Delete");
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* action = [actionSheet buttonTitleAtIndex:buttonIndex];
get_ios_version_major(&major, &minor);
get_ios_version(&major, &minor);
(void)major;
(void)minor;

View File

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

View File

@ -68,7 +68,7 @@ void apple_rarch_exited(void)
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:@"."];
@ -206,7 +206,7 @@ enum
if (event.allTouches.count)
handle_touch_event(event.allTouches.allObjects);
get_ios_version_major(&major, &minor);
get_ios_version(&major, &minor);
if (!(major >= 7) && [event respondsToSelector:@selector(_gsEvent)])
{

View File

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