mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Revert "Merge pull request #83 from lioncash/remove-console"
This breaks Linux stdout logging. This reverts commit7ac5b1f2f8
, reversing changes made to9bc14012fc
. Revert "Merge pull request #77 from lioncash/remove-console" This reverts commit9bc14012fc
, reversing changes made tob18a33377d
. Conflicts: Source/Core/Common/LogManager.cpp Source/Core/DolphinWX/Frame.cpp Source/Core/DolphinWX/FrameAui.cpp Source/Core/DolphinWX/LogConfigWindow.cpp Source/Core/DolphinWX/LogWindow.cpp
This commit is contained in:
@ -44,6 +44,7 @@
|
||||
#include <wx/aui/framemanager.h>
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/ConsoleListener.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
@ -309,8 +310,11 @@ CFrame::CFrame(wxFrame* parent,
|
||||
for (int i = 0; i <= IDM_CODEWINDOW - IDM_LOGWINDOW; i++)
|
||||
bFloatWindow[i] = false;
|
||||
|
||||
if (ShowLogWindow)
|
||||
SConfig::GetInstance().m_InterfaceLogWindow = true;
|
||||
if (ShowLogWindow) SConfig::GetInstance().m_InterfaceLogWindow = true;
|
||||
|
||||
// Give it a console early to show potential messages from this onward
|
||||
ConsoleListener *Console = LogManager::GetInstance()->GetConsoleListener();
|
||||
if (SConfig::GetInstance().m_InterfaceConsole) Console->Open();
|
||||
|
||||
// Start debugging maximized
|
||||
if (UseDebugger) this->Maximize(true);
|
||||
@ -388,6 +392,8 @@ CFrame::CFrame(wxFrame* parent,
|
||||
ToggleLogWindow(true);
|
||||
if (SConfig::GetInstance().m_InterfaceLogConfigWindow)
|
||||
ToggleLogConfigWindow(true);
|
||||
if (SConfig::GetInstance().m_InterfaceConsole)
|
||||
ToggleConsole(true);
|
||||
}
|
||||
|
||||
// Show window
|
||||
@ -675,6 +681,7 @@ void CFrame::OnRenderWindowSizeRequest(int width, int height)
|
||||
// Add space for the log/console/debugger window
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain &&
|
||||
(SConfig::GetInstance().m_InterfaceLogWindow ||
|
||||
SConfig::GetInstance().m_InterfaceConsole ||
|
||||
SConfig::GetInstance().m_InterfaceLogConfigWindow) &&
|
||||
!m_Mgr->GetPane(wxT("Pane 1")).IsFloating())
|
||||
{
|
||||
|
Reference in New Issue
Block a user