Skip to content

Commit

Permalink
libdeng2|Refactor: Renamed LegacyCore_FlushLog()
Browse files Browse the repository at this point in the history
It is more aptly called LogBuffer_Flush(), as it has really nothing to
do with LegacyCore. The LogBuffer is a singleton instance.
  • Loading branch information
skyjake committed Apr 10, 2012
1 parent 35d8e9b commit f3906c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/con_main.c
Expand Up @@ -2114,7 +2114,7 @@ void Con_AbnormalShutdown(const char* message)
if(message) // Only show if a message given.
{
// Make sure all the buffered stuff goes into the file.
LegacyCore_FlushLog();
LogBuffer_Flush();

/// @todo Get the actual output filename (might be a custom one).
Sys_MessageBoxWithDetailsFromFile(MBT_ERROR, DOOMSDAY_NICENAME, message,
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/c_wrapper.h
Expand Up @@ -65,12 +65,12 @@ DENG2_PUBLIC int LegacyCore_SetLogFile(LegacyCore* lc, const char* filePath);
DENG2_PUBLIC const char* LegacyCore_LogFile(LegacyCore* lc);
DENG2_PUBLIC void LegacyCore_PrintLogFragment(LegacyCore* lc, const char* text);
DENG2_PUBLIC void LegacyCore_PrintfLogFragmentAtLevel(LegacyCore* lc, legacycore_loglevel_t level, const char* format, ...);
DENG2_PUBLIC void LegacyCore_FlushLog(void);

/*
* LogBuffer
*/
DENG2_PUBLIC void LogBuffer_EnableStandardOutput(int enable);
DENG2_PUBLIC void LogBuffer_Flush(void);

/*
* LegacyNetwork
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/c_wrapper.cpp
Expand Up @@ -132,7 +132,7 @@ void LegacyCore_PrintfLogFragmentAtLevel(LegacyCore* lc, legacycore_loglevel_t l
self->printLogFragment(buffer, logLevel);
}

void LegacyCore_FlushLog(void)
void LogBuffer_Flush(void)
{
de::LogBuffer::appBuffer().flush();
}
Expand Down

0 comments on commit f3906c2

Please sign in to comment.