-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccfdd07
commit 16b1da2
Showing
19 changed files
with
1,160 additions
and
68 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="WPF.Gadgetlemage.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
<userSettings> | ||
<WPF.Gadgetlemage.Properties.Settings> | ||
<setting name="HotkeyCreate" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="Hotkey" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="Consume" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="Sound" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="Auto" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
</WPF.Gadgetlemage.Properties.Settings> | ||
</userSettings> | ||
</configuration> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.RegularExpressions; | ||
|
||
namespace WPF.Gadgetlemage | ||
{ | ||
public static class Assembly | ||
{ | ||
private static Regex asmLineRx = new Regex(@"^[\w\d]+:\s+((?:[\w\d][\w\d] ?)+)"); | ||
|
||
private static byte[] loadDefuseOutput(string lines) | ||
{ | ||
List<byte> bytes = new List<byte>(); | ||
foreach (string line in Regex.Split(lines, "[\r\n]+")) | ||
{ | ||
Match match = asmLineRx.Match(line); | ||
string hexes = match.Groups[1].Value; | ||
foreach (Match hex in Regex.Matches(hexes, @"\S+")) | ||
bytes.Add(Byte.Parse(hex.Value, System.Globalization.NumberStyles.AllowHexSpecifier)); | ||
} | ||
return bytes.ToArray(); | ||
} | ||
|
||
public static byte[] PTDE = loadDefuseOutput(Properties.Resources.PTDE); | ||
public static byte[] REMASTERED = loadDefuseOutput(Properties.Resources.REMASTERED); | ||
} | ||
} |
Oops, something went wrong.