Make System_ShowFileInFolder a "request"

Also makes support queryable.

Lets us remove the dummy implementations.
This commit is contained in:
Henrik Rydgård committed 2023-08-24 14:22:35 +02:00
1 parent ca40de852a
commit 60492ae579
14 files changed
+76 -63

No files matched your search

+3 -1
View File
@@ -977,7 +977,9 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
if (System_GetPropertyBool(SYSPROP_HAS_OPEN_DIRECTORY)) {
systemSettings->Add(new Choice(sy->T("Show Memory Stick folder")))->OnClick.Add([](UI::EventParams &p) {
System_ShowFileInFolder(File::ResolvePath(g_Config.memStickDirectory.ToString()).c_str());
// TODO: Should build ResolvePath into System_ShowFileInFolder()?
std::string resolved = File::ResolvePath(g_Config.memStickDirectory.ToString());
System_ShowFileInFolder(Path(resolved));
return UI::EVENT_DONE;
});
}