mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
VmaReplay: Added support for Windows end of lines.
This commit is contained in:
parent
8ec2ab69d6
commit
19875989e3
@ -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