2023-04-29 17:44:22 -04:00
From 82e98cf24808754578ab26adef5c33acc949f75e Mon Sep 17 00:00:00 2001
2021-09-25 03:27:02 -04:00
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-06-05 23:16:07 -04:00
Date: Sat, 5 Jun 2021 22:47:00 -0400
Subject: [PATCH] ppsspp: Remove upgrade code and gold support.
2020-06-29 06:06:50 -04:00
2021-09-25 03:27:02 -04:00
Original patch from Liliana Marie Prikler.
2021-06-05 23:16:07 -04:00
Rebased on master (commit 69fa20744958aef8da9ca052ba7675fdc1636e46) by
Maxim Cournoyer.
2023-04-29 17:44:22 -04:00
Revised again by Liliana Marie Prikler for versions 1.12.3 and 1.14.4.
2020-06-29 06:06:50 -04:00
---
2022-01-23 09:30:00 -05:00
Common/System/System.h | 1 -
Core/Config.cpp | 12 -------
2020-06-29 06:06:50 -04:00
Core/Config.h | 2 --
Qt/QtMain.cpp | 6 ----
2022-01-23 09:30:00 -05:00
Qt/mainwindow.cpp | 6 ----
Qt/mainwindow.h | 1 -
2020-06-29 06:06:50 -04:00
SDL/SDLMain.cpp | 6 ----
UI/DevScreens.cpp | 3 --
2023-04-29 17:44:22 -04:00
UI/GameSettingsScreen.cpp | 2 --
UI/MainScreen.cpp | 71 +------------------------------------
2022-01-23 09:30:00 -05:00
UI/MemStickScreen.cpp | 8 -----
2023-04-29 17:44:22 -04:00
UI/MiscScreens.cpp | 33 +++--------------
2020-06-29 06:06:50 -04:00
UWP/PPSSPP_UWPMain.cpp | 6 ----
2022-01-23 09:30:00 -05:00
Windows/MainWindowMenu.cpp | 8 +----
2020-06-29 06:06:50 -04:00
Windows/main.cpp | 6 ----
2022-01-23 09:30:00 -05:00
Windows/resource.h | 1 -
2020-06-29 06:06:50 -04:00
android/jni/app-android.cpp | 6 ----
2021-06-05 23:16:07 -04:00
ios/main.mm | 6 ----
2023-04-29 17:44:22 -04:00
18 files changed, 6 insertions(+), 178 deletions(-)
2020-06-29 06:06:50 -04:00
2022-01-23 09:30:00 -05:00
diff --git a/Common/System/System.h b/Common/System/System.h
2023-04-29 17:44:22 -04:00
index 6f1524ab0..cbc51c840 100644
2022-01-23 09:30:00 -05:00
--- a/Common/System/System.h
+++ b/Common/System/System.h
2023-04-29 17:44:22 -04:00
@@ -91,7 +91,6 @@ enum SystemProperty {
2022-01-23 09:30:00 -05:00
SYSPROP_DISPLAY_SAFE_INSET_BOTTOM,
SYSPROP_DEVICE_TYPE,
- SYSPROP_APP_GOLD, // To avoid having #ifdef GOLD other than in main.cpp and similar.
// Exposed on Android. Choosing the optimal sample rate for audio
// will result in lower latencies. Buffer size is automatically matched
2020-06-29 06:06:50 -04:00
diff --git a/Core/Config.cpp b/Core/Config.cpp
2023-04-29 17:44:22 -04:00
index 4971f9a8d..8a8386c0a 100644
2020-06-29 06:06:50 -04:00
--- a/Core/Config.cpp
+++ b/Core/Config.cpp
2023-04-29 17:44:22 -04:00
@@ -534,7 +534,6 @@ static ConfigSetting generalSettings[] = {
2020-06-29 06:06:50 -04:00
ConfigSetting("IgnoreBadMemAccess", &g_Config.bIgnoreBadMemAccess, true, true),
ConfigSetting("CurrentDirectory", &g_Config.currentDirectory, ""),
ConfigSetting("ShowDebuggerOnLoad", &g_Config.bShowDebuggerOnLoad, false),
- ConfigSetting("CheckForNewVersion", &g_Config.bCheckForNewVersion, true),
ConfigSetting("Language", &g_Config.sLanguageIni, &DefaultLangRegion),
ConfigSetting("ForceLagSync2", &g_Config.bForceLagSync, false, true, true),
ConfigSetting("DiscordPresence", &g_Config.bDiscordPresence, true, true, false), // Or maybe it makes sense to have it per-game? Race conditions abound...
2023-04-29 17:44:22 -04:00
@@ -1453,17 +1452,6 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
upgradeMessage.clear();
2020-06-29 06:06:50 -04:00
}
- // Check for new version on every 10 runs.
- // Sometimes the download may not be finished when the main screen shows (if the user dismisses the
- // splash screen quickly), but then we'll just show the notification next time instead, we store the
- // upgrade number in the ini.
- if (iRunCount % 10 == 0 && bCheckForNewVersion) {
2022-01-23 09:30:00 -05:00
- const char *versionUrl = "http://www.ppsspp.org/version.json";
- const char *acceptMime = "application/json, text/*; q=0.9, */*; q=0.8";
- auto dl = g_DownloadManager.StartDownloadWithCallback(versionUrl, Path(), &DownloadCompletedCallback, acceptMime);
2020-06-29 06:06:50 -04:00
- dl->SetHidden(true);
- }
-
INFO_LOG(LOADER, "Loading controller config: %s", controllerIniFilename_.c_str());
bSaveSettings = true;
diff --git a/Core/Config.h b/Core/Config.h
2023-04-29 17:44:22 -04:00
index 8f10a5089..5e4054be1 100644
2020-06-29 06:06:50 -04:00
--- a/Core/Config.h
+++ b/Core/Config.h
2023-04-29 17:44:22 -04:00
@@ -113,7 +113,6 @@ struct Config {
2021-02-15 10:02:43 -05:00
2020-06-29 06:06:50 -04:00
bool bFastMemory;
int iCpuCore;
- bool bCheckForNewVersion;
bool bForceLagSync;
bool bFuncReplacements;
bool bHideSlowWarnings;
2023-04-29 17:44:22 -04:00
@@ -596,4 +595,3 @@ std::string CreateRandMAC();
2020-06-29 06:06:50 -04:00
// TODO: Find a better place for this.
extern http::Downloader g_DownloadManager;
extern Config g_Config;
-
diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp
2023-04-29 17:44:22 -04:00
index f5a930061..d966d79ea 100644
2020-06-29 06:06:50 -04:00
--- a/Qt/QtMain.cpp
+++ b/Qt/QtMain.cpp
2023-04-29 17:44:22 -04:00
@@ -238,12 +238,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2020-06-29 06:06:50 -04:00
return true;
2023-04-29 17:44:22 -04:00
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
return true; // FileUtil.cpp: OpenFileInEditor
2020-06-29 06:06:50 -04:00
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
2021-06-05 23:16:07 -04:00
case SYSPROP_CAN_JIT:
return true;
2023-04-29 17:44:22 -04:00
case SYSPROP_HAS_KEYBOARD:
2022-01-23 09:30:00 -05:00
diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp
2023-04-29 17:44:22 -04:00
index 26707a76e..aae5fe133 100644
2022-01-23 09:30:00 -05:00
--- a/Qt/mainwindow.cpp
+++ b/Qt/mainwindow.cpp
2023-04-29 17:44:22 -04:00
@@ -421,11 +421,6 @@ void MainWindow::forumAct()
2022-01-23 09:30:00 -05:00
QDesktopServices::openUrl(QUrl("https://forums.ppsspp.org/"));
}
-void MainWindow::goldAct()
-{
- QDesktopServices::openUrl(QUrl("https://central.ppsspp.org/buygold"));
-}
-
void MainWindow::gitAct()
{
QDesktopServices::openUrl(QUrl("https://github.com/hrydgard/ppsspp/"));
2023-04-29 17:44:22 -04:00
@@ -673,7 +668,6 @@ void MainWindow::createMenus()
2022-01-23 09:30:00 -05:00
MenuTree* helpMenu = new MenuTree(this, menuBar(), QT_TR_NOOP("&Help"));
helpMenu->add(new MenuAction(this, SLOT(websiteAct()), QT_TR_NOOP("Visit www.&ppsspp.org")));
helpMenu->add(new MenuAction(this, SLOT(forumAct()), QT_TR_NOOP("PPSSPP &forums")));
- helpMenu->add(new MenuAction(this, SLOT(goldAct()), QT_TR_NOOP("Buy &Gold")));
helpMenu->add(new MenuAction(this, SLOT(gitAct()), QT_TR_NOOP("Git&Hub")));
helpMenu->add(new MenuAction(this, SLOT(discordAct()), QT_TR_NOOP("Discord")));
helpMenu->addSeparator();
diff --git a/Qt/mainwindow.h b/Qt/mainwindow.h
2023-04-29 17:44:22 -04:00
index 705a3dd00..4c8abe452 100644
2022-01-23 09:30:00 -05:00
--- a/Qt/mainwindow.h
+++ b/Qt/mainwindow.h
2023-04-29 17:44:22 -04:00
@@ -189,7 +189,6 @@ private slots:
2022-01-23 09:30:00 -05:00
// Help
void websiteAct();
void forumAct();
- void goldAct();
void gitAct();
void discordAct();
void aboutAct();
2020-06-29 06:06:50 -04:00
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
2023-04-29 17:44:22 -04:00
index 415860069..a8a2285be 100644
2020-06-29 06:06:50 -04:00
--- a/SDL/SDLMain.cpp
+++ b/SDL/SDLMain.cpp
2023-04-29 17:44:22 -04:00
@@ -415,12 +415,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2020-06-29 06:06:50 -04:00
switch (prop) {
case SYSPROP_HAS_BACK_BUTTON:
return true;
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
2021-06-05 23:16:07 -04:00
case SYSPROP_CAN_JIT:
return true;
2023-04-29 17:44:22 -04:00
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
2020-06-29 06:06:50 -04:00
diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp
2023-04-29 17:44:22 -04:00
index 568cc7c2f..051f147e2 100644
2020-06-29 06:06:50 -04:00
--- a/UI/DevScreens.cpp
+++ b/UI/DevScreens.cpp
2023-04-29 17:44:22 -04:00
@@ -691,9 +691,6 @@ void SystemInfoScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
#ifdef _M_SSE
buildConfig->Add(new InfoItem("_M_SSE", StringFromFormat("0x%x", _M_SSE)));
#endif
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
- buildConfig->Add(new InfoItem("GOLD", ""));
- }
ViewGroup *cpuExtensionsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
cpuExtensionsScroll->SetTag("DevSystemInfoCPUExt");
diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp
2023-04-29 17:44:22 -04:00
index e0d12bc97..1e63d5d9d 100644
2020-06-29 06:06:50 -04:00
--- a/UI/GameSettingsScreen.cpp
+++ b/UI/GameSettingsScreen.cpp
2023-04-29 17:44:22 -04:00
@@ -1004,8 +1004,6 @@ void GameSettingsScreen::CreateViews() {
2021-02-15 10:02:43 -05:00
}
2020-06-29 06:06:50 -04:00
}
#endif
- systemSettings->Add(new CheckBox(&g_Config.bCheckForNewVersion, sy->T("VersionCheck", "Check for new versions of PPSSPP")));
2023-04-29 17:44:22 -04:00
-
2021-06-05 23:16:07 -04:00
systemSettings->Add(new Choice(sy->T("Restore Default Settings")))->OnClick.Handle(this, &GameSettingsScreen::OnRestoreDefaultSettings);
systemSettings->Add(new CheckBox(&g_Config.bEnableStateUndo, sy->T("Savestate slot backups")));
2023-04-29 17:44:22 -04:00
static const char *autoLoadSaveStateChoices[] = { "Off", "Oldest Save", "Newest Save", "Slot 1", "Slot 2", "Slot 3", "Slot 4", "Slot 5" };
2020-06-29 06:06:50 -04:00
diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp
2023-04-29 17:44:22 -04:00
index cc273ebbd..6623025de 100644
2020-06-29 06:06:50 -04:00
--- a/UI/MainScreen.cpp
+++ b/UI/MainScreen.cpp
2023-04-29 17:44:22 -04:00
@@ -1111,11 +1111,7 @@ void MainScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
sprintf(versionString, "%s", PPSSPP_GIT_VERSION);
rightColumnItems->SetSpacing(0.0f);
2021-02-15 10:02:43 -05:00
AnchorLayout *logos = new AnchorLayout(new AnchorLayoutParams(FILL_PARENT, 60.0f, false));
2020-06-29 06:06:50 -04:00
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
2021-06-05 23:16:07 -04:00
- logos->Add(new ImageView(ImageID("I_ICONGOLD"), "", IS_DEFAULT, new AnchorLayoutParams(64, 64, 0, 0, NONE, NONE, false)));
2020-06-29 06:06:50 -04:00
- } else {
2021-06-05 23:16:07 -04:00
- logos->Add(new ImageView(ImageID("I_ICON"), "", IS_DEFAULT, new AnchorLayoutParams(64, 64, 0, 0, NONE, NONE, false)));
2020-06-29 06:06:50 -04:00
- }
2021-06-05 23:16:07 -04:00
+ logos->Add(new ImageView(ImageID("I_ICON"), "", IS_DEFAULT, new AnchorLayoutParams(64, 64, 0, 0, NONE, NONE, false)));
logos->Add(new ImageView(ImageID("I_LOGO"), "PPSSPP", IS_DEFAULT, new AnchorLayoutParams(180, 64, 64, -5.0f, NONE, NONE, false)));
2021-02-15 10:02:43 -05:00
#if !defined(MOBILE_DEVICE)
2023-04-29 17:44:22 -04:00
@@ -1140,12 +1136,6 @@ void MainScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
rightColumnItems->Add(new Choice(mm->T("Credits")))->OnClick.Handle(this, &MainScreen::OnCredits);
rightColumnItems->Add(new Choice(mm->T("www.ppsspp.org")))->OnClick.Handle(this, &MainScreen::OnPPSSPPOrg);
2023-04-29 17:44:22 -04:00
- if (!System_GetPropertyBool(SYSPROP_APP_GOLD) && (System_GetPropertyInt(SYSPROP_DEVICE_TYPE) != DEVICE_TYPE_VR)) {
2020-06-29 06:06:50 -04:00
- Choice *gold = rightColumnItems->Add(new Choice(mm->T("Buy PPSSPP Gold")));
- gold->OnClick.Handle(this, &MainScreen::OnSupport);
2022-01-23 09:30:00 -05:00
- gold->SetIcon(ImageID("I_ICONGOLD"), 0.5f);
2020-06-29 06:06:50 -04:00
- }
2023-04-29 17:44:22 -04:00
-
2020-06-29 06:06:50 -04:00
#if !PPSSPP_PLATFORM(UWP)
// Having an exit button is against UWP guidelines.
2023-04-29 17:44:22 -04:00
rightColumnItems->Add(new Spacer(25.0));
@@ -1169,32 +1159,6 @@ void MainScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
} else if (tabHolder_->GetVisibility() != V_GONE) {
root_->SetDefaultFocusView(tabHolder_);
}
-
- auto u = GetI18NCategory("Upgrade");
-
- upgradeBar_ = 0;
- if (!g_Config.upgradeMessage.empty()) {
- upgradeBar_ = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
-
- UI::Margins textMargins(10, 5);
- UI::Margins buttonMargins(0, 0);
- UI::Drawable solid(0xFFbd9939);
- upgradeBar_->SetBG(solid);
- upgradeBar_->Add(new TextView(u->T("New version of PPSSPP available") + std::string(": ") + g_Config.upgradeVersion, new LinearLayoutParams(1.0f, textMargins)));
2021-02-15 10:02:43 -05:00
-#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(WINDOWS)
2020-06-29 06:06:50 -04:00
- upgradeBar_->Add(new Button(u->T("Download"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDownloadUpgrade);
2021-02-15 10:02:43 -05:00
-#else
- upgradeBar_->Add(new Button(u->T("Details"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDownloadUpgrade);
-#endif
2020-06-29 06:06:50 -04:00
- upgradeBar_->Add(new Button(u->T("Dismiss"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDismissUpgrade);
-
- // Slip in under root_
- LinearLayout *newRoot = new LinearLayout(ORIENT_VERTICAL);
- newRoot->Add(root_);
- newRoot->Add(upgradeBar_);
- root_->ReplaceLayoutParams(new LinearLayoutParams(1.0));
- root_ = newRoot;
- }
}
UI::EventReturn MainScreen::OnAllowStorage(UI::EventParams &e) {
2023-04-29 17:44:22 -04:00
@@ -1202,30 +1166,6 @@ UI::EventReturn MainScreen::OnAllowStorage(UI::EventParams &e) {
2020-06-29 06:06:50 -04:00
return UI::EVENT_DONE;
}
-UI::EventReturn MainScreen::OnDownloadUpgrade(UI::EventParams &e) {
-#if PPSSPP_PLATFORM(ANDROID)
- // Go to app store
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
- LaunchBrowser("market://details?id=org.ppsspp.ppssppgold");
- } else {
- LaunchBrowser("market://details?id=org.ppsspp.ppsspp");
- }
2021-02-15 10:02:43 -05:00
-#elif PPSSPP_PLATFORM(WINDOWS)
- LaunchBrowser("https://www.ppsspp.org/downloads.html");
2020-06-29 06:06:50 -04:00
-#else
- // Go directly to ppsspp.org and let the user sort it out
2021-02-15 10:02:43 -05:00
- // (for details and in case downloads doesn't have their platform.)
- LaunchBrowser("https://www.ppsspp.org/");
2020-06-29 06:06:50 -04:00
-#endif
- return UI::EVENT_DONE;
-}
-
-UI::EventReturn MainScreen::OnDismissUpgrade(UI::EventParams &e) {
- g_Config.DismissUpgrade();
- upgradeBar_->SetVisibility(UI::V_GONE);
- return UI::EVENT_DONE;
-}
-
void MainScreen::sendMessage(const char *message, const char *value) {
// Always call the base class method first to handle the most common messages.
UIScreenWithBackground::sendMessage(message, value);
2023-04-29 17:44:22 -04:00
@@ -1392,15 +1332,6 @@ UI::EventReturn MainScreen::OnCredits(UI::EventParams &e) {
2020-06-29 06:06:50 -04:00
return UI::EVENT_DONE;
}
-UI::EventReturn MainScreen::OnSupport(UI::EventParams &e) {
-#ifdef __ANDROID__
- LaunchBrowser("market://details?id=org.ppsspp.ppssppgold");
-#else
- LaunchBrowser("https://central.ppsspp.org/buygold");
-#endif
- return UI::EVENT_DONE;
-}
-
UI::EventReturn MainScreen::OnPPSSPPOrg(UI::EventParams &e) {
LaunchBrowser("https://www.ppsspp.org");
return UI::EVENT_DONE;
2022-01-23 09:30:00 -05:00
diff --git a/UI/MemStickScreen.cpp b/UI/MemStickScreen.cpp
2023-04-29 17:44:22 -04:00
index 374c4683a..4a3d54155 100644
2022-01-23 09:30:00 -05:00
--- a/UI/MemStickScreen.cpp
+++ b/UI/MemStickScreen.cpp
@@ -157,23 +157,16 @@ static void AddExplanation(UI::ViewGroup *viewGroup, MemStickScreen::Choice choi
case MemStickScreen::CHOICE_STORAGE_ROOT:
// Old school choice
holder->Add(new TextView(iz->T("DataWillStay", "Data will stay even if you uninstall PPSSPP"), flags, false))->SetBullet(true);
- holder->Add(new TextView(iz->T("DataCanBeShared", "Data can be shared between PPSSPP regular/Gold"), flags, false))->SetBullet(true);
holder->Add(new TextView(iz->T("EasyUSBAccess", "Easy USB access"), flags, false))->SetBullet(true);
break;
case MemStickScreen::CHOICE_BROWSE_FOLDER:
holder->Add(new TextView(iz->T("DataWillStay", "Data will stay even if you uninstall PPSSPP"), flags, false))->SetBullet(true);
- holder->Add(new TextView(iz->T("DataCanBeShared", "Data can be shared between PPSSPP regular/Gold"), flags, false))->SetBullet(true);
holder->Add(new TextView(iz->T("EasyUSBAccess", "Easy USB access"), flags, false))->SetBullet(true);
break;
case MemStickScreen::CHOICE_PRIVATE_DIRECTORY:
// Consider https://www.compart.com/en/unicode/U+26A0 (unicode warning sign?)? or a graphic?
holder->Add(new TextView(iz->T("DataWillBeLostOnUninstall", "Warning! Data will be lost when you uninstall PPSSPP!"), flags, false))->SetBullet(true);
- holder->Add(new TextView(iz->T("DataCannotBeShared", "Data CANNOT be shared between PPSSPP regular/Gold!"), flags, false))->SetBullet(true);
-#if GOLD
- holder->Add(new TextView(iz->T("USBAccessThroughGold", "USB access through Android/data/org.ppsspp.ppssppgold/files"), flags, false))->SetBullet(true);
-#else
holder->Add(new TextView(iz->T("USBAccessThrough", "USB access through Android/data/org.ppsspp.ppsspp/files"), flags, false))->SetBullet(true);
-#endif
break;
case MemStickScreen::CHOICE_SET_MANUAL:
default:
@@ -243,7 +236,6 @@ void MemStickScreen::CreateViews() {
} else {
leftColumn->Add(new RadioButton(&choice_, CHOICE_SET_MANUAL, iz->T("Manually specify PSP folder")))->OnClick.Handle(this, &MemStickScreen::OnChoiceClick);
leftColumn->Add(new TextView(iz->T("DataWillStay", "Data will stay even if you uninstall PPSSPP.")))->SetBullet(true);
- leftColumn->Add(new TextView(iz->T("DataCanBeShared", "Data can be shared between PPSSPP regular/Gold.")))->SetBullet(true);
// TODO: Show current folder here if we have one set.
}
if (choice_ == CHOICE_BROWSE_FOLDER || choice_ == CHOICE_SET_MANUAL) {
2020-06-29 06:06:50 -04:00
diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp
2023-04-29 17:44:22 -04:00
index fef1fae1b..942997925 100644
2020-06-29 06:06:50 -04:00
--- a/UI/MiscScreens.cpp
+++ b/UI/MiscScreens.cpp
2023-04-29 17:44:22 -04:00
@@ -657,7 +657,7 @@ void NewLanguageScreen::OnCompleted(DialogResult result) {
g_Config.sLanguageIni = code;
bool iniLoadedSuccessfully = false;
- // Allow the lang directory to be overridden for testing purposes (e.g. Android, where it's hard to
+ // Allow the lang directory to be overridden for testing purposes (e.g. Android, where it's hard to
// test new languages without recompiling the entire app, which is a hassle).
const Path langOverridePath = GetSysDirectory(DIRECTORY_SYSTEM) / "lang";
@@ -781,11 +781,7 @@ void LogoScreen::render() {
2020-06-29 06:06:50 -04:00
char temp[256];
// Manually formatting UTF-8 is fun. \xXX doesn't work everywhere.
snprintf(temp, sizeof(temp), "%s Henrik Rydg%c%crd", cr->T("created", "Created by"), 0xC3, 0xA5);
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
2023-04-29 17:44:22 -04:00
- dc.Draw()->DrawImage(ImageID("I_ICONGOLD"), bounds.centerX() - 120, bounds.centerY() - 30, 1.2f, 0xFFFFFFFF, ALIGN_CENTER);
2020-06-29 06:06:50 -04:00
- } else {
2023-04-29 17:44:22 -04:00
- dc.Draw()->DrawImage(ImageID("I_ICON"), bounds.centerX() - 120, bounds.centerY() - 30, 1.2f, 0xFFFFFFFF, ALIGN_CENTER);
2020-06-29 06:06:50 -04:00
- }
2023-04-29 17:44:22 -04:00
+ dc.Draw()->DrawImage(ImageID("I_ICON"), bounds.centerX() - 120, bounds.centerY() - 30, 1.2f, 0xFFFFFFFF, ALIGN_CENTER);
dc.Draw()->DrawImage(ImageID("I_LOGO"), bounds.centerX() + 40, bounds.centerY() - 30, 1.5f, 0xFFFFFFFF, ALIGN_CENTER);
2021-06-05 23:16:07 -04:00
//dc.Draw()->DrawTextShadow(UBUNTU48, "PPSSPP", bounds.w / 2, bounds.h / 2 - 30, textColor, ALIGN_CENTER);
2020-06-29 06:06:50 -04:00
dc.SetFontScale(1.0f, 1.0f);
2023-04-29 17:44:22 -04:00
@@ -821,10 +817,6 @@ void CreditsScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
// Really need to redo this whole layout with some linear layouts...
int rightYOffset = 0;
- if (!System_GetPropertyBool(SYSPROP_APP_GOLD)) {
- root_->Add(new Button(cr->T("Buy Gold"), new AnchorLayoutParams(260, 64, NONE, NONE, 10, 84, false)))->OnClick.Handle(this, &CreditsScreen::OnSupport);
- rightYOffset = 74;
- }
root_->Add(new Button(cr->T("PPSSPP Forums"), new AnchorLayoutParams(260, 64, 10, NONE, NONE, 158, false)))->OnClick.Handle(this, &CreditsScreen::OnForums);
root_->Add(new Button(cr->T("Discord"), new AnchorLayoutParams(260, 64, 10, NONE, NONE, 232, false)))->OnClick.Handle(this, &CreditsScreen::OnDiscord);
root_->Add(new Button("www.ppsspp.org", new AnchorLayoutParams(260, 64, 10, NONE, NONE, 10, false)))->OnClick.Handle(this, &CreditsScreen::OnPPSSPPOrg);
2023-04-29 17:44:22 -04:00
@@ -833,20 +825,7 @@ void CreditsScreen::CreateViews() {
2020-06-29 06:06:50 -04:00
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
root_->Add(new Button(cr->T("Share PPSSPP"), new AnchorLayoutParams(260, 64, NONE, NONE, 10, rightYOffset + 158, false)))->OnClick.Handle(this, &CreditsScreen::OnShare);
#endif
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
2021-06-05 23:16:07 -04:00
- root_->Add(new ImageView(ImageID("I_ICONGOLD"), "", IS_DEFAULT, new AnchorLayoutParams(100, 64, 10, 10, NONE, NONE, false)));
2020-06-29 06:06:50 -04:00
- } else {
2021-06-05 23:16:07 -04:00
- root_->Add(new ImageView(ImageID("I_ICON"), "", IS_DEFAULT, new AnchorLayoutParams(100, 64, 10, 10, NONE, NONE, false)));
2020-06-29 06:06:50 -04:00
- }
-}
-
-UI::EventReturn CreditsScreen::OnSupport(UI::EventParams &e) {
-#ifdef __ANDROID__
- LaunchBrowser("market://details?id=org.ppsspp.ppssppgold");
-#else
- LaunchBrowser("https://central.ppsspp.org/buygold");
-#endif
- return UI::EVENT_DONE;
2021-06-05 23:16:07 -04:00
+ root_->Add(new ImageView(ImageID("I_ICON"), "", IS_DEFAULT, new AnchorLayoutParams(100, 64, 10, 10, NONE, NONE, false)));
2020-06-29 06:06:50 -04:00
}
UI::EventReturn CreditsScreen::OnTwitter(UI::EventParams &e) {
2023-04-29 17:44:22 -04:00
@@ -1033,11 +1012,7 @@ void CreditsScreen::render() {
2020-06-29 06:06:50 -04:00
// TODO: This is kinda ugly, done on every frame...
char temp[256];
- if (System_GetPropertyBool(SYSPROP_APP_GOLD)) {
- snprintf(temp, sizeof(temp), "PPSSPP Gold %s", PPSSPP_GIT_VERSION);
- } else {
- snprintf(temp, sizeof(temp), "PPSSPP %s", PPSSPP_GIT_VERSION);
- }
+ snprintf(temp, sizeof(temp), "PPSSPP %s", PPSSPP_GIT_VERSION);
credits[0] = (const char *)temp;
UIContext &dc = *screenManager()->getUIContext();
diff --git a/UWP/PPSSPP_UWPMain.cpp b/UWP/PPSSPP_UWPMain.cpp
2023-04-29 17:44:22 -04:00
index b734f6e3d..ef694fcd3 100644
2020-06-29 06:06:50 -04:00
--- a/UWP/PPSSPP_UWPMain.cpp
+++ b/UWP/PPSSPP_UWPMain.cpp
2023-04-29 17:44:22 -04:00
@@ -418,12 +418,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2020-06-29 06:06:50 -04:00
return false;
case SYSPROP_HAS_BACK_BUTTON:
return true;
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
2021-06-05 23:16:07 -04:00
case SYSPROP_CAN_JIT:
return true;
2023-04-29 17:44:22 -04:00
case SYSPROP_HAS_KEYBOARD:
2020-06-29 06:06:50 -04:00
diff --git a/Windows/MainWindowMenu.cpp b/Windows/MainWindowMenu.cpp
2023-04-29 17:44:22 -04:00
index 25af2cd08..19ffd0a52 100644
2020-06-29 06:06:50 -04:00
--- a/Windows/MainWindowMenu.cpp
+++ b/Windows/MainWindowMenu.cpp
2022-01-23 09:30:00 -05:00
@@ -136,7 +136,6 @@ namespace MainWindow {
const std::wstring visitMainWebsite = ConvertUTF8ToWString(des->T("www.ppsspp.org"));
const std::wstring visitForum = ConvertUTF8ToWString(des->T("PPSSPP Forums"));
- const std::wstring buyGold = ConvertUTF8ToWString(des->T("Buy Gold"));
const std::wstring gitHub = ConvertUTF8ToWString(des->T("GitHub"));
const std::wstring discord = ConvertUTF8ToWString(des->T("Discord"));
const std::wstring aboutPPSSPP = ConvertUTF8ToWString(des->T("About PPSSPP..."));
@@ -147,7 +146,6 @@ namespace MainWindow {
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_OPENWEBSITE, visitMainWebsite.c_str());
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_OPENFORUM, visitForum.c_str());
// Repeat the process for other languages, if necessary.
- AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_BUYGOLD, buyGold.c_str());
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_GITHUB, gitHub.c_str());
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_DISCORD, discord.c_str());
AppendMenu(helpMenu, MF_SEPARATOR, 0, 0);
2023-04-29 17:44:22 -04:00
@@ -924,10 +922,6 @@ namespace MainWindow {
2022-01-23 09:30:00 -05:00
ShellExecute(NULL, L"open", L"https://www.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
break;
- case ID_HELP_BUYGOLD:
- ShellExecute(NULL, L"open", L"https://central.ppsspp.org/buygold", NULL, NULL, SW_SHOWNORMAL);
- break;
-
case ID_HELP_OPENFORUM:
ShellExecute(NULL, L"open", L"https://forums.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
break;
2023-04-29 17:44:22 -04:00
@@ -1280,7 +1274,7 @@ namespace MainWindow {
2020-06-29 06:06:50 -04:00
{
W32Util::CenterWindow(hDlg);
HWND versionBox = GetDlgItem(hDlg, IDC_VERSION);
- std::string windowText = System_GetPropertyBool(SYSPROP_APP_GOLD) ? "PPSSPP Gold " : "PPSSPP ";
+ std::string windowText = "PPSSPP ";
windowText.append(PPSSPP_GIT_VERSION);
SetWindowText(versionBox, ConvertUTF8ToWString(windowText).c_str());
}
diff --git a/Windows/main.cpp b/Windows/main.cpp
2023-04-29 17:44:22 -04:00
index 9351202be..30c75e092 100644
2020-06-29 06:06:50 -04:00
--- a/Windows/main.cpp
+++ b/Windows/main.cpp
2023-04-29 17:44:22 -04:00
@@ -333,12 +333,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2020-06-29 06:06:50 -04:00
return true;
case SYSPROP_HAS_BACK_BUTTON:
return true;
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
2021-06-05 23:16:07 -04:00
case SYSPROP_CAN_JIT:
return true;
2023-04-29 17:44:22 -04:00
case SYSPROP_HAS_KEYBOARD:
2022-01-23 09:30:00 -05:00
diff --git a/Windows/resource.h b/Windows/resource.h
2023-04-29 17:44:22 -04:00
index 83ef88957..bdaef6234 100644
2022-01-23 09:30:00 -05:00
--- a/Windows/resource.h
+++ b/Windows/resource.h
2023-04-29 17:44:22 -04:00
@@ -339,7 +339,6 @@
2022-01-23 09:30:00 -05:00
// Dummy option to let the buffered rendering hotkey cycle through all the options.
#define ID_OPTIONS_BUFFEREDRENDERINGDUMMY 40500
#define IDC_STEPOUT 40501
-#define ID_HELP_BUYGOLD 40502
#define IDC_STATIC -1
2020-06-29 06:06:50 -04:00
diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp
2023-04-29 17:44:22 -04:00
index 18ef723d4..61d8e5c2d 100644
2020-06-29 06:06:50 -04:00
--- a/android/jni/app-android.cpp
+++ b/android/jni/app-android.cpp
2023-04-29 17:44:22 -04:00
@@ -480,12 +480,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2021-06-05 23:16:07 -04:00
return androidVersion >= 21; // when ACTION_OPEN_DOCUMENT_TREE was added
2023-04-29 17:44:22 -04:00
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
return false; // Update if we add support in FileUtil.cpp: OpenFileInEditor
2020-06-29 06:06:50 -04:00
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
2021-06-05 23:16:07 -04:00
case SYSPROP_CAN_JIT:
return true;
case SYSPROP_ANDROID_SCOPED_STORAGE:
diff --git a/ios/main.mm b/ios/main.mm
2023-04-29 17:44:22 -04:00
index b10db1a79..c410befdc 100644
2021-06-05 23:16:07 -04:00
--- a/ios/main.mm
+++ b/ios/main.mm
2023-04-29 17:44:22 -04:00
@@ -153,12 +153,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
2021-06-05 23:16:07 -04:00
switch (prop) {
case SYSPROP_HAS_BACK_BUTTON:
return false;
- case SYSPROP_APP_GOLD:
-#ifdef GOLD
- return true;
-#else
- return false;
-#endif
case SYSPROP_CAN_JIT:
2023-04-29 17:44:22 -04:00
return get_debugged();
2021-06-05 23:16:07 -04:00
2020-06-29 06:06:50 -04:00
--
2023-04-29 17:44:22 -04:00
2.39.2
2020-06-29 06:06:50 -04:00