Skip to content

Commit

Permalink
Changed some internal naming standards
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsBranK committed Apr 15, 2024
1 parent 77b5cd9 commit 8b5241f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Forms/AboutFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ private void IconsLbl_Click(object sender, EventArgs e)
Process.Start(new ProcessStartInfo(IconsLbl.Text) { UseShellExecute = true });
}
}
}
}
17 changes: 8 additions & 9 deletions Forms/MainFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.Generic;
using System.Runtime.InteropServices;
using SignatureMaker.Framwork;
using System.Reflection;

namespace SignatureMaker
{
Expand All @@ -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()
{
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand All @@ -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
{
Expand Down Expand Up @@ -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)
{
Expand Down
12 changes: 6 additions & 6 deletions Framwork/Assembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
4 changes: 2 additions & 2 deletions Properties/PublishProfiles/FolderProfile.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<Platform>x86</Platform>
<PublishDir>bin\Release\net8.0-86\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
Expand Down
2 changes: 1 addition & 1 deletion Properties/PublishProfiles/FolderProfile.pubxml.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>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;</History>
<History>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;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

0 comments on commit 8b5241f

Please sign in to comment.