mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
VmaReplay: Added support for Windows end of lines.
This commit is contained in:
parent
99f2d3543c
commit
df2404b6a5
@ -12,6 +12,11 @@ bool LineSplit::GetNextLine(StrRange& out)
|
||||
while(currLineEnd < m_NumBytes && m_Data[currLineEnd] != '\n')
|
||||
++currLineEnd;
|
||||
out.end = m_Data + currLineEnd;
|
||||
// Ignore trailing '\r' to support Windows end of line.
|
||||
if(out.end > out.beg && *(out.end - 1) == '\r')
|
||||
{
|
||||
--out.end;
|
||||
}
|
||||
m_NextLineBeg = currLineEnd + 1; // Past '\n'
|
||||
++m_NextLineIndex;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user