mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Fix UB in Emulator::Load
This commit is contained in:
parent
019d2d5dcf
commit
48f70fbf10
1 changed files with 2 additions and 1 deletions
|
@ -1442,7 +1442,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
||||||
|
|
||||||
if (!disc_sfo_dir.empty() && fs::is_file(disc_sfo_dir))
|
if (!disc_sfo_dir.empty() && fs::is_file(disc_sfo_dir))
|
||||||
{
|
{
|
||||||
const auto bdvd_title = psf::get_string(psf::load_object(fs::file{ disc_sfo_dir }), "TITLE");
|
const auto psf_obj = psf::load_object(fs::file{ disc_sfo_dir });
|
||||||
|
const auto bdvd_title = psf::get_string(psf_obj, "TITLE");
|
||||||
|
|
||||||
if (!bdvd_title.empty() && bdvd_title != m_title)
|
if (!bdvd_title.empty() && bdvd_title != m_title)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue