Replaced void* parameter with actual type

This commit is contained in:
Jordan Cristiano 2015-06-18 16:16:05 -04:00
parent 1f74901943
commit c6fb1e6ff2
3 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,12 @@
#pragma once
#include <cstdio>
class IDemoWriter;
namespace DemoReader
{
void ProcessDem(void* inputFp, IDemoWriter* writer);
void ProcessJson(void* inputFp, IDemoWriter* writer);
void ProcessDem(std::FILE* inputFp, IDemoWriter* writer);
void ProcessJson(std::FILE* inputFp, IDemoWriter* writer);
}

View File

@ -139,7 +139,7 @@ PacketTrailingBits ParsePacket(uint8_t* packet, size_t length,
return trailingBits;
}
void DemoReader::ProcessDem(void* inputFp, IDemoWriter* writer)
void DemoReader::ProcessDem(std::FILE* inputFp, IDemoWriter* writer)
{
void* netDataStructs[32];
void* demDataStructs[9];
@ -147,7 +147,7 @@ void DemoReader::ProcessDem(void* inputFp, IDemoWriter* writer)
CreateDemMsgStructs(demDataStructs);
SourceGameContext context = SourceGameContext();
DemoFileReader reader(reinterpret_cast<FILE*>(inputFp));
DemoFileReader reader(inputFp);
{
demoheader_t header;
reader.ReadDemoHeader(header);

View File

@ -1,6 +1,6 @@
#include "demoreader.h"
void DemoReader::ProcessJson(void* inputFp, IDemoWriter* writer)
void DemoReader::ProcessJson(std::FILE* inputFp, IDemoWriter* writer)
{
}