fixes per a windows: CRLF en parsers de text i SPV de postfx

This commit is contained in:
2026-05-14 13:17:46 +02:00
parent 6bdb5c207c
commit 6f9bdcbeb6
6 changed files with 314 additions and 752 deletions
+3
View File
@@ -101,6 +101,9 @@ void Resource::preloadAll() {
std::vector<std::string> lines;
std::string line;
while (std::getline(ss, line)) {
// Normalitza CRLF perquè loadFromVector compari línies amb literals
// ("[animation]", "[/animation]") sense \r residual.
if (!line.empty() && line.back() == '\r') line.pop_back();
lines.push_back(line);
}
animationLines_[bname] = std::move(lines);