Commit d859ab3c authored by Chen Bill's avatar Chen Bill

add ReadHeader

parent 4109aa5a
......@@ -203,6 +203,9 @@ bool Replay::ReadName(wchar_t* data) {
BufferIO::CopyWStr(buffer, data, 20);
return true;
}
void Replay::ReadHeader(ReplayHeader& header) {
header = pheader;
}
bool Replay::ReadData(void* data, size_t length) {
if(!is_replaying)
return false;
......
......@@ -51,7 +51,7 @@ public:
static bool RenameReplay(const wchar_t* oldname, const wchar_t* newname);
bool ReadNextResponse(unsigned char resp[]);
bool ReadName(wchar_t* data);
//void ReadHeader(ReplayHeader& header);
void ReadHeader(ReplayHeader& header);
bool ReadData(void* data, size_t length);
template<typename T>
T Read() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment