mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Removed code and functions that were not needed
This commit is contained in:
parent
6a16037391
commit
479750d1fa
4 changed files with 4 additions and 13 deletions
|
@ -973,11 +973,6 @@ void MemoryViewWidget::SetAddress(u32 address)
|
||||||
UpdateDispatcher(UpdateType::Addresses);
|
UpdateDispatcher(UpdateType::Addresses);
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 MemoryViewWidget::GetAddress()
|
|
||||||
{
|
|
||||||
return m_address;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MemoryViewWidget::SetBPLoggingEnabled(bool enabled)
|
void MemoryViewWidget::SetBPLoggingEnabled(bool enabled)
|
||||||
{
|
{
|
||||||
m_do_log = enabled;
|
m_do_log = enabled;
|
||||||
|
|
|
@ -97,7 +97,6 @@ public:
|
||||||
void SetHighlightColor();
|
void SetHighlightColor();
|
||||||
void SetBPType(BPType type);
|
void SetBPType(BPType type);
|
||||||
void SetAddress(u32 address);
|
void SetAddress(u32 address);
|
||||||
u32 GetAddress();
|
|
||||||
void SetFocus() const;
|
void SetFocus() const;
|
||||||
|
|
||||||
void SetBPLoggingEnabled(bool enabled);
|
void SetBPLoggingEnabled(bool enabled);
|
||||||
|
|
|
@ -366,13 +366,11 @@ void MemoryWidget::ConnectWidgets()
|
||||||
{
|
{
|
||||||
connect(radio, &QRadioButton::toggled, this, &MemoryWidget::OnAddressSpaceChanged);
|
connect(radio, &QRadioButton::toggled, this, &MemoryWidget::OnAddressSpaceChanged);
|
||||||
}
|
}
|
||||||
for (auto* combo : {m_display_combo, m_align_combo, m_row_length_combo, m_find_align})
|
for (auto* combo : {m_display_combo, m_align_combo, m_row_length_combo})
|
||||||
{
|
{
|
||||||
connect(combo, &QComboBox::currentIndexChanged, this, &MemoryWidget::OnDisplayChanged);
|
connect(combo, &QComboBox::currentIndexChanged, this, &MemoryWidget::OnDisplayChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(m_find_auto_mem_bp, &QCheckBox::toggled, this, &MemoryWidget::OnDisplayChanged);
|
|
||||||
connect(m_find_auto_code_bp, &QCheckBox::toggled, this, &MemoryWidget::OnDisplayChanged);
|
|
||||||
connect(m_dual_check, &QCheckBox::toggled, this, &MemoryWidget::OnDisplayChanged);
|
connect(m_dual_check, &QCheckBox::toggled, this, &MemoryWidget::OnDisplayChanged);
|
||||||
|
|
||||||
for (auto* radio : {m_bp_read_write, m_bp_read_only, m_bp_write_only})
|
for (auto* radio : {m_bp_read_write, m_bp_read_only, m_bp_write_only})
|
||||||
|
@ -936,15 +934,15 @@ void MemoryWidget::OnFindNextValue()
|
||||||
|
|
||||||
while (FindValue(true))
|
while (FindValue(true))
|
||||||
{
|
{
|
||||||
if ((alignment == 0) || ((m_memory_view->GetAddress() & (alignment - 1)) == 0))
|
if ((alignment == 0) || ((GetTargetAddress().address & (alignment - 1)) == 0))
|
||||||
{
|
{
|
||||||
if (set_mem_bp)
|
if (set_mem_bp)
|
||||||
{
|
{
|
||||||
m_memory_view->ToggleBreakpoint(m_memory_view->GetAddress(), false);
|
m_memory_view->ToggleBreakpoint(GetTargetAddress().address, false);
|
||||||
}
|
}
|
||||||
if (set_code_bp && (4 <= alignment))
|
if (set_code_bp && (4 <= alignment))
|
||||||
{
|
{
|
||||||
m_system.GetPowerPC().GetBreakPoints().ToggleBreakPoint(m_memory_view->GetAddress());
|
m_system.GetPowerPC().GetBreakPoints().ToggleBreakPoint(GetTargetAddress().address);
|
||||||
emit Host::GetInstance()->PPCBreakpointsChanged();
|
emit Host::GetInstance()->PPCBreakpointsChanged();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -60,7 +60,6 @@ private:
|
||||||
void OnBPTypeChanged();
|
void OnBPTypeChanged();
|
||||||
|
|
||||||
void OnSearchAddress();
|
void OnSearchAddress();
|
||||||
void OnBreakOnAll();
|
|
||||||
void OnFindNextValue();
|
void OnFindNextValue();
|
||||||
void OnFindPreviousValue();
|
void OnFindPreviousValue();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue