Skip to content

Commit

Permalink
Add Ignore Vitacheat DB files options
Browse files Browse the repository at this point in the history
- Adds the option to add VitaCheat's seg1 address and size to auto-remove or highlight pointers found inside the DB file.
  • Loading branch information
Yohoki committed Sep 29, 2022
1 parent 9d683cb commit 1b412ea
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 37 deletions.
123 changes: 98 additions & 25 deletions frmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 16 additions & 12 deletions frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -593,24 +593,28 @@ private void AddPointerTree(List<PointerSearcherLog> pointers, TreeNode parent)



string seg0Start = txtPointerSearcherSeg0Addr.Text;
string seg0Range = txtPointerSearcherSeg0Range.Text;
string seg1Start = txtPointerSearcherSeg1Addr.Text;
string seg1Range = txtPointerSearcherSeg1Range.Text;
/*if (pointers[index1].Address >= seg0Start && pointers[index1].Address <= seg0End)
{
rootedColor = Color.PowderBlue;
} else if (pointers[index1].Address >= seg1Start && pointers[index1].Address <= seg1End)
{
rootedColor = Color.PowderBlue;
}*/
string seg0Start = txtPointerSearcherSeg0Addr.Text;
string seg0Range = txtPointerSearcherSeg0Range.Text;
string seg1Start = txtPointerSearcherSeg1Addr.Text;
string seg1Range = txtPointerSearcherSeg1Range.Text;
string vitaCheatStart = txtPointerSearcherVitaCheatSeg1Address.Text;
string vitaCheatRange = txtPointerSearcherVitaCheatSeg1Range.Text;

//VitaCheat Seg1 Here
if (Utils.CheckInsideSegments(pointers[index1].Address, seg0Start, seg0Range) ||
Utils.CheckInsideSegments(pointers[index1].Address, seg1Start, seg1Range))
{
rootedColor = Color.PowderBlue;
}

if (!pointers[index1].Negative || chkPointerSearcherIncludeNegatives.Checked)
if (Utils.CheckInsideSegments(pointers[index1].Address, vitaCheatStart, vitaCheatRange))
{
if (chkIgnoreDBFiles.Checked) { continue; }
rootedColor = Color.Black;
color = Color.White;
}

if (!pointers[index1].Negative || chkPointerSearcherIncludeNegatives.Checked)
{
var node = new TreeNode
{
Expand Down

0 comments on commit 1b412ea

Please sign in to comment.