mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 17:42:40 -06:00
Fix functions which used Common::ArrayToString
This commit is contained in:
parent
41376cfa26
commit
fc51a6fd08
2 changed files with 15 additions and 8 deletions
|
@ -165,8 +165,10 @@ void ExtraHID::OnDisconnect() {
|
|||
|
||||
void ExtraHID::HandleConfigureHIDPollingRequest(const std::vector<u8>& request) {
|
||||
if (request.size() != 3) {
|
||||
LOG_ERROR(Service_IR, "Wrong request size ({}): {}", request.size(),
|
||||
Common::ArrayToString(request.data(), request.size()));
|
||||
std::string request_string;
|
||||
for (auto request_part : request)
|
||||
request_string += fmt::format("{:02x} ", request_part);
|
||||
LOG_ERROR(Service_IR, "Wrong request size ({}): {}", request.size(), request_string);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -188,8 +190,11 @@ void ExtraHID::HandleReadCalibrationDataRequest(const std::vector<u8>& request_b
|
|||
"ReadCalibrationDataRequest has wrong size");
|
||||
|
||||
if (request_buf.size() != sizeof(ReadCalibrationDataRequest)) {
|
||||
std::string request_buf_string;
|
||||
for (auto request_buf_part : request_buf)
|
||||
request_buf_string += fmt::format("{:02x} ", request_buf_part);
|
||||
LOG_ERROR(Service_IR, "Wrong request size ({}): {}", request_buf.size(),
|
||||
Common::ArrayToString(request_buf.data(), request_buf.size()));
|
||||
request_buf_string);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -223,8 +228,10 @@ void ExtraHID::OnReceive(const std::vector<u8>& data) {
|
|||
HandleReadCalibrationDataRequest(data);
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR(Service_IR, "Unknown request: {}",
|
||||
Common::ArrayToString(data.data(), data.size()));
|
||||
std::string data_string;
|
||||
for (auto data_part : data)
|
||||
data_string += fmt::format("{:02x} ", data_part);
|
||||
LOG_ERROR(Service_IR, "Unknown request: {}", data_string);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue