From 78f7020ce60f471033c402016dbfecb5cad48c54 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 29 Dec 2017 20:05:06 +0300 Subject: [PATCH] Warn about corrupted PARAM.SFO --- rpcs3/Emu/System.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index bbddb0a815..9d7e7a1e0a 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -386,6 +386,12 @@ void Emulator::Load(bool add_only) m_title_id = psf::get_string(_psf, "TITLE_ID"); m_cat = psf::get_string(_psf, "CATEGORY"); + if (!_psf.empty() && m_cat.empty()) + { + LOG_FATAL(LOADER, "Corrupted PARAM.SFO found! Assuming category GD. Try reinstalling the game."); + m_cat = "GD"; + } + LOG_NOTICE(LOADER, "Title: %s", GetTitle()); LOG_NOTICE(LOADER, "Serial: %s", GetTitleID()); LOG_NOTICE(LOADER, "Category: %s", GetCat());