This commit is contained in:
Reg Tiangha 2024-06-23 14:54:16 -07:00 committed by GitHub
commit 20bd987a5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -2,7 +2,9 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include <boost/container/small_vector.hpp>
#include <optional>
#include "common/common_types.h"
#include "common/microprofile.h"
#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h"
#include "core/hle/service/nvnflinger/buffer_item.h"

View file

@ -111,7 +111,7 @@ void ConfigureDebug::ApplyConfiguration() {
Settings::values.extended_logging = ui->extended_logging->isChecked();
Settings::values.perform_vulkan_check = ui->perform_vulkan_check->isChecked();
UISettings::values.disable_web_applet = ui->disable_web_applet->isChecked();
Debugger::ToggleConsole();
DebuggerYuzu::ToggleConsole();
Common::Log::Filter filter;
filter.ParseFilterString(Settings::values.log_filter.GetValue());
Common::Log::SetGlobalFilter(filter);

View file

@ -11,7 +11,7 @@
#include "yuzu/debugger/console.h"
#include "yuzu/uisettings.h"
namespace Debugger {
namespace DebuggerYuzu {
void ToggleConsole() {
static bool console_shown = false;
if (console_shown == UISettings::values.show_console.GetValue()) {
@ -46,4 +46,4 @@ void ToggleConsole() {
SetColorConsoleBackendEnabled(UISettings::values.show_console.GetValue());
#endif
}
} // namespace Debugger
} // namespace DebuggerYuzu

View file

@ -3,11 +3,11 @@
#pragma once
namespace Debugger {
namespace DebuggerYuzu {
/**
* Uses the WINAPI to hide or show the stderr console. This function is a placeholder until we can
* get a real qt logging window which would work for all platforms.
*/
void ToggleConsole();
} // namespace Debugger
} // namespace DebuggerYuzu

View file

@ -1420,7 +1420,7 @@ void GMainWindow::RestoreUIState() {
ui->action_Show_Status_Bar->setChecked(UISettings::values.show_status_bar.GetValue());
statusBar()->setVisible(ui->action_Show_Status_Bar->isChecked());
Debugger::ToggleConsole();
DebuggerYuzu::ToggleConsole();
}
void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {