forked from Babyhamsta/Aimmy
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor logging to use LogError method
Replaced Debug.WriteLine and MessageBox.Show calls in AIManager.cs with a new LogError method for consistent error logging. LogError writes to debug.txt if "Debug Mode" is enabled in Dictionary.toggleState. Specific changes include: - Commented out Debug.WriteLine for average loop iteration time and added LogError. - Replaced MessageBox.Show for screen errors with LogError. - Added LogError for device removal and frame acquisition failures. - Replaced Debug.WriteLine for SharpGenException and screen capture errors with LogError. - Introduced private LogError method to handle logging.
- Loading branch information
1 parent
cce7a1e
commit 5a2272e
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters