mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Convert newlines in game title
This commit is contained in:
parent
acfe22e5bc
commit
f5ee6fb113
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user