Debugger: Refresh PPU viewers on code break

This commit is contained in:
Sour 2019-03-30 19:31:33 -04:00
parent b37eff42ab
commit fd0aefd130
3 changed files with 3 additions and 0 deletions

View file

@ -51,6 +51,7 @@ namespace Mesen.GUI.Debugger
private void OnNotificationReceived(NotificationEventArgs e) private void OnNotificationReceived(NotificationEventArgs e)
{ {
switch(e.NotificationType) { switch(e.NotificationType) {
case ConsoleNotificationType.CodeBreak:
case ConsoleNotificationType.ViewerRefresh: case ConsoleNotificationType.ViewerRefresh:
if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) { if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) {
ctrlPaletteViewer.RefreshData(); ctrlPaletteViewer.RefreshData();

View file

@ -68,6 +68,7 @@ namespace Mesen.GUI.Debugger
private void OnNotificationReceived(NotificationEventArgs e) private void OnNotificationReceived(NotificationEventArgs e)
{ {
switch(e.NotificationType) { switch(e.NotificationType) {
case ConsoleNotificationType.CodeBreak:
case ConsoleNotificationType.ViewerRefresh: case ConsoleNotificationType.ViewerRefresh:
if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) { if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) {
RefreshData(); RefreshData();

View file

@ -74,6 +74,7 @@ namespace Mesen.GUI.Debugger
private void OnNotificationReceived(NotificationEventArgs e) private void OnNotificationReceived(NotificationEventArgs e)
{ {
switch(e.NotificationType) { switch(e.NotificationType) {
case ConsoleNotificationType.CodeBreak:
case ConsoleNotificationType.ViewerRefresh: case ConsoleNotificationType.ViewerRefresh:
if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) { if(e.Parameter.ToInt32() == ctrlScanlineCycleSelect.ViewerId) {
RefreshData(); RefreshData();