(iOS) Fixes:
Update the default directory used when file browser can't load a directory. Add a cancel button to controller type selection screen. Remove the HAVE_RGUI option. Until the main loop is updated all it does is cause the game to close. Don't show the controller type selection screen if bluetooth is already enabled. Remove unneeded None option for aspect ratio setting.
This commit is contained in:
parent
bb4b254be7
commit
8995ce2cb2
|
@ -543,15 +543,9 @@
|
|||
GCC_PREFIX_HEADER = "RetroArch/RetroArch-Prefix.pch";
|
||||
INFOPLIST_FILE = "RetroArch/RetroArch-Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)\"",
|
||||
"\"$(SRCROOT)/RetroArch/input/BTStack\"",
|
||||
);
|
||||
OTHER_CFLAGS = (
|
||||
"-DHAVE_RARCH_MAIN_WRAP",
|
||||
"-DHAVE_GRIFFIN",
|
||||
"-DHAVE_RGUI",
|
||||
"-DIOS",
|
||||
"-DHAVE_OPENGL",
|
||||
"-DHAVE_FBO",
|
||||
|
@ -585,17 +579,11 @@
|
|||
GCC_PREFIX_HEADER = "RetroArch/RetroArch-Prefix.pch";
|
||||
INFOPLIST_FILE = "RetroArch/RetroArch-Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)\"",
|
||||
"\"$(SRCROOT)/RetroArch/input/BTStack\"",
|
||||
);
|
||||
OTHER_CFLAGS = (
|
||||
"-DNS_BLOCK_ASSERTIONS=1",
|
||||
"-DNDEBUG",
|
||||
"-DHAVE_RARCH_MAIN_WRAP",
|
||||
"-DHAVE_GRIFFIN",
|
||||
"-DHAVE_RGUI",
|
||||
"-DIOS",
|
||||
"-DHAVE_OPENGL",
|
||||
"-DHAVE_FBO",
|
||||
|
|
|
@ -290,12 +290,12 @@
|
|||
|
||||
- (IBAction)startBluetooth
|
||||
{
|
||||
if (btstack_is_loaded())
|
||||
if (btstack_is_loaded() && !btstack_is_running())
|
||||
{
|
||||
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"RetroArch"
|
||||
message:@"Choose Pad Type"
|
||||
delegate:self
|
||||
cancelButtonTitle:nil
|
||||
cancelButtonTitle:@"Cancel"
|
||||
otherButtonTitles:@"Wii", @"PS3", nil];
|
||||
[alert show];
|
||||
}
|
||||
|
@ -305,10 +305,13 @@
|
|||
{
|
||||
if (btstack_is_loaded())
|
||||
{
|
||||
btpad_set_pad_type(buttonIndex == 0);
|
||||
btpad_set_pad_type(buttonIndex == alertView.firstOtherButtonIndex);
|
||||
|
||||
btstack_start();
|
||||
[self.topViewController.navigationItem setRightBarButtonItem:[self createBluetoothButton] animated:YES];
|
||||
if (buttonIndex != alertView.cancelButtonIndex)
|
||||
{
|
||||
btstack_start();
|
||||
[self.topViewController.navigationItem setRightBarButtonItem:[self createBluetoothButton] animated:YES];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,5 @@ NSString* ra_ios_check_path(NSString* path)
|
|||
if (path)
|
||||
[RetroArch_iOS displayErrorMessage:@"Browsed path is not a directory."];
|
||||
|
||||
if (ra_ios_is_directory(@"/var/mobile/RetroArchGames")) return @"/var/mobile/RetroArchGames";
|
||||
else if (ra_ios_is_directory(@"/var/mobile")) return @"/var/mobile";
|
||||
else return @"/";
|
||||
return [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
{
|
||||
RASettingData* _value;
|
||||
UITableView* _view;
|
||||
unsigned _mainSection;
|
||||
};
|
||||
|
||||
- (id)initWithSetting:(RASettingData*)setting fromTable:(UITableView*)table
|
||||
|
@ -27,6 +28,7 @@
|
|||
|
||||
_value = setting;
|
||||
_view = table;
|
||||
_mainSection = _value.haveNoneOption ? 1 : 0;
|
||||
|
||||
[self setTitle: _value.label];
|
||||
return self;
|
||||
|
@ -34,12 +36,12 @@
|
|||
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView*)tableView
|
||||
{
|
||||
return 2;
|
||||
return _value.haveNoneOption ? 2 : 1;
|
||||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section
|
||||
{
|
||||
return (section == 1) ? [_value.subValues count] : 1;
|
||||
return (section == _mainSection) ? _value.subValues.count : 1;
|
||||
}
|
||||
|
||||
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
@ -47,15 +49,15 @@
|
|||
UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:@"option"];
|
||||
cell = cell ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"option"];
|
||||
|
||||
cell.textLabel.text = (indexPath.section == 1) ? [_value.subValues objectAtIndex:indexPath.row] : @"None";
|
||||
cell.textLabel.text = (indexPath.section == _mainSection) ? _value.subValues[indexPath.row] : @"None";
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
_value.value = (indexPath.section == 1) ? [_value.subValues objectAtIndex:indexPath.row] : @"";
|
||||
|
||||
_value.value = (indexPath.section == _mainSection) ? _value.subValues[indexPath.row] : @"";
|
||||
|
||||
[_view reloadData];
|
||||
[[RetroArch_iOS get] popViewControllerAnimated:YES];
|
||||
}
|
||||
|
|
|
@ -81,6 +81,7 @@ static RASettingData* subpath_setting(config_file_t* config, NSString* name, NSS
|
|||
result.value = value;
|
||||
result.subValues = values;
|
||||
result.path = path;
|
||||
result.haveNoneOption = true;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,8 @@ enum SettingTypes
|
|||
@property double rangeMin;
|
||||
@property double rangeMax;
|
||||
|
||||
@property bool haveNoneOption;
|
||||
|
||||
- (id)initWithType:(enum SettingTypes)aType label:(NSString*)aLabel name:(NSString*)aName;
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue