mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 17:32:40 +00:00
get rid of unnecessary span
This commit is contained in:
parent
309fc59d16
commit
fe7305754b
@ -56,7 +56,6 @@ bool TRP::Extract(const std::filesystem::path& trophyPath, const std::string tit
|
|||||||
|
|
||||||
std::array<CryptoPP::byte, 16> user_key{};
|
std::array<CryptoPP::byte, 16> user_key{};
|
||||||
hexToBytes(user_key_str.c_str(), user_key.data());
|
hexToBytes(user_key_str.c_str(), user_key.data());
|
||||||
const std::span<CryptoPP::byte, 16> key{user_key.data(), user_key.size()};
|
|
||||||
|
|
||||||
for (int index = 0; const auto& it : std::filesystem::directory_iterator(gameSysDir)) {
|
for (int index = 0; const auto& it : std::filesystem::directory_iterator(gameSysDir)) {
|
||||||
if (it.is_regular_file()) {
|
if (it.is_regular_file()) {
|
||||||
@ -116,7 +115,7 @@ bool TRP::Extract(const std::filesystem::path& trophyPath, const std::string tit
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
file.Read(ESFM);
|
file.Read(ESFM);
|
||||||
crypto.decryptEFSM(key, np_comm_id, esfmIv, ESFM, XML); // decrypt
|
crypto.decryptEFSM(user_key, np_comm_id, esfmIv, ESFM, XML); // decrypt
|
||||||
removePadding(XML);
|
removePadding(XML);
|
||||||
std::string xml_name = entry.entry_name;
|
std::string xml_name = entry.entry_name;
|
||||||
size_t pos = xml_name.find("ESFM");
|
size_t pos = xml_name.find("ESFM");
|
||||||
|
Loading…
Reference in New Issue
Block a user