Avoid using vfs::get to let decrypt work on PSN binaries

This commit is contained in:
RipleyTom 2019-12-11 23:33:26 +01:00 committed by Ivan
parent c2eb9a583d
commit 5de83e0425
1 changed files with 2 additions and 2 deletions

View File

@ -1312,10 +1312,10 @@ bool SELFDecrypter::GetKeyFromRap(u8* content_id, u8* npdrm_key)
// Try to find a matching RAP file under exdata folder. // Try to find a matching RAP file under exdata folder.
const std::string ci_str = reinterpret_cast<const char*>(content_id); const std::string ci_str = reinterpret_cast<const char*>(content_id);
const std::string rap_path = "/dev_hdd0/home/" + Emu.GetUsr() + "/exdata/" + ci_str + ".rap"; const std::string rap_path = Emulator::GetHddDir() + "/home/" + Emu.GetUsr() + "/exdata/" + ci_str + ".rap";
// Open the RAP file and read the key. // Open the RAP file and read the key.
const fs::file rap_file(vfs::get(rap_path)); const fs::file rap_file(rap_path);
if (!rap_file) if (!rap_file)
{ {