# avoid complaining if console history file doesn't exist

This was SVN commit r3848.
This commit is contained in:
janwas 2006-05-04 15:27:06 +00:00
parent 086418993d
commit 6a4816a512

View File

@ -623,8 +623,14 @@ void CConsole::ProcessBuffer(const wchar_t* szLine){
void CConsole::LoadHistory()
{
FileIOBuf buf; unsigned int buflen;
// Don't care about failure; just don't load anything.
// note: we don't care if this file doesn't exist or can't be read;
// just don't load anything in that case.
// do this before vfs_load to avoid an error message if file not found.
if(!vfs_exists(m_sHistoryFile))
return;
FileIOBuf buf; size_t buflen;
if(vfs_load( m_sHistoryFile, buf, buflen ) < 0)
return;