Skip to content

Commit

Permalink
clear method for the bypass bc I forgot about it
Browse files Browse the repository at this point in the history
  • Loading branch information
szaaamerik committed Jan 6, 2024
1 parent f988eab commit 20d4549
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Forza-Mods-AIO/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ private static void ClearDetours()
MiscellaneousPage.MiscPage.WasSkillDetoured = false;
EnvironmentPage.WasTimeDetoured = false;
TeleportsPage.WaypointDetoured = false;
Clear();
IsScanRunning = false;
}
#endregion
Expand Down
6 changes: 6 additions & 0 deletions Forza-Mods-AIO/Resources/Bypass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,10 @@ private static void Destroy()
const uint memRelease = 0x8000;
VirtualFreeEx(Mw.Gvp.Process.Handle, _memCopyAddress, 0, memRelease);
}

public static void Clear()
{
_memCopyAddress = 0;
CheckDetour.Clear();
}
}

0 comments on commit 20d4549

Please sign in to comment.