Replaced void* parameter with actual type
This commit is contained in:
parent
1f74901943
commit
c6fb1e6ff2
@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
class IDemoWriter;
|
class IDemoWriter;
|
||||||
|
|
||||||
namespace DemoReader
|
namespace DemoReader
|
||||||
{
|
{
|
||||||
void ProcessDem(void* inputFp, IDemoWriter* writer);
|
void ProcessDem(std::FILE* inputFp, IDemoWriter* writer);
|
||||||
void ProcessJson(void* inputFp, IDemoWriter* writer);
|
void ProcessJson(std::FILE* inputFp, IDemoWriter* writer);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ PacketTrailingBits ParsePacket(uint8_t* packet, size_t length,
|
|||||||
return trailingBits;
|
return trailingBits;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DemoReader::ProcessDem(void* inputFp, IDemoWriter* writer)
|
void DemoReader::ProcessDem(std::FILE* inputFp, IDemoWriter* writer)
|
||||||
{
|
{
|
||||||
void* netDataStructs[32];
|
void* netDataStructs[32];
|
||||||
void* demDataStructs[9];
|
void* demDataStructs[9];
|
||||||
@ -147,7 +147,7 @@ void DemoReader::ProcessDem(void* inputFp, IDemoWriter* writer)
|
|||||||
CreateDemMsgStructs(demDataStructs);
|
CreateDemMsgStructs(demDataStructs);
|
||||||
|
|
||||||
SourceGameContext context = SourceGameContext();
|
SourceGameContext context = SourceGameContext();
|
||||||
DemoFileReader reader(reinterpret_cast<FILE*>(inputFp));
|
DemoFileReader reader(inputFp);
|
||||||
{
|
{
|
||||||
demoheader_t header;
|
demoheader_t header;
|
||||||
reader.ReadDemoHeader(header);
|
reader.ReadDemoHeader(header);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
#include "demoreader.h"
|
#include "demoreader.h"
|
||||||
|
|
||||||
void DemoReader::ProcessJson(void* inputFp, IDemoWriter* writer)
|
void DemoReader::ProcessJson(std::FILE* inputFp, IDemoWriter* writer)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user