diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /replay/sv_basejob.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'replay/sv_basejob.cpp')
| -rw-r--r-- | replay/sv_basejob.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/replay/sv_basejob.cpp b/replay/sv_basejob.cpp new file mode 100644 index 0000000..aeb0d8e --- /dev/null +++ b/replay/sv_basejob.cpp @@ -0,0 +1,31 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +//=======================================================================================// + +#include "sv_basejob.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//---------------------------------------------------------------------------------------- + +CBaseJob::CBaseJob( JobPriority_t priority/*=JP_NORMAL*/, + ISpewer *pSpewer/*=g_pDefaultSpewer*/ ) +: CJob( priority ), + CBaseSpewer( pSpewer ), + m_nError( ERROR_NONE ) +{ + m_szError[ 0 ] = '\0'; +} + +void CBaseJob::SetError( int nError, const char *pError ) +{ + m_nError = nError; + + if ( pError ) + { + V_strcpy( m_szError, pError ); + } +} + +//----------------------------------------------------------------------------------------
\ No newline at end of file |