From 8b5241ffe2f5fe701e35e19625baeee4ab5af447 Mon Sep 17 00:00:00 2001 From: BranK <23649425+ItsBranK@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:03:45 -0400 Subject: [PATCH] Changed some internal naming standards --- Forms/AboutFrm.cs | 2 +- Forms/MainFrm.cs | 17 ++++++++--------- Framwork/Assembly.cs | 12 ++++++------ Properties/PublishProfiles/FolderProfile.pubxml | 4 ++-- .../PublishProfiles/FolderProfile.pubxml.user | 2 +- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/Forms/AboutFrm.cs b/Forms/AboutFrm.cs index 5651c89..e664625 100644 --- a/Forms/AboutFrm.cs +++ b/Forms/AboutFrm.cs @@ -29,4 +29,4 @@ private void IconsLbl_Click(object sender, EventArgs e) Process.Start(new ProcessStartInfo(IconsLbl.Text) { UseShellExecute = true }); } } -} +} \ No newline at end of file diff --git a/Forms/MainFrm.cs b/Forms/MainFrm.cs index 95df91d..5ecf269 100644 --- a/Forms/MainFrm.cs +++ b/Forms/MainFrm.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using SignatureMaker.Framwork; -using System.Reflection; namespace SignatureMaker { @@ -30,8 +29,8 @@ public partial class MainFrm : Form { [DllImport("kernel32.dll")] public static extern bool ReadProcessMemory(IntPtr handle, IntPtr baseAddress, [Out] byte[] buffer, Int32 size, out IntPtr numberOfBytesRead); - OutputModes _outputMode = OutputModes.HexEscaped; // Current output mode selected by the user. - string _textArray = ""; // Used for testing if the pattern you created works using "FindPattern". + OutputModes m_outputMode = OutputModes.HexEscaped; // Current output mode selected by the user. + string m_textArray = ""; // Used for testing if the pattern you created works using "FindPattern". public MainFrm() { @@ -145,12 +144,12 @@ private Process FindProcess(Int32 pid) private void SetMode(OutputModes mode) { - _outputMode = mode; + m_outputMode = mode; HexMenuItem.Text = "Hex"; EscapedMenuItem.Text = "Hex Escaped"; ArrayMenuItem.Text = "Byte Array"; - switch (_outputMode) + switch (m_outputMode) { case OutputModes.Hex: HexMenuItem.Text = "> Hex"; @@ -286,7 +285,7 @@ private void CompareBtn_Click(object sender, EventArgs e) DifferenceBx.Text = Format.FormatSpacing(comparedBytes); MaskBx.Text = Format.CreateHalfMask(comparedBytes); - switch (_outputMode) + switch (m_outputMode) { case OutputModes.Hex: BytesBx.Text = Format.CreateHex(comparedBytes); @@ -308,7 +307,7 @@ private void CompareBtn_Click(object sender, EventArgs e) SetStatus("No difference detected, given array of bytes match!", StatusTypes.Success); } - _textArray = Format.CreateHex(comparedBytes); + m_textArray = Format.CreateHex(comparedBytes); } else { @@ -360,13 +359,13 @@ private void ResetBtn_Click(object sender, EventArgs e) private void TestBtn_Click(object sender, EventArgs e) { - if (!string.IsNullOrEmpty(BytesBx.Text) && !string.IsNullOrEmpty(MaskBx.Text) && !string.IsNullOrEmpty(_textArray)) + if (!string.IsNullOrEmpty(BytesBx.Text) && !string.IsNullOrEmpty(MaskBx.Text) && !string.IsNullOrEmpty(m_textArray)) { Process process = FindProcess((Int32)PIDBx.Value); if (process != null) { - IntPtr foundPointer = FindPattern(process, Format.FormatSpacing(_textArray), MaskBx.Text); + IntPtr foundPointer = FindPattern(process, Format.FormatSpacing(m_textArray), MaskBx.Text); if (foundPointer != IntPtr.Zero) { diff --git a/Framwork/Assembly.cs b/Framwork/Assembly.cs index 5b95660..bf795ff 100644 --- a/Framwork/Assembly.cs +++ b/Framwork/Assembly.cs @@ -4,12 +4,12 @@ namespace SignatureMaker.Framework { public static class Assembly { - private static readonly bool _x64Bit = true; - private static readonly string _title = "ItsBranK's Signature Maker"; - private static readonly string _version = "2.7"; + private static readonly bool m_x64Bit = true; + private static readonly string m_title = "ItsBranK's Signature Maker"; + private static readonly string m_version = "2.7"; - public static bool Is64Bit() { return _x64Bit; } - public static string GetTitle() { return (_title + (Is64Bit() ? " (x64)" : " (x86)")); } - public static string GetVersion() { return _version; } + public static bool Is64Bit() { return m_x64Bit; } + public static string GetTitle() { return (m_title + (Is64Bit() ? " (x64)" : " (x86)")); } + public static string GetVersion() { return m_version; } } } \ No newline at end of file diff --git a/Properties/PublishProfiles/FolderProfile.pubxml b/Properties/PublishProfiles/FolderProfile.pubxml index f938bda..89887b8 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml +++ b/Properties/PublishProfiles/FolderProfile.pubxml @@ -5,11 +5,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release - x64 + x86 bin\Release\net8.0-86\publish\ FileSystem net8.0-windows10.0.17763.0 - win-x64 + win-x86 false true false diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user index fd08994..0470ac2 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - True|2024-01-02T11:11:51.2090868Z;True|2024-01-02T06:11:17.0192459-05:00;True|2024-01-02T06:10:24.6432515-05:00;True|2023-11-17T03:56:43.1187389-05:00;True|2023-11-17T03:55:55.2557817-05:00;False|2023-11-17T03:55:28.1308534-05:00;False|2023-11-17T03:54:58.9536607-05:00;True|2023-04-10T23:56:02.0114118-04:00;True|2023-04-10T23:55:19.0304802-04:00;True|2023-04-10T23:55:06.6368448-04:00;True|2022-11-21T10:24:54.4284187-05:00;True|2022-11-21T10:22:57.8843662-05:00;True|2022-11-21T10:19:51.9236461-05:00;True|2022-11-21T10:18:36.8194857-05:00;True|2022-11-21T10:16:57.7562726-05:00;True|2022-11-21T10:16:14.0231236-05:00;True|2022-11-21T10:15:41.4721330-05:00;False|2022-11-18T19:37:43.6435707-05:00;True|2021-08-21T02:27:51.1206830-04:00;True|2021-08-21T02:26:17.1459282-04:00;True|2021-08-21T02:22:34.5377495-04:00; + True|2024-01-03T14:13:36.9116636Z;True|2024-01-03T09:12:25.0078211-05:00;True|2024-01-02T06:11:51.2090868-05:00;True|2024-01-02T06:11:17.0192459-05:00;True|2024-01-02T06:10:24.6432515-05:00;True|2023-11-17T03:56:43.1187389-05:00;True|2023-11-17T03:55:55.2557817-05:00;False|2023-11-17T03:55:28.1308534-05:00;False|2023-11-17T03:54:58.9536607-05:00;True|2023-04-10T23:56:02.0114118-04:00;True|2023-04-10T23:55:19.0304802-04:00;True|2023-04-10T23:55:06.6368448-04:00;True|2022-11-21T10:24:54.4284187-05:00;True|2022-11-21T10:22:57.8843662-05:00;True|2022-11-21T10:19:51.9236461-05:00;True|2022-11-21T10:18:36.8194857-05:00;True|2022-11-21T10:16:57.7562726-05:00;True|2022-11-21T10:16:14.0231236-05:00;True|2022-11-21T10:15:41.4721330-05:00;False|2022-11-18T19:37:43.6435707-05:00;True|2021-08-21T02:27:51.1206830-04:00;True|2021-08-21T02:26:17.1459282-04:00;True|2021-08-21T02:22:34.5377495-04:00; \ No newline at end of file