| 1 |
// |
| 2 |
// Copyright(C) 2020 by Ryan Krafnick |
| 3 |
// |
| 4 |
// This program is free software; you can redistribute it and/or |
| 5 |
// modify it under the terms of the GNU General Public License |
| 6 |
// as published by the Free Software Foundation; either version 2 |
| 7 |
// of the License, or (at your option) any later version. |
| 8 |
// |
| 9 |
// This program is distributed in the hope that it will be useful, |
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
// GNU General Public License for more details. |
| 13 |
// |
| 14 |
// DESCRIPTION: |
| 15 |
// DSDA Demo |
| 16 |
// |
| 17 |
|
| 18 |
#ifndef __DSDA_DEMO__ |
| 19 |
#define __DSDA_DEMO__ |
| 20 |
|
| 21 |
#include "d_ticcmd.h" |
| 22 |
|
| 23 |
#include "dsda/utility.h" |
| 24 |
|
| 25 |
const char* dsda_DemoNameBase(void); |
| 26 |
void dsda_SetDemoBaseName(const char* name); |
| 27 |
dboolean dsda_StartDemoSegment(const char* demo_name); |
| 28 |
const byte* dsda_EvaluateDemoStartPoint(const byte* demo_p); |
| 29 |
void dsda_ExportDemo(const char* name); |
| 30 |
void dsda_MarkCompatibilityLevelUnspecified(void); |
| 31 |
int dsda_BytesPerTic(void); |
| 32 |
int dsda_DemoTic(void); |
| 33 |
void dsda_EvaluateBytesPerTic(void); |
| 34 |
void dsda_RestoreCommandHistory(void); |
| 35 |
void dsda_InitDemoRecording(void); |
| 36 |
void dsda_WriteToDemo(const void* buffer, size_t length); |
| 37 |
void dsda_WriteQueueToDemo(const void* buffer, size_t length); |
| 38 |
void dsda_WriteTicToDemo(const void* buffer, size_t length); |
| 39 |
void dsda_WriteDemoToFile(void); |
| 40 |
dboolean dsda_CopyPendingCmd(ticcmd_t* cmd, int delta); |
| 41 |
void dsda_CopyPriorCmd(ticcmd_t* cmd, int delta); |
| 42 |
void dsda_QueueJoin(void); |
| 43 |
dboolean dsda_PendingJoin(void); |
| 44 |
void dsda_JoinDemoCmd(ticcmd_t* cmd); |
| 45 |
const byte* dsda_StripDemoVersion255(const byte* demo_p, const byte* header_p, size_t size); |
| 46 |
void dsda_WriteDSDADemoHeader(byte** p); |
| 47 |
void dsda_ApplyDSDADemoFormat(byte** demo_p); |
| 48 |
void dsda_GetDemoCheckSum(dsda_cksum_t* cksum, byte* features, size_t feature_slots, byte* demo, size_t demo_size); |
| 49 |
void dsda_GetDemoRecordingCheckSum(dsda_cksum_t* cksum); |
| 50 |
void dsda_EndDemoRecording(void); |
| 51 |
int dsda_DemoDataSize(byte complete); |
| 52 |
void dsda_StoreDemoData(byte complete); |
| 53 |
void dsda_RestoreDemoData(byte complete); |
| 54 |
int dsda_DemoTicsCount(const byte* p, const byte* demobuffer, int demolength); |
| 55 |
const byte* dsda_DemoMarkerPosition(byte* buffer, size_t file_size); |
| 56 |
|
| 57 |
#endif |