mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
input: try to add tony hawk RIDE Skateboard
This commit is contained in:
parent
6dcdf6ec76
commit
0bb5974ab6
24 changed files with 791 additions and 30 deletions
|
@ -221,16 +221,23 @@ void fmt_class_string<fmt::buf_to_hexstring>::format(std::string& out, u64 arg)
|
|||
const std::vector<u8> buf(_arg.buf, _arg.buf + _arg.len);
|
||||
out.reserve(out.size() + (buf.size() * 3));
|
||||
static constexpr char hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
|
||||
const bool use_linebreak = _arg.line_length > 0;
|
||||
|
||||
for (usz index = 0; index < buf.size(); index++)
|
||||
{
|
||||
if (index > 0)
|
||||
{
|
||||
if (use_linebreak && (index % _arg.line_length) == 0)
|
||||
out += '\n';
|
||||
else
|
||||
out += ' ';
|
||||
}
|
||||
|
||||
if (_arg.with_prefix)
|
||||
out += "0x";
|
||||
|
||||
out += hex[buf[index] >> 4];
|
||||
out += hex[buf[index] & 15];
|
||||
|
||||
if (((index + 1) % 16) == 0)
|
||||
out += '\n';
|
||||
else
|
||||
out += ' ';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue