mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
[HOTFIX] Fix UB in Emu/System.cpp
This commit is contained in:
parent
edc09e22b4
commit
27e3317449
1 changed files with 2 additions and 1 deletions
|
@ -1272,7 +1272,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
||||||
return game_boot_result::invalid_file_or_folder;
|
return game_boot_result::invalid_file_or_folder;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto bdvd_title_id = psf::get_string(psf::load_object(fs::file{vfs::get("/dev_bdvd/PS3_GAME/PARAM.SFO")}), "TITLE_ID");
|
const auto game_psf = psf::load_object(fs::file{vfs::get("/dev_bdvd/PS3_GAME/PARAM.SFO")});
|
||||||
|
const auto bdvd_title_id = psf::get_string(game_psf, "TITLE_ID");
|
||||||
|
|
||||||
if (bdvd_title_id != m_title_id)
|
if (bdvd_title_id != m_title_id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue