MCPcopy Create free account
hub / github.com/clementgallet/libTAS / getCompareParameters

Method getCompareParameters

src/program/ui/RamSearchWindow.cpp:248–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void RamSearchWindow::getCompareParameters(CompareType& compare_type, CompareOperator& compare_operator, MemValueType& compare_value, MemValueType& different_value)
249{
250 compare_type = CompareType::Previous;
251 if (compareValueButton->isChecked()) {
252 compare_type = CompareType::Value;
253 compare_value = MemValue::from_string(qPrintable(comparingValueBox->text()), typeBox->currentIndex(), false);
254 }
255
256 compare_operator = CompareOperator::Equal;
257 if (operatorNotEqualButton->isChecked())
258 compare_operator = CompareOperator::NotEqual;
259 if (operatorLessButton->isChecked())
260 compare_operator = CompareOperator::Less;
261 if (operatorGreaterButton->isChecked())
262 compare_operator = CompareOperator::Greater;
263 if (operatorLessEqualButton->isChecked())
264 compare_operator = CompareOperator::LessEqual;
265 if (operatorGreaterEqualButton->isChecked())
266 compare_operator = CompareOperator::GreaterEqual;
267 if (operatorDifferenceButton->isChecked()) {
268 compare_operator = CompareOperator::Different;
269 different_value = MemValue::from_string(qPrintable(differenceValueBox->text()), typeBox->currentIndex(), false);
270 }
271}
272
273void RamSearchWindow::slotNew()
274{

Callers

nothing calls this directly

Calls 1

textMethod · 0.80

Tested by

no test coverage detected