2015-06-14 23:23:09 +02:00
|
|
|
|
|
|
|
#include "dem_consolecmd.h"
|
|
|
|
#include "demofile/demofile.h"
|
|
|
|
|
|
|
|
namespace DemHandlers
|
|
|
|
{
|
2015-06-19 02:18:55 +02:00
|
|
|
bool Dem_ConsoleCmd_FileRead_Internal(FileRead& demofile, DemMsg::Dem_ConsoleCmd* data)
|
2015-06-14 23:23:09 +02:00
|
|
|
{
|
|
|
|
char command[DemMsg::Dem_ConsoleCmd::COMMAND_MAX_LENGTH];
|
|
|
|
demofile.ReadRawData(reinterpret_cast<uint8_t*>(command), sizeof(command));
|
|
|
|
data->command.assign(command);
|
|
|
|
return demofile.IsOk();
|
|
|
|
}
|
|
|
|
}
|