diff --git a/pcsx2/Achievements.cpp b/pcsx2/Achievements.cpp index ee0a0576c9cbd6..2f2015733f0ef6 100644 --- a/pcsx2/Achievements.cpp +++ b/pcsx2/Achievements.cpp @@ -2992,7 +2992,7 @@ void Achievements::RAIntegration::RACallbackRebuildMenu() void Achievements::RAIntegration::RACallbackEstimateTitle(char* buf) { - std::string title(fmt::format("{0} ({1}) [{2:08X}]", VMManager::GetTitle(), VMManager::GetDiscSerial(), VMManager::GetDiscCRC())); + std::string title(fmt::format("{0} ({1}) [{2:08X}]", VMManager::GetTitle(false), VMManager::GetDiscSerial(), VMManager::GetDiscCRC())); StringUtil::Strlcpy(buf, title, 256); } diff --git a/pcsx2/GS/Renderers/Common/GSRenderer.cpp b/pcsx2/GS/Renderers/Common/GSRenderer.cpp index 58559c2b29e1d2..73262ccf05b37a 100644 --- a/pcsx2/GS/Renderers/Common/GSRenderer.cpp +++ b/pcsx2/GS/Renderers/Common/GSRenderer.cpp @@ -810,7 +810,7 @@ static std::string GSGetBaseFilename() std::string filename; // append the game serial and title - if (std::string name(VMManager::GetTitle()); !name.empty()) + if (std::string name(VMManager::GetTitle(true)); !name.empty()) { Path::SanitizeFileName(&name); if (name.length() > 219) diff --git a/pcsx2/ImGui/FullscreenUI.cpp b/pcsx2/ImGui/FullscreenUI.cpp index 8bbc978484cf96..d5ff42a959c6f5 100644 --- a/pcsx2/ImGui/FullscreenUI.cpp +++ b/pcsx2/ImGui/FullscreenUI.cpp @@ -515,7 +515,7 @@ bool FullscreenUI::Initialize() if (VMManager::HasValidVM()) { - UpdateGameDetails(VMManager::GetDiscPath(), VMManager::GetDiscSerial(), VMManager::GetTitle(), VMManager::GetDiscCRC(), + UpdateGameDetails(VMManager::GetDiscPath(), VMManager::GetDiscSerial(), VMManager::GetTitle(true), VMManager::GetDiscCRC(), VMManager::GetCurrentCRC()); } else diff --git a/pcsx2/PINE.cpp b/pcsx2/PINE.cpp index 1bf25aa13957b2..4ddfb3bd4b578a 100644 --- a/pcsx2/PINE.cpp +++ b/pcsx2/PINE.cpp @@ -438,7 +438,7 @@ PINEServer::IPCBuffer PINEServer::ParseCommand(std::span buf, std::vectorname_en.empty()) + { + s_title_en_search = game->name; + s_title_en_replace = game->name_en; + } + std::string game_title = custom_title.empty() ? game->name : std::move(custom_title); // Append the ELF override if we're using it with a disc. diff --git a/pcsx2/VMManager.h b/pcsx2/VMManager.h index 72932d123f6d8b..9f111031e48f87 100644 --- a/pcsx2/VMManager.h +++ b/pcsx2/VMManager.h @@ -79,7 +79,7 @@ namespace VMManager std::string GetDiscELF(); /// Returns the name of the disc/executable currently running. - std::string GetTitle(); + std::string GetTitle(bool prefer_en); /// Returns the CRC for the main ELF of the disc currently running. u32 GetDiscCRC();