This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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
5de8c58
commit dfa12cc
Showing
48 changed files
with
6,627 additions
and
153 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,104 @@ | ||
<?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="DSR_Gadget.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.7.1" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<probing privatePath="lib" /> | ||
</assemblyBinding> | ||
</runtime> | ||
<userSettings> | ||
<DSR_Gadget.Properties.Settings> | ||
<setting name="WindowLocation" serializeAs="String"> | ||
<value>200, 200</value> | ||
</setting> | ||
<setting name="UpgradeRequired" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="HotkeysEnable" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="HotkeysHandle" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="HotkeyGravity" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyTest1" serializeAs="String"> | ||
<value>219</value> | ||
</setting> | ||
<setting name="HotkeyTest2" serializeAs="String"> | ||
<value>221</value> | ||
</setting> | ||
<setting name="FilterOverride" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="FilterBrightnessSync" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="FilterBrightnessR" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterBrightnessG" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterBrightnessB" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterContrastR" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterContrastG" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterContrastB" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterSaturation" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="FilterHue" serializeAs="String"> | ||
<value>0</value> | ||
</setting> | ||
<setting name="HotkeyFilter" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="FilterContrastSync" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="AnimSpeed" serializeAs="String"> | ||
<value>1</value> | ||
</setting> | ||
<setting name="HotkeyCollision" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeySpeed" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyStore" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyRestore" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyUp" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyDown" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyMenu" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
<setting name="HotkeyDeadMode" serializeAs="String"> | ||
<value>27</value> | ||
</setting> | ||
</DSR_Gadget.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,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.RegularExpressions; | ||
|
||
namespace DSR_Gadget | ||
{ | ||
// Parses output from https://defuse.ca/online-x86-assembler.htm | ||
// I like to keep the whole thing for quick reference to line numbers and so on | ||
static class DSRAssembly | ||
{ | ||
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[] BonfireWarp = loadDefuseOutput(Properties.Resources.BonfireWarp); | ||
public static byte[] GetItem = loadDefuseOutput(Properties.Resources.GetItem); | ||
public static byte[] LevelUp = loadDefuseOutput(Properties.Resources.LevelUp); | ||
} | ||
} |
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
Oops, something went wrong.