This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SERVER_CONTENT_HEADER | |
#define SERVER_CONTENT_HEADER | |
struct SOUND | |
{ | |
int m_Id; | |
const char* m_pFilename; | |
}; | |
struct SOUNDSET | |
{ | |
const char* m_pName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1/3] #1 c++ src/game/client/gameclient.cpp | |
In file included from src/engine/graphics.h:5, | |
from src/game/client/gameclient.cpp:2: | |
src/engine/kernel.h: In member function »TINTERFACE* IKernel::RequestInterface() [with TINTERFACE = IDemoRecorder]«: | |
src/game/client/gameclient.cpp:123: instantiated from here | |
src/engine/kernel.h:62: Fehler: incomplete type »IDemoRecorder« used in nested name specifier | |
bam: 'objs/game/client/gameclient.o' error 256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/client/component.h b/src/game/client/component.h | |
index 410be62..6e4b371 100755 | |
--- a/src/game/client/component.h | |
+++ b/src/game/client/component.h | |
@@ -23,6 +23,7 @@ protected: | |
class CRenderTools *RenderTools() const { return m_pClient->RenderTools(); } | |
class IConsole *Console() const { return m_pClient->Console(); } | |
class IDemoPlayer *DemoPlayer() const { return m_pClient->DemoPlayer(); } | |
+ class IDemoRecorder *DemoRecorder() const { return m_pClient->DemoRecorder(); } | |
class IServerBrowser *ServerBrowser() const { return m_pClient->ServerBrowser(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ENGINE_DEMO_H | |
#define ENGINE_DEMO_H | |
#include "kernel.h" | |
class IDemoPlayer : public IInterface | |
{ | |
MACRO_INTERFACE("demoplayer", 0) | |
public: | |
class CInfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ENGINE_SHARED_DEMOREC_H | |
#define ENGINE_SHARED_DEMOREC_H | |
#include <engine/demo.h> | |
#include "snapshot.h" | |
struct CDemoHeader | |
{ | |
char m_aMarker[8]; | |
char m_aNetversion[64]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bam all | |
[ 1/16] #1 c++ src/engine/shared/demorec.cpp | |
src/engine/demo.h: In constructor »CDemoRecorder::CDemoRecorder(CSnapshotDelta*)«: | |
src/engine/demo.h:32: Fehler: »IDemoRecorder::~IDemoRecorder()« ist privat | |
src/engine/shared/demorec.cpp:13: Fehler: in diesem Zusammenhang | |
In file included from src/engine/shared/demorec.cpp:5: | |
src/engine/demo.h: In destructor »virtual CDemoRecorder::~CDemoRecorder()«: | |
src/engine/demo.h:32: Fehler: »IDemoRecorder::~IDemoRecorder()« ist privat | |
src/engine/shared/demorec.h:17: Fehler: in diesem Zusammenhang | |
src/engine/shared/demorec.cpp: At global scope: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!DemoRecorder()->IsRecording()) | |
{ | |
MainView.VSplitLeft(100.0f, &Button, &MainView); | |
MainView.VSplitLeft(150.0f, &Button, &MainView); | |
if(DoButton_Menu(&s_DemoButton, Localize("Record demo"), 0, &Button)) | |
{ | |
// find filename | |
char aFilename[128]; | |
time_t Time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) bt | |
#0 __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:1281 | |
#1 0x08087c15 in CClient::OnDemoPlayerSnapshot(void*, int) () | |
#2 0x080548da in CMenus::RenderGame(CUIRect) () | |
#3 0x0806e5ac in CMenus::Render() () | |
#4 0x0806ebdd in CMenus::OnRender() () | |
#5 0x080508d7 in CGameClient::OnRender() () | |
#6 0x08089527 in CClient::Render() () | |
#7 0x0808ba9d in CClient::Run() () | |
#8 0x0808bf7e in main () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void CClient::OnDemoPlayerSnapshot(void *pData, int Size) | |
{ | |
// update ticks, they could have changed | |
const CDemoPlayer::CPlaybackInfo *pInfo = m_DemoPlayer.Info(); | |
CSnapshotStorage::CHolder *pTemp; | |
m_CurGameTick = pInfo->m_Info.m_CurrentTick; | |
m_PrevGameTick = pInfo->m_PreviousTick; | |
// handle snapshots | |
pTemp = m_aSnapshots[SNAP_PREV]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!DemoRecorder()->IsRecording()) | |
{ | |
MainView.VSplitLeft(100.0f, &Button, &MainView); | |
MainView.VSplitLeft(150.0f, &Button, &MainView); | |
if(DoButton_Menu(&s_DemoButton, Localize("Record demo"), 0, &Button)) | |
{ | |
// find filename | |
char aFilename[128]; | |
time_t Time; |
OlderNewer