Removed filename member var from demofile
This commit is contained in:
parent
ad81ecc67d
commit
b3bab786c8
@ -176,7 +176,7 @@ bool CDemoFile::Open( const char *name )
|
|||||||
|
|
||||||
if ( strcmp ( m_DemoHeader.demofilestamp, DEMO_HEADER_ID ) )
|
if ( strcmp ( m_DemoHeader.demofilestamp, DEMO_HEADER_ID ) )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "CDemoFile::Open: %s has invalid demo header ID.\n", m_szFileName.c_str() );
|
fprintf(stderr, "CDemoFile::Open: %s has invalid demo header ID.\n", name);
|
||||||
fclose( fp );
|
fclose( fp );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -211,13 +211,11 @@ bool CDemoFile::Open( const char *name )
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_fileBufferPos = 0;
|
m_fileBufferPos = 0;
|
||||||
m_szFileName = name;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDemoFile::Close()
|
void CDemoFile::Close()
|
||||||
{
|
{
|
||||||
m_szFileName.clear();
|
|
||||||
m_signOnData.clear();
|
m_signOnData.clear();
|
||||||
m_fileBuffer.clear();
|
m_fileBuffer.clear();
|
||||||
|
|
||||||
|
@ -246,7 +246,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
demoheader_t m_DemoHeader; //general demo info
|
demoheader_t m_DemoHeader; //general demo info
|
||||||
|
|
||||||
std::string m_szFileName;
|
|
||||||
std::string m_signOnData;
|
std::string m_signOnData;
|
||||||
std::string m_fileBuffer;
|
std::string m_fileBuffer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user