We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f2d35 commit df2404bCopy full SHA for df2404b
src/VmaReplay/Common.cpp
@@ -12,6 +12,11 @@ bool LineSplit::GetNextLine(StrRange& out)
12
while(currLineEnd < m_NumBytes && m_Data[currLineEnd] != '\n')
13
++currLineEnd;
14
out.end = m_Data + currLineEnd;
15
+ // Ignore trailing '\r' to support Windows end of line.
16
+ if(out.end > out.beg && *(out.end - 1) == '\r')
17
+ {
18
+ --out.end;
19
+ }
20
m_NextLineBeg = currLineEnd + 1; // Past '\n'
21
++m_NextLineIndex;
22
return true;
0 commit comments