Skip to content

Commit

Permalink
Add label for base address and pointer address
Browse files Browse the repository at this point in the history
  • Loading branch information
makotech222 committed May 27, 2018
1 parent 92785dc commit 229ca1a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/citra_qt/cheatsearch.cpp
Expand Up @@ -23,6 +23,13 @@ CheatSearch::CheatSearch(QWidget *parent) :
ui->btnNextScan->setEnabled(false);
ui->lblTo->setVisible(false);
ui->txtSearchTo->setVisible(false);
auto ss = stringstream();
ss << (void*)Memory::_baseMemoryAddress;
ui->txtBaseMemoryAddress->setText(QString::fromStdString("Base Address: " + ss.str()));
ss = stringstream();
ss << (void*)&Memory::_baseMemoryAddress;
ui->txtPointerAddress->setText(QString::fromStdString("Pointer Address(for CE): " + ss.str()));

ui->tableFound->setEditTriggers(QAbstractItemView::NoEditTriggers);
ui->tableFound->setSelectionBehavior(QAbstractItemView::SelectRows);
previous_found = make_shared<std::vector<FoundItems>>();
Expand Down
32 changes: 32 additions & 0 deletions src/citra_qt/cheatsearch.ui
Expand Up @@ -237,6 +237,38 @@
<string>To</string>
</property>
</widget>
<widget class="QLabel" name="txtBaseMemoryAddress">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>391</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Base Address</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
<widget class="QLabel" name="txtPointerAddress">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>421</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Pointer Address</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
Expand Down

0 comments on commit 229ca1a

Please sign in to comment.