mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
Rename get_ios_version_major
This commit is contained in:
parent
2c53d57e9e
commit
6c5489e9c8
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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)])
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user