mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
(Apple) Style nits
This commit is contained in:
parent
9d00e3af1b
commit
b248834053
@ -411,20 +411,21 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
|
||||
// Parent item
|
||||
NSString* sourceItem = _path.stringByDeletingLastPathComponent;
|
||||
|
||||
RAMenuItemBasic* parentItem = [RAMenuItemBasic itemWithDescription:@"<Parent>" association:sourceItem.stringByDeletingLastPathComponent
|
||||
RAMenuItemBasic* parentItem = [RAMenuItemBasic itemWithDescription:BOXSTRING("<Parent>") association:sourceItem.stringByDeletingLastPathComponent
|
||||
action:^(id userdata){ [weakSelf moveInto:userdata]; } detail:NULL];
|
||||
[self.sections addObject:@[@"", parentItem]];
|
||||
[self.sections addObject:@[BOXSTRING(""), parentItem]];
|
||||
|
||||
|
||||
// List contents
|
||||
struct string_list* contents = dir_list_new([_path stringByDeletingLastPathComponent].UTF8String, 0, true);
|
||||
NSMutableArray* items = [NSMutableArray arrayWithObject:@""];
|
||||
NSMutableArray* items = [NSMutableArray arrayWithObject:BOXSTRING("")];
|
||||
|
||||
if (contents)
|
||||
{
|
||||
int i;
|
||||
dir_list_sort(contents, true);
|
||||
|
||||
for (int i = 0; i < contents->size; i ++)
|
||||
for (i = 0; i < contents->size; i ++)
|
||||
{
|
||||
if (contents->elems[i].attr.b)
|
||||
{
|
||||
@ -439,7 +440,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
|
||||
dir_list_free(contents);
|
||||
}
|
||||
|
||||
[self setTitle:[@"Move " stringByAppendingString:_path.lastPathComponent]];
|
||||
[self setTitle:[BOXSTRING("Move ") stringByAppendingString:_path.lastPathComponent]];
|
||||
|
||||
[self.sections addObject:items];
|
||||
}
|
||||
|
@ -115,12 +115,11 @@ void ios_set_logging_state(const char *log_path, bool on)
|
||||
static void handle_touch_event(NSArray* touches)
|
||||
{
|
||||
int i;
|
||||
unsigned long numTouches = touches.count;
|
||||
const float scale = [[UIScreen mainScreen] scale];
|
||||
|
||||
g_current_input_data.touch_count = 0;
|
||||
|
||||
for(i = 0; i != numTouches && g_current_input_data.touch_count < MAX_TOUCHES; i ++)
|
||||
for(i = 0; i < touches.count && g_current_input_data.touch_count < MAX_TOUCHES; i ++)
|
||||
{
|
||||
UITouch* touch = [touches objectAtIndex:i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user