mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 10:57:02 +00:00
Initial proper CTexture RE, fix configuration corruption
This commit is contained in:
@@ -6,13 +6,10 @@ CTextInStream::CTextInStream(CInputStream& in, int len) : m_in(&in), m_len(len)
|
||||
|
||||
std::string CTextInStream::GetNextLine() {
|
||||
std::string ret;
|
||||
while (true) {
|
||||
while (!IsEOF()) {
|
||||
auto chr = m_in->ReadChar();
|
||||
ret += chr;
|
||||
if (ret.back() == '\r' || ret.back() == '\n') {
|
||||
if (ret.back() == '\r') {
|
||||
m_in->ReadChar();
|
||||
}
|
||||
if (ret.back() == '\n') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user