mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
SDL buildfix, fix file/folder browsers on Darwin
This commit is contained in:
1 parent
b7350f3cbf
commit
dfa06c4e77
5 files changed
+48
-20
No files matched your search
@@ -1233,12 +1233,9 @@ UI::EventReturn GameSettingsScreen::OnJitAffectingSetting(UI::EventParams &e) {
|
||||
|
||||
UI::EventReturn GameSettingsScreen::OnChangeMemStickDir(UI::EventParams &e) {
|
||||
#if PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS)
|
||||
DarwinFileSystemServices memoryStickManager;
|
||||
DarwinDirectoryPanelCallback callback = [] (Path thePathChosen) {
|
||||
DarwinFileSystemServices::setUserPreferredMemoryStickDirectory(thePathChosen);
|
||||
};
|
||||
|
||||
memoryStickManager.presentDirectoryPanel(callback);
|
||||
System_BrowseForFolder("", [](const std::string &value, int) {
|
||||
DarwinFileSystemServices::setUserPreferredMemoryStickDirectory(Path(value));
|
||||
});
|
||||
#else
|
||||
screenManager()->push(new MemStickScreen(false));
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user