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:
parent
c5b66b8c77
commit
ecf6825a97
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue