ir:/movie: Replace for-loops with fmt::join

This commit is contained in:
fearlessTobi 2018-11-26 20:04:18 +01:00
parent 210e558bea
commit 5121fadb4f
3 changed files with 7 additions and 17 deletions

View file

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