Dont open log file unless you intend to write to it

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1187 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-16 19:22:10 +00:00
parent c5b66b8c77
commit ecf6825a97
1 changed files with 4 additions and 0 deletions

View File

@ -84,16 +84,20 @@ CDebugger_LogSettings::~CDebugger_LogSettings(void) {}
void CDebugger_Log::Init()
{
#ifdef LOGGING
m_pFile = fopen(m_szFilename, "wtb");
#endif
}
void CDebugger_Log::Shutdown()
{
#ifdef LOGGING
if (m_pFile != NULL)
{
fclose(m_pFile);
m_pFile = NULL;
}
#endif
}