mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-01 06:12:43 +00:00
ARM cpu detect: Only drop last character if it's actually a newline
This commit is contained in:
parent
951c5e7c0b
commit
6c3ef819e0
@ -42,7 +42,8 @@ std::string GetCPUString()
|
||||
if (line.find(marker) != std::string::npos)
|
||||
{
|
||||
cpu_string = line.substr(marker.length());
|
||||
cpu_string.pop_back(); // Drop the new-line character
|
||||
if (cpu_string.back() == '\n')
|
||||
cpu_string.pop_back(); // Drop the new-line character
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user