mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-20 12:59:12 +00:00
CVarManager: Bring back de/serialization
This commit is contained in:
14
Runtime/Streams/CTextInStream.hpp
Normal file
14
Runtime/Streams/CTextInStream.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "Runtime/Streams/CInputStream.hpp"
|
||||
|
||||
namespace metaforce {
|
||||
class CTextInStream {
|
||||
CInputStream* m_in;
|
||||
s32 m_len;
|
||||
public:
|
||||
CTextInStream(CInputStream& in, int len);
|
||||
|
||||
bool IsEOF() { return m_in->GetReadPosition() >= m_len; }
|
||||
std::string GetNextLine();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user