mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-26 03:20:52 +00:00
Fix trailing zeros in CPU brand
This commit is contained in:
parent
0d4f0f95cc
commit
9de31fc5ce
@ -73,8 +73,9 @@ std::string utils::get_system_info()
|
||||
brand = "Unknown CPU";
|
||||
}
|
||||
|
||||
brand.erase(0, brand.find_first_not_of(' '));
|
||||
brand.erase(brand.find_last_not_of('\0') + 1);
|
||||
brand.erase(brand.find_last_not_of(' ') + 1);
|
||||
brand.erase(0, brand.find_first_not_of(' '));
|
||||
|
||||
while (auto found = brand.find(" ") + 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user