[FEATURE] Restart search from the beginning if ended

This commit is contained in:
hasherezade
2026-06-03 15:16:37 -08:00
parent 97fcdd026e
commit 3c46a87949
+4 -1
View File
@@ -65,8 +65,11 @@ void PatternSearchWindow::onSearchClicked()
MappedExe* exe = m_peHndl->getPe();
if (!exe) return;
const offset_t maxOffset = exe->getContentSize();
offset_t offset = startOffsetBox.value();
if (this->progressBar.value() == this->progressBar.maximum()) {
startOffsetBox.setValue(0);
offset = 0;
}
const size_t fullSize = exe->getContentSize();
if (offset >= fullSize) return;