mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Another minor GameDB fix
This commit is contained in:
1 parent
bd7019eb9d
commit
92d1c33426
1 file changed
+5
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user