Skip to content

Commit

Permalink
MemoryScanner: Fix default operator value
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 19, 2024
1 parent c279376 commit 163cb2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/memory_scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class MemoryScan

u32 m_value = 0;
MemoryAccessSize m_size = MemoryAccessSize::HalfWord;
Operator m_operator = Operator::Equal;
Operator m_operator = Operator::Any;
PhysicalMemoryAddress m_start_address = 0;
PhysicalMemoryAddress m_end_address = 0x200000;
ResultVector m_results;
Expand Down
2 changes: 2 additions & 0 deletions src/duckstation-qt/memoryscannerwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ void MemoryScannerWindow::connectUi()
{
m_ui.scanStartAddress->setText(formatHexValue(m_scanner.GetStartAddress(), 8));
m_ui.scanEndAddress->setText(formatHexValue(m_scanner.GetEndAddress(), 8));
m_ui.scanOperator->setCurrentIndex(static_cast<int>(m_scanner.GetOperator()));
m_ui.scanSize->setCurrentIndex(static_cast<int>(m_scanner.GetSize()));

connect(m_ui.scanValue, &QLineEdit::textChanged, this, &MemoryScannerWindow::updateScanValue);
connect(m_ui.scanValueBase, QOverload<int>::of(&QComboBox::currentIndexChanged),
Expand Down

0 comments on commit 163cb2f

Please sign in to comment.