mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add warning if you run the 32-bit version on 64-bit window.
This commit is contained in:
1 parent
8c6ec65b2d
commit
2fe24d1182
4 files changed
+18
-4
No files matched your search
@@ -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),
|
||||
|
||||
@@ -232,6 +232,7 @@ public:
|
||||
bool bFastMemory;
|
||||
int iCpuCore;
|
||||
bool bCheckForNewVersion;
|
||||
bool bWow64WarningDismissed;
|
||||
bool bForceLagSync;
|
||||
bool bFuncReplacements;
|
||||
bool bHideSlowWarnings;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Common/File/Path.h"
|
||||
class PointerWrap;
|
||||
|
||||
enum pspUmdState {
|
||||
PSP_UMD_INIT = 0x00,
|
||||
|
||||
+13
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user