2015-06-11 06:19:17 +02:00
|
|
|
|
/**
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
* Copyright 2015 Ben Vanik. All rights reserved. *
|
|
|
|
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
2015-05-22 23:58:56 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
|
|
using Xenia.Debug.UI.Controls;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Xenia.Debug.UI.Views {
|
|
|
|
|
|
public partial class ModulesPanel : BasePanel {
|
|
|
|
|
|
private readonly Debugger debugger;
|
|
|
|
|
|
|
|
|
|
|
|
public ModulesPanel(Debugger debugger) {
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
this.debugger = debugger;
|
2015-05-24 22:43:15 +02:00
|
|
|
|
|
|
|
|
|
|
debugger.ModuleList.Changed += UpdateModulesList;
|
2015-06-09 06:12:40 +02:00
|
|
|
|
UpdateModulesList(debugger.ModuleList);
|
2015-05-24 22:43:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-09 06:12:40 +02:00
|
|
|
|
private void UpdateModulesList(ModuleList sender) {
|
2015-05-24 22:43:15 +02:00
|
|
|
|
modulesListView.BeginUpdate();
|
|
|
|
|
|
modulesListView.Items.Clear();
|
|
|
|
|
|
foreach (Module module in debugger.ModuleList) {
|
2015-06-09 06:12:40 +02:00
|
|
|
|
var item = new ListViewItem(new string[]{
|
|
|
|
|
|
module.Handle.ToString("X4"),
|
|
|
|
|
|
module.ModuleType == xe.debug.proto.ModuleType.Kernel ? "Kernel"
|
|
|
|
|
|
: "User",
|
|
|
|
|
|
module.Name,
|
|
|
|
|
|
module.Path,
|
|
|
|
|
|
});
|
|
|
|
|
|
modulesListView.Items.Add(item);
|
2015-05-24 22:43:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
modulesListView.EndUpdate();
|
2015-05-22 23:58:56 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|