mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
24 lines
823 B
C++
24 lines
823 B
C++
//=============================================================================
|
|
// Splitscreen manager
|
|
//
|
|
//=============================================================================
|
|
#include "cl_splitscreen.h"
|
|
|
|
CSplitScreen* g_pSplitScreenMgr;
|
|
|
|
#ifndef DEDICATED
|
|
CSetActiveSplitScreenPlayerGuard::CSetActiveSplitScreenPlayerGuard(char const* pchContext, int nLine, int slot)
|
|
{
|
|
m_pchContext = pchContext;
|
|
m_nLine = nLine;
|
|
m_nSaveSlot = g_pSplitScreenMgr->SetActiveSplitScreenPlayerSlot(slot);
|
|
m_bResolvable = g_pSplitScreenMgr->SetLocalPlayerIsResolvable(pchContext, nLine, true);
|
|
}
|
|
|
|
CSetActiveSplitScreenPlayerGuard::~CSetActiveSplitScreenPlayerGuard()
|
|
{
|
|
g_pSplitScreenMgr->SetActiveSplitScreenPlayerSlot(m_nSaveSlot);
|
|
g_pSplitScreenMgr->SetLocalPlayerIsResolvable(m_pchContext, m_nLine, m_bResolvable);
|
|
}
|
|
#endif
|