Fix functions which used Common::ArrayToString

This commit is contained in:
fearlessTobi 2018-11-18 00:51:14 +01:00
parent 41376cfa26
commit fc51a6fd08
2 changed files with 15 additions and 8 deletions

View file

@ -358,9 +358,9 @@ Movie::ValidationResult Movie::ValidateHeader(const CTMHeader& header, u64 progr
return ValidationResult::Invalid;
}
std::string revision =
Common::ArrayToString(header.revision.data(), header.revision.size(), 21, false);
revision = Common::ToLower(revision);
std::string revision;
for (auto header_part : header.revision)
revision += fmt::format("{:02x}", header_part);
if (!program_id)
Core::System::GetInstance().GetAppLoader().ReadProgramId(program_id);