mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Convert newlines in game title
This commit is contained in:
parent
acfe22e5bc
commit
f5ee6fb113
1 changed files with 7 additions and 0 deletions
|
@ -395,6 +395,13 @@ void Emulator::Load(bool add_only)
|
||||||
m_title_id = psf::get_string(_psf, "TITLE_ID");
|
m_title_id = psf::get_string(_psf, "TITLE_ID");
|
||||||
m_cat = psf::get_string(_psf, "CATEGORY");
|
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())
|
if (!_psf.empty() && m_cat.empty())
|
||||||
{
|
{
|
||||||
LOG_FATAL(LOADER, "Corrupted PARAM.SFO found! Assuming category GD. Try reinstalling the game.");
|
LOG_FATAL(LOADER, "Corrupted PARAM.SFO found! Assuming category GD. Try reinstalling the game.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue