fs::file: implement release_handle

cleanup
This commit is contained in:
DH 2025-03-02 19:44:55 +03:00 committed by Megamouse
parent 95d0cb18e4
commit d766baef12
5 changed files with 48 additions and 24 deletions

View file

@ -709,12 +709,9 @@ bool VerifyEDATHeaderWithKLicense(const fs::file& input, const std::string& inpu
return false;
}
std::string_view sv{NPD.content_id, std::size(NPD.content_id)};
sv = sv.substr(0, sv.find_first_of('\0'));
if (npd_out)
{
memcpy(npd_out, &NPD, sizeof(NPD_HEADER));
*npd_out = NPD;
}
return true;