mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
UI: allow editing cheat file on any Unix desktop
This commit is contained in:
1 parent
0af2bfe11c
commit
bd4b0840a3
1 file changed
+5
-5
@@ -72,7 +72,7 @@ void CwCheatScreen::CreateViews() {
|
||||
leftColumn->Add(new Choice(d->T("Back")))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
//leftColumn->Add(new Choice(k->T("Add Cheat")))->OnClick.Handle(this, &CwCheatScreen::OnAddCheat);
|
||||
leftColumn->Add(new Choice(k->T("Import Cheats")))->OnClick.Handle(this, &CwCheatScreen::OnImportCheat);
|
||||
#if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
|
||||
#if !defined(MOBILE_DEVICE)
|
||||
leftColumn->Add(new Choice(k->T("Edit Cheat File")))->OnClick.Handle(this, &CwCheatScreen::OnEditCheatFile);
|
||||
#endif
|
||||
leftColumn->Add(new Choice(k->T("Enable/Disable All")))->OnClick.Handle(this, &CwCheatScreen::OnEnableAll);
|
||||
@@ -180,11 +180,11 @@ UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
||||
if (!retval) {
|
||||
ERROR_LOG(COMMON, "Failed creating notepad process");
|
||||
}
|
||||
#elif defined(__APPLE__) || defined(__linux__)
|
||||
#if defined(__linux__)
|
||||
cheatFile = "xdg-open ";
|
||||
#elif defined(__APPLE__)
|
||||
#elif !defined(MOBILE_DEVICE)
|
||||
#if defined(__APPLE__)
|
||||
cheatFile = "open ";
|
||||
#else
|
||||
cheatFile = "xdg-open ";
|
||||
#endif
|
||||
cheatFile.append(activeCheatFile);
|
||||
NOTICE_LOG(BOOT, "Launching %s", cheatFile.c_str());
|
||||
|
||||
Reference in new issue
Block a user