mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-18 14:48:44 +02:00
* chore : disable unwanted warnings and minor code cleanup * chore : remove more warnings * fix : reorder struct correctly * fix : restore _isKernel and remove useless comment * fix : copy/paste error * fix : restore CallMethod call * fix : whitespace * chore : clean using * feat : remove warnings * fix : simplify warning removal on struct * fix : revert fields deletion and code clean up * fix : re-add RE value * fix : typo
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Gtk;
|
|
using System;
|
|
using GUI = Gtk.Builder.ObjectAttribute;
|
|
|
|
namespace Ryujinx.Debugger.UI
|
|
{
|
|
public class DebuggerWidget : Box
|
|
{
|
|
public event EventHandler DebuggerEnabled;
|
|
public event EventHandler DebuggerDisabled;
|
|
|
|
#pragma warning disable CS0649
|
|
[GUI] Notebook _widgetNotebook;
|
|
#pragma warning restore CS0649
|
|
|
|
public DebuggerWidget() : this(new Builder("Ryujinx.Debugger.UI.DebuggerWidget.glade")) { }
|
|
|
|
public DebuggerWidget(Builder builder) : base(builder.GetObject("_debuggerBox").Handle)
|
|
{
|
|
builder.Autoconnect(this);
|
|
|
|
LoadProfiler();
|
|
}
|
|
|
|
public void LoadProfiler()
|
|
{
|
|
ProfilerWidget widget = new ProfilerWidget();
|
|
|
|
widget.RegisterParentDebugger(this);
|
|
|
|
_widgetNotebook.AppendPage(widget, new Label("Profiler"));
|
|
}
|
|
|
|
public void Enable()
|
|
{
|
|
DebuggerEnabled.Invoke(this, null);
|
|
}
|
|
|
|
public void Disable()
|
|
{
|
|
DebuggerDisabled.Invoke(this, null);
|
|
}
|
|
}
|
|
}
|