mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
583d6e6c01
while IFS= read -r line; do file=${line%%:*}; lineno=$(echo $line | cut -d':' -f2); echo "Treating $file line $lineno"; sed -i -e "${lineno}s/virtual //" -e "${lineno}s/);\$/) override;/" -e "${lineno}s/)\$/) override/" -e "${lineno}s/const\$/const override/" -e "${lineno}s/) {/) override {/" -e "${lineno}s/) const {/) const override {/" -e "${lineno}s/const;$/const override;/" "$file"; done < a
28 lines
610 B
C++
28 lines
610 B
C++
#ifndef ENGINE_CLIENT_DEMOEDIT_H
|
|
#define ENGINE_CLIENT_DEMOEDIT_H
|
|
|
|
#include <engine/shared/demo.h>
|
|
#include <engine/shared/jobs.h>
|
|
#include <engine/shared/snapshot.h>
|
|
|
|
class IStorage;
|
|
|
|
class CDemoEdit : public IJob
|
|
{
|
|
CSnapshotDelta m_SnapshotDelta;
|
|
IStorage *m_pStorage;
|
|
|
|
CDemoEditor m_DemoEditor;
|
|
|
|
char m_aDemo[256];
|
|
char m_aDst[256];
|
|
int m_StartTick;
|
|
int m_EndTick;
|
|
|
|
public:
|
|
CDemoEdit(const char *pNetVersion, CSnapshotDelta *pSnapshotDelta, IStorage *pStorage, const char *pDemo, const char *pDst, int StartTick, int EndTick);
|
|
void Run() override;
|
|
char *Destination() { return m_aDst; }
|
|
};
|
|
#endif
|