|
|
@ -25,6 +25,7 @@
|
|
|
|
#include "core/gdbstub/gdbstub.h"
|
|
|
|
#include "core/gdbstub/gdbstub.h"
|
|
|
|
#include "core/loader/loader.h"
|
|
|
|
#include "core/loader/loader.h"
|
|
|
|
#include "core/settings.h"
|
|
|
|
#include "core/settings.h"
|
|
|
|
|
|
|
|
#include "video_core/debug_utils/debug_utils.h"
|
|
|
|
#include "yuzu/about_dialog.h"
|
|
|
|
#include "yuzu/about_dialog.h"
|
|
|
|
#include "yuzu/bootmanager.h"
|
|
|
|
#include "yuzu/bootmanager.h"
|
|
|
|
#include "yuzu/configuration/config.h"
|
|
|
|
#include "yuzu/configuration/config.h"
|
|
|
@ -71,7 +72,7 @@ void GMainWindow::ShowCallouts() {}
|
|
|
|
|
|
|
|
|
|
|
|
GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
|
|
|
|
GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
|
|
|
|
|
|
|
|
|
|
|
|
Tegra::g_debug_context = Tegra::DebugContext::Construct();
|
|
|
|
debug_context = Tegra::DebugContext::Construct();
|
|
|
|
|
|
|
|
|
|
|
|
setAcceptDrops(true);
|
|
|
|
setAcceptDrops(true);
|
|
|
|
ui.setupUi(this);
|
|
|
|
ui.setupUi(this);
|
|
|
@ -165,12 +166,12 @@ void GMainWindow::InitializeDebugWidgets() {
|
|
|
|
connect(this, &GMainWindow::EmulationStopping, registersWidget,
|
|
|
|
connect(this, &GMainWindow::EmulationStopping, registersWidget,
|
|
|
|
&RegistersWidget::OnEmulationStopping);
|
|
|
|
&RegistersWidget::OnEmulationStopping);
|
|
|
|
|
|
|
|
|
|
|
|
graphicsBreakpointsWidget = new GraphicsBreakPointsWidget(Tegra::g_debug_context, this);
|
|
|
|
graphicsBreakpointsWidget = new GraphicsBreakPointsWidget(debug_context, this);
|
|
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsBreakpointsWidget);
|
|
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsBreakpointsWidget);
|
|
|
|
graphicsBreakpointsWidget->hide();
|
|
|
|
graphicsBreakpointsWidget->hide();
|
|
|
|
debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction());
|
|
|
|
debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction());
|
|
|
|
|
|
|
|
|
|
|
|
graphicsSurfaceWidget = new GraphicsSurfaceWidget(Tegra::g_debug_context, this);
|
|
|
|
graphicsSurfaceWidget = new GraphicsSurfaceWidget(debug_context, this);
|
|
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsSurfaceWidget);
|
|
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsSurfaceWidget);
|
|
|
|
graphicsSurfaceWidget->hide();
|
|
|
|
graphicsSurfaceWidget->hide();
|
|
|
|
debug_menu->addAction(graphicsSurfaceWidget->toggleViewAction());
|
|
|
|
debug_menu->addAction(graphicsSurfaceWidget->toggleViewAction());
|
|
|
@ -339,6 +340,8 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
|
|
|
|
|
|
|
|
|
|
|
Core::System& system{Core::System::GetInstance()};
|
|
|
|
Core::System& system{Core::System::GetInstance()};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system.SetGPUDebugContext(debug_context);
|
|
|
|
|
|
|
|
|
|
|
|
const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())};
|
|
|
|
const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())};
|
|
|
|
|
|
|
|
|
|
|
|
Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt");
|
|
|
|
Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt");
|
|
|
|