mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
IOS/ES: Fix a missing check in ReadCertStore
Without this, some operations can fail when trying to read an existing cert store, as it may not exist when signature checks are disabled.
This commit is contained in:
parent
689ed2a0ce
commit
44fc6d878a
@ -791,6 +791,9 @@ bool ES::IsIssuerCorrect(VerifyContainerType type, const IOS::ES::CertReader& is
|
||||
|
||||
ReturnCode ES::ReadCertStore(std::vector<u8>* buffer) const
|
||||
{
|
||||
if (!SConfig::GetInstance().m_enable_signature_checks)
|
||||
return IPC_SUCCESS;
|
||||
|
||||
const std::string store_path = Common::RootUserPath(Common::FROM_SESSION_ROOT) + "/sys/cert.sys";
|
||||
File::IOFile store_file{store_path, "rb"};
|
||||
if (!store_file)
|
||||
|
Loading…
Reference in New Issue
Block a user