mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
806cca44ca
The file browser will start in the directory of the currently seleected file. The setting menu will display only the filename instead of the full path. Path settings can specify a list of extensions to search for.
50 lines
1.6 KiB
Objective-C
50 lines
1.6 KiB
Objective-C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2013 - Jason Fetters
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _RARCH_APPLE_VIEWS_H
|
|
#define _RARCH_APPLE_VIEWS_H
|
|
|
|
#include <UIKit/UIKit.h>
|
|
#include "core_info.h"
|
|
|
|
|
|
// browser.m
|
|
@class RADirectoryItem;
|
|
@protocol RADirectoryListDelegate
|
|
- (bool)directoryList:(id)list itemWasSelected:(RADirectoryItem*)path;
|
|
@end
|
|
|
|
#include "menu.h"
|
|
|
|
// browser.m
|
|
@interface RADirectoryItem : NSObject<RAMenuItemBase>
|
|
@property (nonatomic) NSString* path;
|
|
@property (nonatomic) bool isDirectory;
|
|
@end
|
|
|
|
@interface RADirectoryList : RAMenuBase<UIActionSheetDelegate>
|
|
@property (nonatomic, weak) id<RADirectoryListDelegate> directoryDelegate;
|
|
@property (nonatomic, weak) RADirectoryItem* selectedItem;
|
|
- (id)initWithPath:(NSString*)path extensions:(const char*)extensions forDirectory:(bool)forDirectory delegate:(id<RADirectoryListDelegate>)delegate;
|
|
- (void)browseTo:(NSString*)path;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RAFoldersList : RAMenuBase
|
|
- (id) initWithFilePath:(NSString*)path;
|
|
@end
|
|
|
|
#endif
|