001
This commit is contained in:
commit
48a0a6c054
Binary file not shown.
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{C16592A9-BA1D-426B-BDEF-58751C4D12B0}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>ABE</RootNamespace>
|
||||
<AssemblyName>ABE</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>MaxwellBiosTweaker.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Code.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="MaxwellBiosTweaker.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30611.23
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ABE", "ABE.csproj", "{C16592A9-BA1D-426B-BDEF-58751C4D12B0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C16592A9-BA1D-426B-BDEF-58751C4D12B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C16592A9-BA1D-426B-BDEF-58751C4D12B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C16592A9-BA1D-426B-BDEF-58751C4D12B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C16592A9-BA1D-426B-BDEF-58751C4D12B0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {E68F6DC3-4DE6-43DE-B15C-0ECE2126D0D2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
|
@ -0,0 +1,720 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
internal class Class24 : Class1
|
||||
{
|
||||
public Class24(byte[] byte_2, int int_11) : base(byte_2, int_11)
|
||||
{
|
||||
this.class26_0 = new Class26(byte_2, int_11 + this.Int32_2);
|
||||
}
|
||||
|
||||
|
||||
private int Int32_1
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.nullable_0 == null)
|
||||
{
|
||||
int num = this.byte_0.smethod_0(Class24.byte_1, this.int_0, false, null);
|
||||
this.nullable_0 = new int?(num - (114 + this.int_0));
|
||||
}
|
||||
return this.nullable_0.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public int Int32_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)BitConverter.ToUInt16(this.byte_0, this.int_0 + 24);
|
||||
}
|
||||
}
|
||||
|
||||
public string String_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_1(this.int_0 + 56, 8);
|
||||
}
|
||||
}
|
||||
|
||||
public ushort UInt16_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return BitConverter.ToUInt16(this.byte_0, this.int_0 + 84);
|
||||
}
|
||||
}
|
||||
|
||||
public string String_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_1(this.int_0 + this.Int32_1 + 134, 57);
|
||||
}
|
||||
}
|
||||
|
||||
public string String_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_1(this.int_0 + this.Int32_1 + 223, 14);
|
||||
}
|
||||
}
|
||||
|
||||
public string GetDefaultPL
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.spower(0x8BDF6);
|
||||
}
|
||||
}
|
||||
|
||||
public string GetMaxPL
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.spower(0x8BDFA);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetDefaultPL(int newlimit)
|
||||
{
|
||||
this.byte_0.setpower(0x8BDF6, newlimit);
|
||||
}
|
||||
|
||||
public void SetMaxPL(int newlimit)
|
||||
{
|
||||
this.byte_0.setpower(0x8BDFA, newlimit);
|
||||
}
|
||||
|
||||
public string Hash
|
||||
{
|
||||
get
|
||||
{
|
||||
byte[] hash;
|
||||
using (var md5 = System.Security.Cryptography.MD5.Create())
|
||||
{
|
||||
md5.TransformFinalBlock(this.byte_0, 0, this.byte_0.Length);
|
||||
hash = md5.Hash;
|
||||
return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string String_3
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_1(this.int_0 + this.Int32_1 + 290, 35);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Boolean_0
|
||||
{
|
||||
get
|
||||
{
|
||||
string biostype = this.byte_0.smethod_1(0, 4);
|
||||
if (biostype == "NVGI")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string String_4
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_1(21034, 30);
|
||||
}
|
||||
}
|
||||
|
||||
private const int int_1 = 24;
|
||||
private const int int_2 = 84;
|
||||
private const int int_3 = 56;
|
||||
private const int int_4 = 8;
|
||||
private const int int_5 = 134;
|
||||
private const int int_6 = 57;
|
||||
private const int int_7 = 223;
|
||||
private const int int_8 = 14;
|
||||
private const int int_9 = 290;
|
||||
private const int int_10 = 35;
|
||||
private static byte[] byte_1 = new byte[]
|
||||
{
|
||||
80,
|
||||
77,
|
||||
73,
|
||||
68
|
||||
};
|
||||
|
||||
public readonly Class26 class26_0;
|
||||
|
||||
private int? nullable_0;
|
||||
}
|
||||
|
||||
internal class Class26 : Class1
|
||||
{
|
||||
public Class26(byte[] byte_2, int int_6) : base(byte_2, int_6)
|
||||
{
|
||||
}
|
||||
|
||||
public bool Boolean_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_0(this.byte_1, this.int_0, false, null) == this.int_0;
|
||||
}
|
||||
}
|
||||
|
||||
public ushort UInt16_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return BitConverter.ToUInt16(this.byte_0, this.int_0 + 4);
|
||||
}
|
||||
}
|
||||
|
||||
public ushort UInt16_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return BitConverter.ToUInt16(this.byte_0, this.int_0 + 6);
|
||||
}
|
||||
}
|
||||
|
||||
public ushort UInt16_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return BitConverter.ToUInt16(this.byte_0, this.int_0 + 295);
|
||||
}
|
||||
}
|
||||
|
||||
public int Int32_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)(BitConverter.ToUInt16(this.byte_0, this.int_0 + 16) * 512);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Boolean_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (this.byte_0[this.int_0 + 21] & 128) == 128;
|
||||
}
|
||||
}
|
||||
|
||||
private const int int_1 = 4;
|
||||
private const int int_2 = 6;
|
||||
private const int int_3 = 16;
|
||||
private const int int_4 = 21;
|
||||
private const int int_5 = 295;
|
||||
|
||||
private byte[] byte_1 = new byte[]
|
||||
{
|
||||
80,
|
||||
67,
|
||||
73,
|
||||
82
|
||||
};
|
||||
}
|
||||
|
||||
internal class Class1
|
||||
{
|
||||
public Class1(byte[] byte_1, int int_1)
|
||||
{
|
||||
this.int_0 = int_1;
|
||||
this.byte_0 = byte_1;
|
||||
}
|
||||
|
||||
public int Int32_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.int_0;
|
||||
}
|
||||
}
|
||||
|
||||
protected int int_0;
|
||||
protected byte[] byte_0;
|
||||
}
|
||||
|
||||
internal static class Class29
|
||||
{
|
||||
internal static int smethod_0(this byte[] byte_0, byte[] byte_1, int int_0 = 0, bool bool_0 = false, byte? nullable_0 = null)
|
||||
{
|
||||
for (int i = int_0; i < byte_0.Length; i++)
|
||||
{
|
||||
if (byte_1[0] == byte_0[i] && byte_0.Length - i >= byte_1.Length)
|
||||
{
|
||||
bool flag = true;
|
||||
int num = 1;
|
||||
while (num < byte_1.Length && flag)
|
||||
{
|
||||
byte b = byte_0[i + num];
|
||||
if (b != byte_1[num] && ((bool_0 && num == byte_1.Length - 1 && (b & 63) != byte_1[num]) || !bool_0) && ((nullable_0 != null && nullable_0 != byte_1[num]) || nullable_0 == null))
|
||||
{
|
||||
flag = false;
|
||||
break;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
internal static string spower(this byte[] byte_0, int int_0)
|
||||
{
|
||||
byte[] wattage = { byte_0[int_0], byte_0[int_0 + 1], byte_0[int_0 + 2], byte_0[int_0 + 3] };
|
||||
int decWat = BitConverter.ToInt32(wattage, 0) / 1000;
|
||||
string @string = decWat.ToString();
|
||||
return @string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
internal static void setpower(this byte[] byte_0, int int_0,int NewPL)
|
||||
{
|
||||
byte[] NewWattage = BitConverter.GetBytes(NewPL * 1000);
|
||||
byte_0[int_0] = NewWattage[0];
|
||||
byte_0[int_0 + 1] = NewWattage[1];
|
||||
byte_0[int_0 + 2] = NewWattage[2];
|
||||
byte_0[int_0 + 3] = NewWattage[3];
|
||||
}
|
||||
|
||||
internal static string smethod_1(this byte[] byte_0, int int_0, int int_1)
|
||||
{
|
||||
string @string = Encoding.ASCII.GetString(byte_0, int_0, int_1);
|
||||
int num = @string.IndexOf('\0');
|
||||
if (num > -1)
|
||||
{
|
||||
return @string.Substring(0, num).Trim();
|
||||
}
|
||||
return @string.Trim();
|
||||
}
|
||||
|
||||
internal static string smethod_2(this byte[] byte_0, int int_0, int int_1)
|
||||
{
|
||||
int num = 0;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (int i = int_0; i < int_0 + int_1; i++)
|
||||
{
|
||||
if (num % 16 == 0)
|
||||
{
|
||||
stringBuilder.AppendLine();
|
||||
}
|
||||
stringBuilder.Append(byte_0[i].ToString("X2") + " ");
|
||||
num++;
|
||||
}
|
||||
return stringBuilder.ToString().Trim();
|
||||
}
|
||||
|
||||
internal static void smethod_3(this uint uint_0, byte[] byte_0, int int_0)
|
||||
{
|
||||
byte[] bytes = BitConverter.GetBytes(uint_0);
|
||||
Buffer.BlockCopy(bytes, 0, byte_0, int_0, bytes.Length);
|
||||
}
|
||||
|
||||
internal static void smethod_4(this ushort ushort_0, byte[] byte_0, int int_0)
|
||||
{
|
||||
byte[] bytes = BitConverter.GetBytes(ushort_0);
|
||||
Buffer.BlockCopy(bytes, 0, byte_0, int_0, bytes.Length);
|
||||
}
|
||||
}
|
||||
internal class Class25 : Class1
|
||||
{
|
||||
public Class25(byte[] byte_2, int int_1) : base(byte_2, int_1)
|
||||
{
|
||||
this.class24_0 = new Class24(byte_2, int_1);
|
||||
int num = byte_2.smethod_0(this.byte_1, int_1, false, new byte?(0));
|
||||
}
|
||||
|
||||
private bool method_0(ushort ushort_0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void method_1()
|
||||
{
|
||||
this.Byte_0 = this.method_2(false);
|
||||
}
|
||||
|
||||
public byte Byte_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + this.class24_0.class26_0.Int32_1 - 1];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.byte_0[this.int_0 + this.class24_0.class26_0.Int32_1 - 1] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[0x8E1FF];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.byte_0[0x8E1FF] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public byte method_2(bool ImageChecksum2)
|
||||
{
|
||||
ulong num = 0UL;
|
||||
if (ImageChecksum2)
|
||||
{
|
||||
int datastart = 0x19000;
|
||||
int dataend = 0x8E1FF;
|
||||
for (int i = datastart; i < dataend; i++)
|
||||
{
|
||||
num += (ulong)this.byte_0[i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int datastart = this.int_0;
|
||||
int dataend = this.class24_0.class26_0.Int32_1 - 1;
|
||||
int datarange = datastart + dataend;
|
||||
for (int i = datastart; i < datarange; i++)
|
||||
{
|
||||
num += (ulong)this.byte_0[i];
|
||||
}
|
||||
}
|
||||
return (byte)(255UL - (num - 1UL & 255UL));
|
||||
}
|
||||
|
||||
|
||||
|
||||
private bool method_3(int int_1)
|
||||
{
|
||||
return int_1 != -1 && int_1 > this.int_0 && int_1 < this.int_0 + this.class24_0.class26_0.Int32_1;
|
||||
}
|
||||
|
||||
public readonly Class24 class24_0;
|
||||
|
||||
private readonly byte[] byte_1 = new byte[]
|
||||
{
|
||||
byte.MaxValue,
|
||||
184,
|
||||
66,
|
||||
73,
|
||||
84
|
||||
};
|
||||
|
||||
}
|
||||
internal class Class30
|
||||
{
|
||||
public Class30(string string_1)
|
||||
{
|
||||
this.string_0 = string_1;
|
||||
this.byte_1 = File.ReadAllBytes(string_1);
|
||||
this.list_0 = this.method_0();
|
||||
}
|
||||
|
||||
private List<Class25> method_0()
|
||||
{
|
||||
List<Class25> list = new List<Class25>();
|
||||
int num = this.byte_1.smethod_0(this.byte_0, 0, false, null);
|
||||
if (num > -1)
|
||||
{
|
||||
Class24 @class;
|
||||
do
|
||||
{
|
||||
@class = new Class24(this.byte_1, num);
|
||||
if (!@class.class26_0.Boolean_0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
list.Add(new Class25(this.byte_1, num));
|
||||
num += @class.class26_0.Int32_1;
|
||||
}
|
||||
while (!@class.class26_0.Boolean_1);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public void method_1(string string_1)
|
||||
{
|
||||
foreach (Class25 @class in this.list_0)
|
||||
{
|
||||
@class.method_1();
|
||||
}
|
||||
File.WriteAllBytes(string_1, this.byte_1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private byte[] byte_0 = new byte[]
|
||||
{
|
||||
85,
|
||||
170
|
||||
};
|
||||
|
||||
public readonly string string_0;
|
||||
public readonly byte[] byte_1;
|
||||
public readonly List<Class25> list_0;
|
||||
}
|
||||
internal class Class23 : Class1
|
||||
{
|
||||
public Class23(byte[] byte_1, int int_6) : base(byte_1, int_6)
|
||||
{
|
||||
this.list_0 = this.method_0();
|
||||
}
|
||||
|
||||
private List<Class22> method_0()
|
||||
{
|
||||
List<Class22> list = new List<Class22>();
|
||||
for (int i = 0; i < (int)this.Byte_2; i++)
|
||||
{
|
||||
int num = this.int_0 + (int)((ulong)this.Byte_0 + (ulong)this.UInt32_0 * (ulong)((long)i));
|
||||
list.Add(new Class22(this.byte_0, num, (uint)this.Byte_1, (uint)this.Byte_4, (uint)this.Byte_3));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public string String_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_2(this.int_0, (int)this.Byte_0);
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 1];
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 2];
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 5];
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_3
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 3];
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_4
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 4];
|
||||
}
|
||||
}
|
||||
|
||||
public uint UInt32_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return (uint)(this.Byte_1 + this.Byte_3 * this.Byte_4);
|
||||
}
|
||||
}
|
||||
|
||||
public uint UInt32_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (uint)this.Byte_0 + this.UInt32_0 * (uint)this.Byte_2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private const int int_1 = 1;
|
||||
private const int int_2 = 2;
|
||||
private const int int_3 = 3;
|
||||
private const int int_4 = 4;
|
||||
private const int int_5 = 5;
|
||||
public readonly List<Class22> list_0;
|
||||
}
|
||||
|
||||
internal class Class22 : Class1
|
||||
{
|
||||
public Class22(byte[] byte_1, int int_4, uint uint_4, uint uint_5, uint uint_6) : base(byte_1, int_4)
|
||||
{
|
||||
this.uint_0 = uint_4;
|
||||
this.uint_1 = uint_5;
|
||||
this.uint_2 = uint_6;
|
||||
this.uint_3 = uint_4 + uint_5 * uint_6;
|
||||
this.list_0 = this.method_0();
|
||||
}
|
||||
|
||||
private List<Class21> method_0()
|
||||
{
|
||||
List<Class21> list = new List<Class21>();
|
||||
int num = 0;
|
||||
while ((long)num < (long)((ulong)this.uint_1))
|
||||
{
|
||||
list.Add(new Class21(this.byte_0, this.int_0 + (int)this.uint_0 + num * (int)this.uint_2, (int)this.uint_2));
|
||||
num++;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public string String_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_2(this.int_0, (int)this.uint_0);
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 2];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.byte_0[this.int_0 + 2] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (byte)(15 - this.byte_0[this.int_0]);
|
||||
}
|
||||
}
|
||||
|
||||
public byte Byte_2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0 + 3];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.byte_0[this.int_0 + 3] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Boolean_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0[this.int_0] == byte.MaxValue;
|
||||
}
|
||||
}
|
||||
|
||||
public int Int32_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.uint_1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private const int int_1 = 0;
|
||||
private const int int_2 = 2;
|
||||
private const int int_3 = 3;
|
||||
private readonly uint uint_0;
|
||||
private readonly uint uint_1;
|
||||
private readonly uint uint_2;
|
||||
private readonly uint uint_3;
|
||||
public readonly List<Class21> list_0;
|
||||
}
|
||||
internal class Class21 : Class1
|
||||
{
|
||||
public Class21(byte[] byte_1, int int_3, int int_4) : base(byte_1, int_3)
|
||||
{
|
||||
this.int_1 = int_4;
|
||||
this.int_2 = int_4 - 4;
|
||||
}
|
||||
|
||||
public string String_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.byte_0.smethod_2(this.int_0, this.int_1);
|
||||
}
|
||||
}
|
||||
|
||||
public uint UInt32_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UInt32_1 & 8191U;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.UInt32_1 = ((this.UInt32_1 & 57344U) | value);
|
||||
}
|
||||
}
|
||||
|
||||
public uint UInt32_1
|
||||
{
|
||||
get
|
||||
{
|
||||
return BitConverter.ToUInt32(this.byte_0, this.int_0 + this.int_2);
|
||||
}
|
||||
set
|
||||
{
|
||||
value.smethod_3(this.byte_0, this.int_0 + this.int_2);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Boolean_0
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UInt32_0 == this.UInt32_1;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly int int_1;
|
||||
private readonly int int_2;
|
||||
}
|
||||
|
||||
internal interface Interface0
|
||||
{
|
||||
void ApplyChanges();
|
||||
void Reset();
|
||||
}
|
||||
|
|
@ -0,0 +1,656 @@
|
|||
namespace ABE
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.lblChkSum = new System.Windows.Forms.Label();
|
||||
this.lChkSum = new System.Windows.Forms.Label();
|
||||
this.lblFilename = new System.Windows.Forms.Label();
|
||||
this.lFilename = new System.Windows.Forms.Label();
|
||||
this.lblDate = new System.Windows.Forms.Label();
|
||||
this.lDate = new System.Windows.Forms.Label();
|
||||
this.lblSubVendor = new System.Windows.Forms.Label();
|
||||
this.lSubVendor = new System.Windows.Forms.Label();
|
||||
this.lblDevID = new System.Windows.Forms.Label();
|
||||
this.lDevID = new System.Windows.Forms.Label();
|
||||
this.lblBIOS = new System.Windows.Forms.Label();
|
||||
this.lBIOS = new System.Windows.Forms.Label();
|
||||
this.lblGPU = new System.Windows.Forms.Label();
|
||||
this.lGPU = new System.Windows.Forms.Label();
|
||||
this.lblName = new System.Windows.Forms.Label();
|
||||
this.lName = new System.Windows.Forms.Label();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.lblMaxPL = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.lblDefaultPL = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.tcSettings = new System.Windows.Forms.TabPage();
|
||||
this.maskedTextBox4 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox3 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox2 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.trackBar3 = new System.Windows.Forms.TrackBar();
|
||||
this.trackBar2 = new System.Windows.Forms.TrackBar();
|
||||
this.trackBar1 = new System.Windows.Forms.TrackBar();
|
||||
this.trbSlider = new System.Windows.Forms.TrackBar();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.Btn_open = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lblHash = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.Btn_Save = new System.Windows.Forms.Button();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage3.SuspendLayout();
|
||||
this.tcSettings.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbSlider)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblChkSum
|
||||
//
|
||||
this.lblChkSum.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.lblChkSum.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblChkSum.Location = new System.Drawing.Point(429, 177);
|
||||
this.lblChkSum.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblChkSum.Name = "lblChkSum";
|
||||
this.lblChkSum.Size = new System.Drawing.Size(467, 38);
|
||||
this.lblChkSum.TabIndex = 62;
|
||||
this.lblChkSum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lChkSum
|
||||
//
|
||||
this.lChkSum.Location = new System.Drawing.Point(316, 185);
|
||||
this.lChkSum.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lChkSum.Name = "lChkSum";
|
||||
this.lChkSum.Size = new System.Drawing.Size(114, 25);
|
||||
this.lChkSum.TabIndex = 61;
|
||||
this.lChkSum.Text = "Checksum";
|
||||
this.lChkSum.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblFilename
|
||||
//
|
||||
this.lblFilename.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblFilename.Location = new System.Drawing.Point(429, 232);
|
||||
this.lblFilename.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblFilename.Name = "lblFilename";
|
||||
this.lblFilename.Size = new System.Drawing.Size(467, 38);
|
||||
this.lblFilename.TabIndex = 60;
|
||||
this.lblFilename.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lFilename
|
||||
//
|
||||
this.lFilename.Location = new System.Drawing.Point(316, 239);
|
||||
this.lFilename.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lFilename.Name = "lFilename";
|
||||
this.lFilename.Size = new System.Drawing.Size(104, 25);
|
||||
this.lFilename.TabIndex = 59;
|
||||
this.lFilename.Text = "Filename";
|
||||
this.lFilename.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblDate
|
||||
//
|
||||
this.lblDate.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblDate.Location = new System.Drawing.Point(132, 123);
|
||||
this.lblDate.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblDate.Name = "lblDate";
|
||||
this.lblDate.Size = new System.Drawing.Size(172, 38);
|
||||
this.lblDate.TabIndex = 58;
|
||||
this.lblDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lDate
|
||||
//
|
||||
this.lDate.Location = new System.Drawing.Point(66, 131);
|
||||
this.lDate.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lDate.Name = "lDate";
|
||||
this.lDate.Size = new System.Drawing.Size(60, 25);
|
||||
this.lDate.TabIndex = 57;
|
||||
this.lDate.Text = "Date";
|
||||
this.lDate.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblSubVendor
|
||||
//
|
||||
this.lblSubVendor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblSubVendor.Location = new System.Drawing.Point(132, 232);
|
||||
this.lblSubVendor.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblSubVendor.Name = "lblSubVendor";
|
||||
this.lblSubVendor.Size = new System.Drawing.Size(172, 38);
|
||||
this.lblSubVendor.TabIndex = 56;
|
||||
this.lblSubVendor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lSubVendor
|
||||
//
|
||||
this.lSubVendor.Location = new System.Drawing.Point(22, 239);
|
||||
this.lSubVendor.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lSubVendor.Name = "lSubVendor";
|
||||
this.lSubVendor.Size = new System.Drawing.Size(104, 25);
|
||||
this.lSubVendor.TabIndex = 55;
|
||||
this.lSubVendor.Text = "Vendor";
|
||||
this.lSubVendor.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblDevID
|
||||
//
|
||||
this.lblDevID.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblDevID.Location = new System.Drawing.Point(132, 177);
|
||||
this.lblDevID.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblDevID.Name = "lblDevID";
|
||||
this.lblDevID.Size = new System.Drawing.Size(172, 38);
|
||||
this.lblDevID.TabIndex = 54;
|
||||
this.lblDevID.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lDevID
|
||||
//
|
||||
this.lDevID.Location = new System.Drawing.Point(16, 185);
|
||||
this.lDevID.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lDevID.Name = "lDevID";
|
||||
this.lDevID.Size = new System.Drawing.Size(110, 25);
|
||||
this.lDevID.TabIndex = 53;
|
||||
this.lDevID.Text = "Device ID";
|
||||
this.lDevID.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblBIOS
|
||||
//
|
||||
this.lblBIOS.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblBIOS.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.875F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblBIOS.ForeColor = System.Drawing.SystemColors.HotTrack;
|
||||
this.lblBIOS.Location = new System.Drawing.Point(429, 123);
|
||||
this.lblBIOS.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblBIOS.Name = "lblBIOS";
|
||||
this.lblBIOS.Size = new System.Drawing.Size(467, 38);
|
||||
this.lblBIOS.TabIndex = 52;
|
||||
this.lblBIOS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.toolTip1.SetToolTip(this.lblBIOS, "Click to lookup online!");
|
||||
this.lblBIOS.Click += new System.EventHandler(this.lblBIOS_Click);
|
||||
//
|
||||
// lBIOS
|
||||
//
|
||||
this.lBIOS.Location = new System.Drawing.Point(306, 131);
|
||||
this.lBIOS.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lBIOS.Name = "lBIOS";
|
||||
this.lBIOS.Size = new System.Drawing.Size(104, 25);
|
||||
this.lBIOS.TabIndex = 51;
|
||||
this.lBIOS.Text = "Version";
|
||||
this.lBIOS.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblGPU
|
||||
//
|
||||
this.lblGPU.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblGPU.Location = new System.Drawing.Point(132, 70);
|
||||
this.lblGPU.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblGPU.Name = "lblGPU";
|
||||
this.lblGPU.Size = new System.Drawing.Size(764, 38);
|
||||
this.lblGPU.TabIndex = 50;
|
||||
this.lblGPU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lGPU
|
||||
//
|
||||
this.lGPU.Location = new System.Drawing.Point(56, 77);
|
||||
this.lGPU.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lGPU.Name = "lGPU";
|
||||
this.lGPU.Size = new System.Drawing.Size(70, 25);
|
||||
this.lGPU.TabIndex = 49;
|
||||
this.lGPU.Text = "Board";
|
||||
this.lGPU.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblName
|
||||
//
|
||||
this.lblName.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblName.Location = new System.Drawing.Point(132, 16);
|
||||
this.lblName.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblName.Name = "lblName";
|
||||
this.lblName.Size = new System.Drawing.Size(764, 38);
|
||||
this.lblName.TabIndex = 48;
|
||||
this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lName
|
||||
//
|
||||
this.lName.Location = new System.Drawing.Point(56, 23);
|
||||
this.lName.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lName.Name = "lName";
|
||||
this.lName.Size = new System.Drawing.Size(70, 25);
|
||||
this.lName.TabIndex = 47;
|
||||
this.lName.Text = "Name";
|
||||
this.lName.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
this.tabControl1.Controls.Add(this.tabPage3);
|
||||
this.tabControl1.Controls.Add(this.tcSettings);
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Location = new System.Drawing.Point(21, 364);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(875, 494);
|
||||
this.tabControl1.TabIndex = 63;
|
||||
//
|
||||
// tabPage3
|
||||
//
|
||||
this.tabPage3.Controls.Add(this.lblMaxPL);
|
||||
this.tabPage3.Controls.Add(this.label13);
|
||||
this.tabPage3.Controls.Add(this.lblDefaultPL);
|
||||
this.tabPage3.Controls.Add(this.label12);
|
||||
this.tabPage3.Controls.Add(this.label11);
|
||||
this.tabPage3.Controls.Add(this.label10);
|
||||
this.tabPage3.Location = new System.Drawing.Point(8, 39);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Size = new System.Drawing.Size(859, 447);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Text = "Power Tables";
|
||||
this.tabPage3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblMaxPL
|
||||
//
|
||||
this.lblMaxPL.Enabled = false;
|
||||
this.lblMaxPL.Location = new System.Drawing.Point(177, 83);
|
||||
this.lblMaxPL.Mask = "000";
|
||||
this.lblMaxPL.Name = "lblMaxPL";
|
||||
this.lblMaxPL.Size = new System.Drawing.Size(111, 31);
|
||||
this.lblMaxPL.TabIndex = 27;
|
||||
this.lblMaxPL.Validated += new System.EventHandler(this.lblMaxPL_Validated);
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(294, 89);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(56, 25);
|
||||
this.label13.TabIndex = 26;
|
||||
this.label13.Text = "Watt";
|
||||
//
|
||||
// lblDefaultPL
|
||||
//
|
||||
this.lblDefaultPL.Enabled = false;
|
||||
this.lblDefaultPL.Location = new System.Drawing.Point(177, 40);
|
||||
this.lblDefaultPL.Mask = "000";
|
||||
this.lblDefaultPL.Name = "lblDefaultPL";
|
||||
this.lblDefaultPL.Size = new System.Drawing.Size(111, 31);
|
||||
this.lblDefaultPL.TabIndex = 25;
|
||||
this.lblDefaultPL.Validated += new System.EventHandler(this.lblDefaultPL_Validated);
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(294, 46);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(56, 25);
|
||||
this.label12.TabIndex = 24;
|
||||
this.label12.Text = "Watt";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(54, 89);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(91, 25);
|
||||
this.label11.TabIndex = 23;
|
||||
this.label11.Text = "Max PL:";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(27, 43);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(118, 25);
|
||||
this.label10.TabIndex = 22;
|
||||
this.label10.Text = "Default PL:";
|
||||
//
|
||||
// tcSettings
|
||||
//
|
||||
this.tcSettings.Controls.Add(this.maskedTextBox4);
|
||||
this.tcSettings.Controls.Add(this.label9);
|
||||
this.tcSettings.Controls.Add(this.maskedTextBox3);
|
||||
this.tcSettings.Controls.Add(this.label8);
|
||||
this.tcSettings.Controls.Add(this.maskedTextBox2);
|
||||
this.tcSettings.Controls.Add(this.label7);
|
||||
this.tcSettings.Controls.Add(this.maskedTextBox1);
|
||||
this.tcSettings.Controls.Add(this.label6);
|
||||
this.tcSettings.Controls.Add(this.trackBar3);
|
||||
this.tcSettings.Controls.Add(this.trackBar2);
|
||||
this.tcSettings.Controls.Add(this.trackBar1);
|
||||
this.tcSettings.Controls.Add(this.trbSlider);
|
||||
this.tcSettings.Controls.Add(this.label5);
|
||||
this.tcSettings.Controls.Add(this.label4);
|
||||
this.tcSettings.Controls.Add(this.label3);
|
||||
this.tcSettings.Controls.Add(this.label2);
|
||||
this.tcSettings.Location = new System.Drawing.Point(8, 39);
|
||||
this.tcSettings.Name = "tcSettings";
|
||||
this.tcSettings.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tcSettings.Size = new System.Drawing.Size(859, 447);
|
||||
this.tcSettings.TabIndex = 0;
|
||||
this.tcSettings.Text = "Common";
|
||||
this.tcSettings.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// maskedTextBox4
|
||||
//
|
||||
this.maskedTextBox4.Location = new System.Drawing.Point(576, 205);
|
||||
this.maskedTextBox4.Name = "maskedTextBox4";
|
||||
this.maskedTextBox4.Size = new System.Drawing.Size(111, 31);
|
||||
this.maskedTextBox4.TabIndex = 15;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(693, 211);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(53, 25);
|
||||
this.label9.TabIndex = 14;
|
||||
this.label9.Text = "Mhz";
|
||||
//
|
||||
// maskedTextBox3
|
||||
//
|
||||
this.maskedTextBox3.Location = new System.Drawing.Point(576, 148);
|
||||
this.maskedTextBox3.Name = "maskedTextBox3";
|
||||
this.maskedTextBox3.Size = new System.Drawing.Size(111, 31);
|
||||
this.maskedTextBox3.TabIndex = 13;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(693, 154);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 25);
|
||||
this.label8.TabIndex = 12;
|
||||
this.label8.Text = "Mhz";
|
||||
//
|
||||
// maskedTextBox2
|
||||
//
|
||||
this.maskedTextBox2.Location = new System.Drawing.Point(576, 91);
|
||||
this.maskedTextBox2.Name = "maskedTextBox2";
|
||||
this.maskedTextBox2.Size = new System.Drawing.Size(111, 31);
|
||||
this.maskedTextBox2.TabIndex = 11;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(693, 97);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(53, 25);
|
||||
this.label7.TabIndex = 10;
|
||||
this.label7.Text = "Mhz";
|
||||
//
|
||||
// maskedTextBox1
|
||||
//
|
||||
this.maskedTextBox1.Location = new System.Drawing.Point(576, 34);
|
||||
this.maskedTextBox1.Name = "maskedTextBox1";
|
||||
this.maskedTextBox1.Size = new System.Drawing.Size(111, 31);
|
||||
this.maskedTextBox1.TabIndex = 9;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(693, 40);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 25);
|
||||
this.label6.TabIndex = 8;
|
||||
this.label6.Text = "Mhz";
|
||||
//
|
||||
// trackBar3
|
||||
//
|
||||
this.trackBar3.AutoSize = false;
|
||||
this.trackBar3.BackColor = System.Drawing.Color.White;
|
||||
this.trackBar3.Location = new System.Drawing.Point(177, 204);
|
||||
this.trackBar3.Margin = new System.Windows.Forms.Padding(6);
|
||||
this.trackBar3.Maximum = 97;
|
||||
this.trackBar3.Name = "trackBar3";
|
||||
this.trackBar3.Size = new System.Drawing.Size(390, 45);
|
||||
this.trackBar3.TabIndex = 7;
|
||||
this.trackBar3.Value = 67;
|
||||
//
|
||||
// trackBar2
|
||||
//
|
||||
this.trackBar2.AutoSize = false;
|
||||
this.trackBar2.BackColor = System.Drawing.Color.White;
|
||||
this.trackBar2.Location = new System.Drawing.Point(177, 147);
|
||||
this.trackBar2.Margin = new System.Windows.Forms.Padding(6);
|
||||
this.trackBar2.Maximum = 97;
|
||||
this.trackBar2.Name = "trackBar2";
|
||||
this.trackBar2.Size = new System.Drawing.Size(390, 45);
|
||||
this.trackBar2.TabIndex = 6;
|
||||
this.trackBar2.Value = 67;
|
||||
//
|
||||
// trackBar1
|
||||
//
|
||||
this.trackBar1.AutoSize = false;
|
||||
this.trackBar1.BackColor = System.Drawing.Color.White;
|
||||
this.trackBar1.Location = new System.Drawing.Point(177, 90);
|
||||
this.trackBar1.Margin = new System.Windows.Forms.Padding(6);
|
||||
this.trackBar1.Maximum = 97;
|
||||
this.trackBar1.Name = "trackBar1";
|
||||
this.trackBar1.Size = new System.Drawing.Size(390, 45);
|
||||
this.trackBar1.TabIndex = 5;
|
||||
this.trackBar1.Value = 67;
|
||||
//
|
||||
// trbSlider
|
||||
//
|
||||
this.trbSlider.AutoSize = false;
|
||||
this.trbSlider.BackColor = System.Drawing.Color.White;
|
||||
this.trbSlider.Location = new System.Drawing.Point(177, 33);
|
||||
this.trbSlider.Margin = new System.Windows.Forms.Padding(6);
|
||||
this.trbSlider.Maximum = 97;
|
||||
this.trbSlider.Name = "trbSlider";
|
||||
this.trbSlider.Size = new System.Drawing.Size(390, 45);
|
||||
this.trbSlider.TabIndex = 4;
|
||||
this.trbSlider.Value = 67;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(27, 224);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(125, 25);
|
||||
this.label5.TabIndex = 3;
|
||||
this.label5.Text = "XBar Clock:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(17, 167);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(133, 25);
|
||||
this.label4.TabIndex = 2;
|
||||
this.label4.Text = "Video Clock:";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(45, 110);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(105, 25);
|
||||
this.label3.TabIndex = 1;
|
||||
this.label3.Text = "FB Clock:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(28, 53);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(124, 25);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "Core Clock:";
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(8, 39);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(859, 447);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "VFR Table";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Btn_open
|
||||
//
|
||||
this.Btn_open.Location = new System.Drawing.Point(678, 864);
|
||||
this.Btn_open.Name = "Btn_open";
|
||||
this.Btn_open.Size = new System.Drawing.Size(210, 63);
|
||||
this.Btn_open.TabIndex = 64;
|
||||
this.Btn_open.Text = "Open";
|
||||
this.Btn_open.UseVisualStyleBackColor = true;
|
||||
this.Btn_open.Click += new System.EventHandler(this.Btn_open_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(12, 292);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(114, 25);
|
||||
this.label1.TabIndex = 65;
|
||||
this.label1.Text = "MD5 Hash";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// lblHash
|
||||
//
|
||||
this.lblHash.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.lblHash.Location = new System.Drawing.Point(132, 285);
|
||||
this.lblHash.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||
this.lblHash.Name = "lblHash";
|
||||
this.lblHash.Size = new System.Drawing.Size(764, 38);
|
||||
this.lblHash.TabIndex = 66;
|
||||
this.lblHash.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// Btn_Save
|
||||
//
|
||||
this.Btn_Save.Enabled = false;
|
||||
this.Btn_Save.Location = new System.Drawing.Point(29, 864);
|
||||
this.Btn_Save.Name = "Btn_Save";
|
||||
this.Btn_Save.Size = new System.Drawing.Size(210, 63);
|
||||
this.Btn_Save.TabIndex = 67;
|
||||
this.Btn_Save.Text = "Save As";
|
||||
this.Btn_Save.UseVisualStyleBackColor = true;
|
||||
this.Btn_Save.Click += new System.EventHandler(this.Btn_Save_Click);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(912, 939);
|
||||
this.Controls.Add(this.Btn_Save);
|
||||
this.Controls.Add(this.lblHash);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.Btn_open);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.Controls.Add(this.lblChkSum);
|
||||
this.Controls.Add(this.lChkSum);
|
||||
this.Controls.Add(this.lblFilename);
|
||||
this.Controls.Add(this.lFilename);
|
||||
this.Controls.Add(this.lblDate);
|
||||
this.Controls.Add(this.lDate);
|
||||
this.Controls.Add(this.lblSubVendor);
|
||||
this.Controls.Add(this.lSubVendor);
|
||||
this.Controls.Add(this.lblDevID);
|
||||
this.Controls.Add(this.lDevID);
|
||||
this.Controls.Add(this.lblBIOS);
|
||||
this.Controls.Add(this.lBIOS);
|
||||
this.Controls.Add(this.lblGPU);
|
||||
this.Controls.Add(this.lGPU);
|
||||
this.Controls.Add(this.lblName);
|
||||
this.Controls.Add(this.lName);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Ampere Bios Edior - ABE";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage3.ResumeLayout(false);
|
||||
this.tabPage3.PerformLayout();
|
||||
this.tcSettings.ResumeLayout(false);
|
||||
this.tcSettings.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbSlider)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblChkSum;
|
||||
private System.Windows.Forms.Label lChkSum;
|
||||
private System.Windows.Forms.Label lblFilename;
|
||||
private System.Windows.Forms.Label lFilename;
|
||||
private System.Windows.Forms.Label lblDate;
|
||||
private System.Windows.Forms.Label lDate;
|
||||
private System.Windows.Forms.Label lblSubVendor;
|
||||
private System.Windows.Forms.Label lSubVendor;
|
||||
private System.Windows.Forms.Label lblDevID;
|
||||
private System.Windows.Forms.Label lDevID;
|
||||
private System.Windows.Forms.Label lblBIOS;
|
||||
private System.Windows.Forms.Label lBIOS;
|
||||
private System.Windows.Forms.Label lblGPU;
|
||||
private System.Windows.Forms.Label lGPU;
|
||||
private System.Windows.Forms.Label lblName;
|
||||
private System.Windows.Forms.Label lName;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tcSettings;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.Button Btn_open;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label lblHash;
|
||||
private System.Windows.Forms.TrackBar trackBar3;
|
||||
private System.Windows.Forms.TrackBar trackBar2;
|
||||
private System.Windows.Forms.TrackBar trackBar1;
|
||||
private System.Windows.Forms.TrackBar trbSlider;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox4;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox3;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox2;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox1;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Button Btn_Save;
|
||||
private System.Windows.Forms.MaskedTextBox lblMaxPL;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.MaskedTextBox lblDefaultPL;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label10;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,327 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
//Firmware-Checksum 0x18FFF
|
||||
//Firmware-Start 0x9200
|
||||
|
||||
//Settings-Checksum 0x8E1FF
|
||||
//Settings-Start 19000
|
||||
|
||||
//Board PowerLimits
|
||||
//Default PL 0x8BDF6
|
||||
//Max PL 0x8BDFA
|
||||
|
||||
namespace ABE
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.list_0 = this.method_1();
|
||||
}
|
||||
|
||||
private Class24 _RomHeader;
|
||||
private string _FileName;
|
||||
private byte _ImageChecksum;
|
||||
private byte _ImageChecksum2;
|
||||
private byte _GeneratedChecksum;
|
||||
private byte _GeneratedChecksum2;
|
||||
private Class30 class30_0;
|
||||
private readonly List<Interface0> list_0;
|
||||
|
||||
private List<Interface0> method_1()
|
||||
{
|
||||
return new List<Interface0>
|
||||
{
|
||||
//this.frcFanRange,
|
||||
//this.bbcBaseBoost,
|
||||
//this.ptcPerfTable,
|
||||
//this.btcBoostClocks,
|
||||
//this.bccBoostStates,
|
||||
//this.ptcPowerTable,
|
||||
//this.vtcVoltageTable,
|
||||
//this.ttcTempTargets
|
||||
};
|
||||
}
|
||||
|
||||
internal Class24 RomHeader
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RomHeader;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._RomHeader = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateDisplay()
|
||||
{
|
||||
if (this.RomHeader == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.lblName.Text = this.RomHeader.String_1.Replace("\r\n", " ");
|
||||
this.lblGPU.Text = this.RomHeader.String_3;
|
||||
this.lblBIOS.Text = this.RomHeader.String_2;
|
||||
this.lblDevID.Text = string.Format("{0:X4} - {1:X4}", this.RomHeader.class26_0.UInt16_0, this.RomHeader.class26_0.UInt16_1);
|
||||
this.lblSubVendor.Text = this.RomHeader.String_4.ToUpper();
|
||||
this.lblDate.Text = this.RomHeader.String_0;
|
||||
this.lblChkSum.Text = string.Format("{0:X2} - [{1:X2}] / {2:X2} - [{3:X2}]", this.ImageChecksum, this.GeneratedChecksum, this.ImageChecksum2, this.GeneratedChecksum2);
|
||||
if (this.ImageChecksum == this.GeneratedChecksum && this.ImageChecksum2 == this.GeneratedChecksum2)
|
||||
{
|
||||
this.lblChkSum.BackColor = Color.LightGreen;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lblChkSum.BackColor = Color.LightCoral;
|
||||
}
|
||||
this.lblFilename.Text = this.FileName;
|
||||
lblHash.Text = this.RomHeader.Hash;
|
||||
lblDefaultPL.Text = this.RomHeader.GetDefaultPL;
|
||||
lblMaxPL.Text = this.RomHeader.GetMaxPL;
|
||||
}
|
||||
|
||||
|
||||
public byte ImageChecksum2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ImageChecksum2;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ImageChecksum2 = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
public byte GeneratedChecksum2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._GeneratedChecksum2;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._GeneratedChecksum2 = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
public byte ImageChecksum
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ImageChecksum;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ImageChecksum = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
public byte GeneratedChecksum
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._GeneratedChecksum;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._GeneratedChecksum = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
public string FileName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FileName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._FileName = value;
|
||||
this.UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetDisplay(bool unsupported = false)
|
||||
{
|
||||
this.lblName.Text = (unsupported ? "Unsupported Device" : "");
|
||||
this.lblGPU.Text = "";
|
||||
this.lblBIOS.Text = "";
|
||||
this.lblDevID.Text = "";
|
||||
this.lblSubVendor.Text = "";
|
||||
this.lblDate.Text = "";
|
||||
this.lblFilename.Text = "";
|
||||
this.lblChkSum.Text = "";
|
||||
this.lblDefaultPL.Enabled = false;
|
||||
this.lblMaxPL.Enabled = false;
|
||||
this.Btn_Save.Enabled = false;
|
||||
this.lblChkSum.BackColor = SystemColors.Control;
|
||||
}
|
||||
|
||||
private void Btn_open_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.DefaultExt = "*.rom";
|
||||
openFileDialog.Filter = "BIOS Files|*.rom;*.bin";
|
||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
this.method_3(openFileDialog.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
private void method_2()
|
||||
{
|
||||
ResetDisplay(false);
|
||||
foreach (Interface0 @interface in this.list_0)
|
||||
{
|
||||
@interface.Reset();
|
||||
}
|
||||
this.tcSettings.Enabled = false;
|
||||
}
|
||||
|
||||
private void method_3(string string_0)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.method_2();
|
||||
this.class30_0 = new Class30(string_0);
|
||||
Class25 @class = this.class30_0.list_0[0];
|
||||
this.RomHeader = @class.class24_0;
|
||||
if (RomHeader.Boolean_0)
|
||||
{
|
||||
|
||||
this.FileName = new FileInfo(string_0).Name;
|
||||
this.ImageChecksum = @class.Byte_0;
|
||||
this.GeneratedChecksum = @class.method_2(false);
|
||||
this.ImageChecksum2 = @class.Byte_2;
|
||||
this.GeneratedChecksum2 = @class.method_2(true);
|
||||
this.lblDefaultPL.Enabled = true;
|
||||
this.lblMaxPL.Enabled = true;
|
||||
this.Btn_Save.Enabled = true;
|
||||
return;
|
||||
}
|
||||
this.ResetDisplay(true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.ResetDisplay(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.method_2();
|
||||
Version version = Assembly.GetExecutingAssembly().GetName().Version;
|
||||
this.Text = string.Format("ABE v{0}.{1}{2}", version.Major, version.Minor, version.Build);
|
||||
string[] commandLineArgs = Environment.GetCommandLineArgs();
|
||||
if (commandLineArgs.Length > 1 && (commandLineArgs[1].ToLower().EndsWith(".bin") || commandLineArgs[1].ToLower().EndsWith(".rom")))
|
||||
{
|
||||
this.method_3(commandLineArgs[1]);
|
||||
}
|
||||
}
|
||||
|
||||
private void lblBIOS_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(lblBIOS.Text.Length == 14)
|
||||
{
|
||||
System.Diagnostics.Process.Start(@"https://www.techpowerup.com/vgabios/?architecture=&manufacturer=&model=&version="+ lblBIOS.Text +@"&interface=&memType=&memSize=&since=");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void EditBiosBoardPowerLimit(bool max)
|
||||
{
|
||||
if (lblDefaultPL.Text.Length != 0 && lblMaxPL.Text.Length !=0)
|
||||
{
|
||||
Class25 @class = this.class30_0.list_0[0];
|
||||
if (!max)
|
||||
{
|
||||
Class29.setpower(class30_0.byte_1, 0x8BDF6, int.Parse(lblDefaultPL.Text));
|
||||
}
|
||||
else
|
||||
{
|
||||
Class29.setpower(class30_0.byte_1, 0x8BDFA, int.Parse(lblMaxPL.Text));
|
||||
}
|
||||
this.GeneratedChecksum2 = @class.method_2(true);
|
||||
this.lblChkSum.Text = string.Format("{0:X2} - [{1:X2}] / {2:X2} - [{3:X2}]", this.ImageChecksum, this.GeneratedChecksum, this.ImageChecksum2, this.GeneratedChecksum2);
|
||||
if (this.ImageChecksum == this.GeneratedChecksum && this.ImageChecksum2 == this.GeneratedChecksum2)
|
||||
{
|
||||
this.lblChkSum.BackColor = Color.LightGreen;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lblChkSum.BackColor = Color.LightCoral;
|
||||
DialogResult dialogResult = MessageBox.Show("The CheckSum is incorrect, Do you want to correct this?", "CheckSum Fault:", MessageBoxButtons.YesNo);
|
||||
if (dialogResult == DialogResult.Yes)
|
||||
{
|
||||
@class.Byte_2 = GeneratedChecksum2;
|
||||
ImageChecksum2 = @class.Byte_2;
|
||||
UpdateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void method_1(string string_1)
|
||||
{
|
||||
foreach (Class25 @class in this.list_0)
|
||||
{
|
||||
@class.method_1();
|
||||
}
|
||||
File.WriteAllBytes(string_1, class30_0.byte_1);
|
||||
}
|
||||
|
||||
private void method_4(string string_0)
|
||||
{
|
||||
if (this.class30_0 != null)
|
||||
{
|
||||
this.class30_0.method_1(string_0);
|
||||
}
|
||||
}
|
||||
|
||||
private void Btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.class30_0 != null)
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.DefaultExt = "*.rom";
|
||||
saveFileDialog.Filter = "BIOS ROM|*.rom";
|
||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
|
||||
this.method_4(saveFileDialog.FileName);
|
||||
this.method_3(saveFileDialog.FileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void lblDefaultPL_Validated(object sender, EventArgs e)
|
||||
{
|
||||
EditBiosBoardPowerLimit(false);
|
||||
}
|
||||
|
||||
private void lblMaxPL_Validated(object sender, EventArgs e)
|
||||
{
|
||||
EditBiosBoardPowerLimit(true);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ABE
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("ABE")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("bmgjet")]
|
||||
[assembly: AssemblyProduct("ABE")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("c16592a9-ba1d-426b-bdef-58751c4d12b0")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.0.1.1")]
|
||||
[assembly: AssemblyFileVersion("0.0.1.1")]
|
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ABE.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ABE.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ABE.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
61aefd688814c2ff6086a796a5d35b9aeef7bc26
|
|
@ -0,0 +1,10 @@
|
|||
C:\Users\bmg\source\repos\ABE\bin\Debug\ABE.exe.config
|
||||
C:\Users\bmg\source\repos\ABE\bin\Debug\ABE.exe
|
||||
C:\Users\bmg\source\repos\ABE\bin\Debug\ABE.pdb
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.csprojAssemblyReference.cache
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.Form1.resources
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.Properties.Resources.resources
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.csproj.GenerateResource.cache
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.csproj.CoreCompileInputs.cache
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.exe
|
||||
C:\Users\bmg\source\repos\ABE\obj\Debug\ABE.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
294177983089110aa3ea0bf2561308f0da7eb2b3
|
|
@ -0,0 +1,9 @@
|
|||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.Form1.resources
|
||||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.Properties.Resources.resources
|
||||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.csproj.GenerateResource.cache
|
||||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.csproj.CoreCompileInputs.cache
|
||||
C:\Users\bmg\source\repos\ABE\bin\Release\ABE.exe.config
|
||||
C:\Users\bmg\source\repos\ABE\bin\Release\ABE.exe
|
||||
C:\Users\bmg\source\repos\ABE\bin\Release\ABE.pdb
|
||||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.exe
|
||||
C:\Users\bmg\source\repos\ABE\obj\Release\ABE.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue