Add warning if you run the 32-bit version on 64-bit window.

This commit is contained in:
Henrik Rydgård committed 2026-09-22 10:04:31 -06:00
1 parent 8c6ec65b2d
commit 2fe24d1182
4 files changed
+18 -4

No files matched your search

+3
View File
@@ -239,6 +239,9 @@ static const ConfigSetting generalSettings[] = {
ConfigSetting("ShowDebuggerOnLoad", SETTING(g_Config, bShowDebuggerOnLoad), false, CfgFlag::DEFAULT),
ConfigSetting("ShowImDebugger", SETTING(g_Config, bShowImDebugger), false, CfgFlag::DONT_SAVE),
ConfigSetting("CheckForNewVersion", SETTING(g_Config, bCheckForNewVersion), true, CfgFlag::DEFAULT),
#if PPSSPP_PLATFORM(WINDOWS) && PPSSPP_ARCH(X86)
ConfigSetting("Wow64WarningDismissed", SETTING(g_Config, bWow64WarningDismissed), false, CfgFlag::DEFAULT),
#endif
ConfigSetting("Language", SETTING(g_Config, sLanguageIni), &DefaultLangRegion, CfgFlag::DEFAULT),
ConfigSetting("ForceLagSync2", SETTING(g_Config, bForceLagSync), false, CfgFlag::PER_GAME),
ConfigSetting("DiscordRichPresence", SETTING(g_Config, bDiscordRichPresence), false, CfgFlag::DEFAULT),
+1
View File
@@ -232,6 +232,7 @@ public:
bool bFastMemory;
int iCpuCore;
bool bCheckForNewVersion;
bool bWow64WarningDismissed;
bool bForceLagSync;
bool bFuncReplacements;
bool bHideSlowWarnings;
+1
View File
@@ -18,6 +18,7 @@
#pragma once
#include "Common/File/Path.h"
class PointerWrap;
enum pspUmdState {
PSP_UMD_INIT = 0x00,
+13 -4
View File
@@ -21,7 +21,7 @@
#include "ppsspp_config.h"
#include "Common/System/Display.h"
#include "Common/CPUDetect.h"
#include "Common/System/System.h"
#include "Common/UI/Root.h"
#include "Common/UI/Context.h"
@@ -33,9 +33,6 @@
#include "Common/StringUtils.h"
#include "Core/System.h"
#include "Core/Util/RecentFiles.h"
#include "Core/Reporting.h"
#include "Core/HLE/sceCtrl.h"
#include "Core/ELF/PBPReader.h"
#include "Core/ELF/ParamSFO.h"
#include "Core/Util/GameManager.h"
@@ -544,6 +541,18 @@ void MainScreen::CreateViews() {
// Slip in at the top.
root_->Insert(0, upgradeBar);
}
#if PPSSPP_PLATFORM(WINDOWS) && PPSSPP_ARCH(X86)
if (cpu_info.OS64bit && !g_Config.bWow64WarningDismissed) {
auto di = GetI18NCategory(I18NCat::DIALOG);
std::string_view message = di->T("You're running the 32-bit version. Use PPSSPPWindows64.exe instead for best performance.");
UI::LinearLayout *upgradeBar = CreateDismissableBar(message, "", [this]() {
g_Config.bWow64WarningDismissed = true;
g_Config.Save("dismisswow64");
});
root_->Insert(0, upgradeBar);
}
#endif
}
bool MainScreen::key(const KeyInput &key) {