Remove netversion from demo editor init

This commit is contained in:
ChillerDragon 2024-05-06 08:44:27 +08:00 committed by Dennis Felsing
parent 399075c339
commit 53b01862d4
4 changed files with 4 additions and 6 deletions

View file

@ -2910,7 +2910,7 @@ void CClient::InitInterfaces()
m_pNotifications = Kernel()->RequestInterface<INotifications>();
m_pStorage = Kernel()->RequestInterface<IStorage>();
m_DemoEditor.Init(m_pGameClient->NetVersion(), &m_SnapshotDelta, m_pConsole, m_pStorage);
m_DemoEditor.Init(&m_SnapshotDelta, m_pConsole, m_pStorage);
m_ServerBrowser.SetBaseInfo(&m_aNetClient[CONN_CONTACT], m_pGameClient->NetVersion());

View file

@ -14,7 +14,7 @@ CDemoEdit::CDemoEdit(const char *pNetVersion, class CSnapshotDelta *pSnapshotDel
m_EndTick = EndTick;
// Init the demoeditor
m_DemoEditor.Init(pNetVersion, &m_SnapshotDelta, NULL, pStorage);
m_DemoEditor.Init(&m_SnapshotDelta, NULL, pStorage);
}
void CDemoEdit::Run()

View file

@ -1219,9 +1219,8 @@ public:
}
};
void CDemoEditor::Init(const char *pNetVersion, class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage)
void CDemoEditor::Init(class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage)
{
m_pNetVersion = pNetVersion;
m_pSnapshotDelta = pSnapshotDelta;
m_pConsole = pConsole;
m_pStorage = pStorage;

View file

@ -190,10 +190,9 @@ class CDemoEditor : public IDemoEditor
IConsole *m_pConsole;
IStorage *m_pStorage;
class CSnapshotDelta *m_pSnapshotDelta;
const char *m_pNetVersion;
public:
virtual void Init(const char *pNetVersion, class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage);
virtual void Init(class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage);
bool Slice(const char *pDemo, const char *pDst, int StartTick, int EndTick, DEMOFUNC_FILTER pfnFilter, void *pUser) override;
};