mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Make RPCS3 compile in C++2a mode
This commit is contained in:
parent
e9e8f0c5b7
commit
1a78e0e80c
13 changed files with 141 additions and 109 deletions
|
|
@ -1159,22 +1159,22 @@ void fmt_class_string<vm::_ptr_base<const char, u32>>::format(std::string& out,
|
|||
// Special case (may be allowed for some arguments)
|
||||
if (arg == 0)
|
||||
{
|
||||
out += u8"«NULL»";
|
||||
out += reinterpret_cast<const char*>(u8"«NULL»");
|
||||
return;
|
||||
}
|
||||
|
||||
// Filter certainly invalid addresses (TODO)
|
||||
if (arg < 0x10000 || arg >= 0xf0000000)
|
||||
{
|
||||
out += u8"«INVALID_ADDRESS:";
|
||||
out += reinterpret_cast<const char*>(u8"«INVALID_ADDRESS:");
|
||||
fmt_class_string<u32>::format(out, arg);
|
||||
out += u8"»";
|
||||
out += reinterpret_cast<const char*>(u8"»");
|
||||
return;
|
||||
}
|
||||
|
||||
const auto start = out.size();
|
||||
|
||||
out += u8"“";
|
||||
out += reinterpret_cast<const char*>(u8"“");
|
||||
|
||||
for (vm::_ptr_base<const volatile char, u32> ptr = vm::cast(arg);; ptr++)
|
||||
{
|
||||
|
|
@ -1182,9 +1182,9 @@ void fmt_class_string<vm::_ptr_base<const char, u32>>::format(std::string& out,
|
|||
{
|
||||
// TODO: optimize checks
|
||||
out.resize(start);
|
||||
out += u8"«INVALID_ADDRESS:";
|
||||
out += reinterpret_cast<const char*>(u8"«INVALID_ADDRESS:");
|
||||
fmt_class_string<u32>::format(out, arg);
|
||||
out += u8"»";
|
||||
out += reinterpret_cast<const char*>(u8"»");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1198,5 +1198,5 @@ void fmt_class_string<vm::_ptr_base<const char, u32>>::format(std::string& out,
|
|||
}
|
||||
}
|
||||
|
||||
out += u8"”";
|
||||
out += reinterpret_cast<const char*>(u8"”");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue