diff --git a/src/core/memory_scanner.h b/src/core/memory_scanner.h index 5189f88a4..659dc6d62 100644 --- a/src/core/memory_scanner.h +++ b/src/core/memory_scanner.h @@ -80,7 +80,7 @@ private: 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; diff --git a/src/duckstation-qt/memoryscannerwindow.cpp b/src/duckstation-qt/memoryscannerwindow.cpp index 1d789cb47..ff56d6c46 100644 --- a/src/duckstation-qt/memoryscannerwindow.cpp +++ b/src/duckstation-qt/memoryscannerwindow.cpp @@ -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(m_scanner.GetOperator())); + m_ui.scanSize->setCurrentIndex(static_cast(m_scanner.GetSize())); connect(m_ui.scanValue, &QLineEdit::textChanged, this, &MemoryScannerWindow::updateScanValue); connect(m_ui.scanValueBase, QOverload::of(&QComboBox::currentIndexChanged),