Merge pull request 'fix(macOS): Compiler Issues' (#131) from fix/sigsegv into main

Reviewed-on: https://git.citron-emu.org/Citron/Emulator/pulls/131
This commit is contained in:
Collecting
2026-02-09 03:19:26 +01:00
4 changed files with 10 additions and 10 deletions

View File

@@ -4,15 +4,15 @@
#include <QDesktopServices>
#include <QMessageBox>
#include <QUrl>
#include "citron/configuration/configure_debug.h"
#include "citron/debugger/console.h"
#include "citron/uisettings.h"
#include "common/fs/path_util.h"
#include "common/logging/backend.h"
#include "common/logging/filter.h"
#include "common/settings.h"
#include "core/core.h"
#include "ui_configure_debug.h"
#include "citron/configuration/configure_debug.h"
#include "citron/debugger/console.h"
#include "citron/uisettings.h"
ConfigureDebug::ConfigureDebug(const Core::System& system_, QWidget* parent)
: QScrollArea(parent), ui{std::make_unique<Ui::ConfigureDebug>()}, system{system_} {
@@ -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();
CitronDebugger::ToggleConsole();
Common::Log::Filter filter;
filter.ParseFilterString(Settings::values.log_filter.GetValue());
Common::Log::SetGlobalFilter(filter);

View File

@@ -7,11 +7,11 @@
#include <wincon.h>
#endif
#include "common/logging/backend.h"
#include "citron/debugger/console.h"
#include "citron/uisettings.h"
#include "common/logging/backend.h"
namespace Debugger {
namespace CitronDebugger {
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 CitronDebugger

View File

@@ -3,11 +3,11 @@
#pragma once
namespace Debugger {
namespace CitronDebugger {
/**
* 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 CitronDebugger

View File

@@ -1599,7 +1599,7 @@ void GMainWindow::RestoreUIState() {
vram_overlay->SetVisible(false);
}
Debugger::ToggleConsole();
CitronDebugger::ToggleConsole();
}
void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {