#pragma once
#include "ppsspp_config.h"
#include "Common/File/Path.h"
#include "Common/System/Request.h"
#define PreferredMemoryStickUserDefaultsKey "UserPreferredMemoryStickDirectoryPath"
typedef std::function<void (bool, Path)> DarwinDirectoryPanelCallback;
class DarwinFileSystemServices {
public:
static void presentDirectoryPanel(
DarwinDirectoryPanelCallback panelCallback,
bool allowFiles = false,
bool allowDirectories = true,
BrowseFileType fileType = BrowseFileType::ANY);
static Path appropriateMemoryStickDirectoryToUse();
static void setUserPreferredMemoryStickDirectory(Path);
static Path defaultMemoryStickPath();
static void ClearDelegate();
private:
#if PPSSPP_PLATFORM(IOS)
static void *__pickerDelegate;
#endif
};
void RestartMacApp();