mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
Fix some warnng in lv2.cpp
This commit is contained in:
parent
ebc4a0188a
commit
bd40430d2b
@ -23,6 +23,10 @@ enum lv2_protocol : u32
|
||||
SYS_SYNC_PRIORITY = 0x2, // Priority Order
|
||||
SYS_SYNC_PRIORITY_INHERIT = 0x3, // Basic Priority Inheritance Protocol
|
||||
SYS_SYNC_RETRY = 0x4, // Not selected while unlocking
|
||||
};
|
||||
|
||||
enum : u32
|
||||
{
|
||||
SYS_SYNC_ATTR_PROTOCOL_MASK = 0xf,
|
||||
};
|
||||
|
||||
@ -88,7 +92,7 @@ public:
|
||||
const auto ptr = reinterpret_cast<const char*>(&name_u64);
|
||||
|
||||
// NTS string, ignore invalid/newline characters
|
||||
// Example: "lv2\n\0tx" will be printed as "lv2"
|
||||
// Example: "lv2\n\0tx" will be printed as "lv2"
|
||||
std::string str{ptr, std::find(ptr, ptr + 7, '\0')};
|
||||
str.erase(std::remove_if(str.begin(), str.end(), [](uchar c){ return !std::isprint(c); }), str.end());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user