mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Another minor GameDB fix
This commit is contained in:
parent
bd7019eb9d
commit
92d1c33426
1 changed files with 5 additions and 2 deletions
|
@ -40,13 +40,16 @@ static void SplitSV(std::string_view strv, char delim, bool removeWhiteSpace, st
|
|||
const auto second = strv.find(delim, first);
|
||||
if (first != second) {
|
||||
std::string_view line = strv.substr(first, second - first);
|
||||
_dbg_assert_(!line.empty());
|
||||
if (line.back() == '\r') {
|
||||
line = strv.substr(first, second - first - 1);
|
||||
line.remove_suffix(1);
|
||||
}
|
||||
if (removeWhiteSpace) {
|
||||
line = StripSpaces(line);
|
||||
}
|
||||
output->emplace_back(line);
|
||||
if (!line.empty()) {
|
||||
output->emplace_back(line);
|
||||
}
|
||||
}
|
||||
if (second == std::string_view::npos)
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue