From f5ee6fb1133186c78cecc58a9b6afb41241b4c1f Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 4 May 2018 23:52:03 +0300 Subject: [PATCH] Convert newlines in game title --- rpcs3/Emu/System.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 95f2f54673..ed95791e84 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -395,6 +395,13 @@ void Emulator::Load(bool add_only) m_title_id = psf::get_string(_psf, "TITLE_ID"); m_cat = psf::get_string(_psf, "CATEGORY"); + for (auto& c : m_title) + { + // Replace newlines with spaces + if (c == '\n') + c = ' '; + } + if (!_psf.empty() && m_cat.empty()) { LOG_FATAL(LOADER, "Corrupted PARAM.SFO found! Assuming category GD. Try reinstalling the game.");