Merge pull request #16874 from SerenaKit/serena/darwin-browse-button

Browse button on Darwin platforms, rename some classes/functions
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-02-01 17:21:53 +01:00
commit ce40744cdd
8 files changed
+101 -51

No files matched your search

+3 -3
View File
@@ -76,7 +76,7 @@
#include "GPU/Common/FramebufferManagerCommon.h"
#if PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS)
#include "UI/DarwinMemoryStickManager.h"
#include "UI/DarwinFileSystemServices.h"
#endif
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
@@ -1228,9 +1228,9 @@ UI::EventReturn GameSettingsScreen::OnJitAffectingSetting(UI::EventParams &e) {
UI::EventReturn GameSettingsScreen::OnChangeMemStickDir(UI::EventParams &e) {
#if PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS)
DarwinMemoryStickManager memoryStickManager;
DarwinFileSystemServices memoryStickManager;
DarwinDirectoryPanelCallback callback = [] (Path thePathChosen) {
DarwinMemoryStickManager::setUserPreferredMemoryStickDirectory(thePathChosen);
DarwinFileSystemServices::setUserPreferredMemoryStickDirectory(thePathChosen);
};
memoryStickManager.presentDirectoryPanel(callback);