mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
a96e813fe1
don't let a branch get out of date for this long - merging it by hand was not pretty
50 lines
1.5 KiB
Objective-C
50 lines
1.5 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 delegate:(id<RADirectoryListDelegate>)delegate;
|
|
- (void)browseTo:(NSString*)path;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RAFoldersList : RAMenuBase
|
|
- (id) initWithFilePath:(NSString*)path;
|
|
@end
|
|
|
|
#endif
|