Skip to content

Commit

Permalink
Convert newlines in game title
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed May 6, 2018
1 parent 85ef2f2 commit e27ab4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpcs3/Emu/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit e27ab4e

Please sign in to comment.