2010-08-02 08:13:51 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
|
|
|
|
|
|
|
This file is part of EDuke32.
|
|
|
|
|
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-08-02 08:13:51 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef demo_h_
|
|
|
|
#define demo_h_
|
2010-08-02 08:13:51 +00:00
|
|
|
|
2018-11-18 18:09:48 +00:00
|
|
|
#include "compat.h"
|
2019-03-01 08:51:50 +00:00
|
|
|
#include "vfs.h"
|
|
|
|
#include "cache1d.h"
|
2018-11-18 18:09:48 +00:00
|
|
|
|
2012-10-01 17:52:40 +00:00
|
|
|
#define DEMOFN_FMT "edemo%03d.edm"
|
|
|
|
#define MAXDEMOS 1000
|
|
|
|
|
2019-03-01 08:51:50 +00:00
|
|
|
extern buildvfs_FILE g_demo_filePtr;
|
2012-09-05 17:25:26 +00:00
|
|
|
extern char g_firstDemoFile[BMAX_PATH];
|
2010-08-02 08:13:51 +00:00
|
|
|
|
|
|
|
extern int32_t demoplay_diffs;
|
|
|
|
extern int32_t demoplay_showsync;
|
|
|
|
extern int32_t demorec_diffcompress_cvar;
|
|
|
|
extern int32_t demorec_diffs_cvar;
|
|
|
|
extern int32_t demorec_difftics_cvar;
|
|
|
|
extern int32_t demorec_force_cvar;
|
|
|
|
extern int32_t demorec_seeds_cvar;
|
|
|
|
extern int32_t demorec_synccompress_cvar;
|
|
|
|
extern int32_t g_demo_cnt;
|
|
|
|
extern int32_t g_demo_goalCnt;
|
|
|
|
extern int32_t g_demo_paused;
|
2019-03-01 08:51:50 +00:00
|
|
|
extern buildvfs_kfd g_demo_recFilePtr;
|
2010-08-02 08:13:51 +00:00
|
|
|
extern int32_t g_demo_rewind;
|
|
|
|
extern int32_t g_demo_showStats;
|
|
|
|
extern int32_t g_demo_totalCnt;
|
|
|
|
|
|
|
|
int32_t G_PlaybackDemo(void);
|
2012-09-05 17:25:26 +00:00
|
|
|
void Demo_PrepareWarp(void);
|
2010-08-02 08:13:51 +00:00
|
|
|
void G_CloseDemoWrite(void);
|
|
|
|
void G_DemoRecord(void);
|
|
|
|
void G_OpenDemoWrite(void);
|
|
|
|
|
2012-09-24 21:09:27 +00:00
|
|
|
void Demo_PlayFirst(int32_t prof, int32_t exitafter);
|
2012-10-01 17:52:40 +00:00
|
|
|
void Demo_SetFirst(const char *demostr);
|
2012-09-15 15:28:26 +00:00
|
|
|
|
|
|
|
int32_t Demo_IsProfiling(void);
|
2012-09-08 22:18:37 +00:00
|
|
|
|
2010-08-02 08:13:51 +00:00
|
|
|
#if KRANDDEBUG
|
|
|
|
int32_t krd_print(const char *filename);
|
|
|
|
void krd_enable(int32_t which);
|
|
|
|
#endif
|
|
|
|
|
2010-08-12 21:06:51 +00:00
|
|
|
#endif
|