mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #17996 from hrydgard/address-some-feedback
Address some feedback
This commit is contained in:
commit
cffdd9933f
2 changed files with 6 additions and 4 deletions
|
@ -548,7 +548,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
|
|||
bool System_GetPropertyBool(SystemProperty prop) {
|
||||
switch (prop) {
|
||||
case SYSPROP_CAN_SHOW_FILE:
|
||||
#if PPSSPP_PLATFORM(WINDOWS) || PPSSPP_PLATFORM(MAC) || (PPSSPP_PLATFORM(LINUX) && !PPSSPP_PLATFORM(ANDROID))
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
case SYSPROP_HAS_OPEN_DIRECTORY:
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
return true;
|
||||
|
@ -569,7 +573,7 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
|||
#endif
|
||||
case SYSPROP_CAN_JIT:
|
||||
return true;
|
||||
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
|
||||
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
|
||||
return true; // FileUtil.cpp: OpenFileInEditor
|
||||
#ifndef HTTPS_NOT_AVAILABLE
|
||||
case SYSPROP_SUPPORTS_HTTPS:
|
||||
|
|
|
@ -977,9 +977,7 @@ 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) {
|
||||
// TODO: Should build ResolvePath into System_ShowFileInFolder()?
|
||||
std::string resolved = File::ResolvePath(g_Config.memStickDirectory.ToString());
|
||||
System_ShowFileInFolder(Path(resolved));
|
||||
System_ShowFileInFolder(g_Config.memStickDirectory);
|
||||
return UI::EVENT_DONE;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue