Add files via upload

This commit is contained in:
Bouletmarc 2022-11-04 08:45:53 -04:00 committed by GitHub
parent 74231e46c9
commit 0aa0afc8e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
79 changed files with 11235 additions and 0 deletions

View File

@ -0,0 +1,206 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{1755A1BA-DE54-46AD-BFCE-C0F64ADF3035}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Converter</RootNamespace>
<AssemblyName>Converter</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Build\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>Converter.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Converter.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Forms\Ban_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Ban_Form.Designer.cs">
<DependentUpon>Ban_Form.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Download_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Download_Form.Designer.cs">
<DependentUpon>Download_Form.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Edit_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Edit_Form.Designer.cs">
<DependentUpon>Edit_Form.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Liscence_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Liscence_Form.Designer.cs">
<DependentUpon>Liscence_Form.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Main_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Main_Form.Designer.cs">
<DependentUpon>Main_Form.cs</DependentUpon>
</Compile>
<Compile Include="Forms\New_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\New_Form.Designer.cs">
<DependentUpon>New_Form.cs</DependentUpon>
</Compile>
<Compile Include="Scripts\Download.cs" />
<Compile Include="Scripts\Edit.cs" />
<Compile Include="Scripts\Extractor.cs" />
<Compile Include="Scripts\File_Infos.cs" />
<Compile Include="Scripts\File_Converter.cs" />
<Compile Include="Scripts\Loader.cs" />
<Compile Include="Scripts\Log.cs" />
<Compile Include="Scripts\Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Forms\Settings_Form.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Settings_Form.Designer.cs">
<DependentUpon>Settings_Form.cs</DependentUpon>
</Compile>
<Compile Include="Scripts\Saver.cs" />
<Compile Include="Scripts\Sender.cs" />
<Compile Include="Scripts\Serial.cs" />
<Compile Include="Scripts\ServerManager.cs" />
<Compile Include="Scripts\Settings.cs" />
<EmbeddedResource Include="Forms\Ban_Form.resx">
<DependentUpon>Ban_Form.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Download_Form.resx">
<DependentUpon>Download_Form.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Edit_Form.resx">
<DependentUpon>Edit_Form.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Liscence_Form.resx">
<DependentUpon>Liscence_Form.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Main_Form.resx">
<DependentUpon>Main_Form.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\New_Form.resx">
<DependentUpon>New_Form.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>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Forms\Settings_Form.resx">
<DependentUpon>Settings_Form.cs</DependentUpon>
</EmbeddedResource>
<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>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="Converter.ico" />
<None Include="Icons\parametersToolStripButton.Image.png" />
<None Include="Icons\TunerPro_109-0.png" />
<None Include="Icons\export_table.png" />
<None Include="Icons\help.png" />
<None Include="Icons\display.png" />
<None Include="Icons\import_table.png" />
<None Include="Icons\adjust_selection2.png" />
<None Include="Icons\registration.png" />
<None Include="Icons\settingsSensor.png" />
<None Include="Icons\eeprom_verify_v2.png" />
<None Include="Icons\eeprom_download_v2.png" />
<None Include="Icons\eeprom_upload_v2.png" />
<None Include="Icons\emuDisc.png" />
<None Include="Icons\emuConnect.png" />
<None Include="Icons\sensor_data2.png" />
<None Include="Icons\Binary.png" />
<None Include="Icons\saveAsToolStripButton.Image.png" />
<None Include="Icons\toolDtOpen.Image.png" />
<None Include="Icons\copyToolStripButton.Image.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>if /I "$(ConfigurationName)" == "Release" Eazfuscator.NET.exe "$(TargetPath)" --msbuild-project-path "$(ProjectPath)" --msbuild-project-configuration "$(ConfigurationName)" --msbuild-project-platform "$(PlatformName)" --msbuild-solution-path "$(SolutionPath)" -n --newline-flush -v 5.4</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,98 @@
namespace Converter
{
partial class Ban_Form
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Ban_Form));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(108, 9);
this.label1.Name = "label1";
this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label1.Size = new System.Drawing.Size(105, 25);
this.label1.TabIndex = 1;
this.label1.Text = "BANNED";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.LightCyan;
this.label2.Location = new System.Drawing.Point(12, 52);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(293, 360);
this.label2.TabIndex = 2;
this.label2.Text = resources.GetString("label2.Text");
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Red;
this.label4.Location = new System.Drawing.Point(27, 239);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(275, 50);
this.label4.TabIndex = 4;
this.label4.Text = "IF YOU BELEIVE THIS IS\r\nAN ERROR";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// Ban_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(327, 424);
this.Controls.Add(this.label4);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "Ban_Form";
this.Text = "Converter - Ban";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label4;
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class Ban_Form : Form
{
public Ban_Form()
{
InitializeComponent();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Main_Form.Main.Close();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,159 @@
namespace Converter
{
partial class Download_Form
{
/// <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.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(26, 31);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(264, 84);
this.label1.TabIndex = 0;
this.label1.Text = "NOT\r\nCONNECTED";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"B-Serie",
"D-Serie",
"F-Serie",
"H-Serie",
"Unknown"});
this.comboBox1.Location = new System.Drawing.Point(90, 37);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(144, 21);
this.comboBox1.TabIndex = 1;
this.comboBox1.Text = "All";
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(33, 88);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(257, 21);
this.comboBox2.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Blue;
this.label2.Location = new System.Drawing.Point(101, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(122, 24);
this.label2.TabIndex = 3;
this.label2.Text = "Categories :";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Blue;
this.label3.Location = new System.Drawing.Point(131, 61);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(67, 24);
this.label3.TabIndex = 4;
this.label3.Text = "Files :";
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.comboBox2);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.comboBox1);
this.panel1.Location = new System.Drawing.Point(0, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(320, 172);
this.panel1.TabIndex = 5;
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Blue;
this.button1.Location = new System.Drawing.Point(90, 120);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(144, 44);
this.button1.TabIndex = 5;
this.button1.Text = "DOWNLOAD";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// saveFileDialog1
//
this.saveFileDialog1.Filter = "Calibration File|*.cal";
this.saveFileDialog1.Title = "Converter - Save File";
//
// Download_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(320, 175);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "Download_Form";
this.Text = "Converter Download";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
}
}

View File

@ -0,0 +1,80 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class Download_Form : Form
{
public static Download_Form D_Form;
public Download_Form()
{
InitializeComponent();
D_Form = this;
Download.SetPage();
}
public string Category
{
get { return this.comboBox1.Text; }
}
public string Add_File
{
set { this.comboBox2.Items.Add(value); }
}
public string Set_File
{
get { return this.comboBox2.Text; }
set { this.comboBox2.Text = value; }
}
/*public int Progress
{
get { return this.progressBar1.Value; }
set { this.progressBar1.Value = value; }
}*/
public void Clear_Files()
{
this.comboBox2.Text = "";
this.comboBox2.Items.Clear();
}
private void button1_Click(object sender, EventArgs e)
{
if (Download.LoadFile())
{
this.saveFileDialog1.FileName = D_Form.Set_File;
DialogResult result = saveFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
string path = this.saveFileDialog1.FileName;
File.Create(path).Dispose();
File.WriteAllBytes(path, Download.Download_File);
Log.Log_This("--------------------------------------------------------------------------------------", false);
Log.Log_This("File Saved at :", false);
Log.Log_This(path, false);
}
} else
{
Log.Log_This("Unable to download requested file", false);
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Download.SetPage();
}
}
}

View File

@ -0,0 +1,123 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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>
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@ -0,0 +1,541 @@
namespace Converter
{
partial class Edit_Form
{
/// <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.ELD_CheckBox = new System.Windows.Forms.CheckBox();
this.Knock_CheckBox = new System.Windows.Forms.CheckBox();
this.Baro_CheckBox = new System.Windows.Forms.CheckBox();
this.InjTest_CheckBox = new System.Windows.Forms.CheckBox();
this.Heater_CheckBox = new System.Windows.Forms.CheckBox();
this.Closeloop_CheckBox = new System.Windows.Forms.CheckBox();
this.Vtec_CheckBox = new System.Windows.Forms.CheckBox();
this.IAB_CheckBox = new System.Windows.Forms.CheckBox();
this.Fan_CheckBox = new System.Windows.Forms.CheckBox();
this.IACV_CheckBox = new System.Windows.Forms.CheckBox();
this.FuelCut_CheckBox = new System.Windows.Forms.CheckBox();
this.IgnCut_CheckBox = new System.Windows.Forms.CheckBox();
this.ShiftLight_CheckBox = new System.Windows.Forms.CheckBox();
this.ColdSet_TextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ColdReset_TextBox = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.WarmSet_TextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.WarmReset_TextBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.ShiftLight_TextBox = new System.Windows.Forms.TextBox();
this.SpeedCheck_CheckBox = new System.Windows.Forms.CheckBox();
this.CoolantCheck_CheckBox = new System.Windows.Forms.CheckBox();
this.VTP_CheckBox = new System.Windows.Forms.CheckBox();
this.VtecError_CheckBox = new System.Windows.Forms.CheckBox();
this.label6 = new System.Windows.Forms.Label();
this.VtecLow_TextBox = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.VtecHigh_TextBox = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.Reconvert_Button = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// ELD_CheckBox
//
this.ELD_CheckBox.AutoSize = true;
this.ELD_CheckBox.Location = new System.Drawing.Point(12, 44);
this.ELD_CheckBox.Name = "ELD_CheckBox";
this.ELD_CheckBox.Size = new System.Drawing.Size(85, 17);
this.ELD_CheckBox.TabIndex = 0;
this.ELD_CheckBox.Text = "Disable ELD";
this.ELD_CheckBox.UseVisualStyleBackColor = true;
this.ELD_CheckBox.CheckedChanged += new System.EventHandler(this.ELD_CheckBox_CheckedChanged);
//
// Knock_CheckBox
//
this.Knock_CheckBox.AutoSize = true;
this.Knock_CheckBox.Location = new System.Drawing.Point(12, 67);
this.Knock_CheckBox.Name = "Knock_CheckBox";
this.Knock_CheckBox.Size = new System.Drawing.Size(95, 17);
this.Knock_CheckBox.TabIndex = 1;
this.Knock_CheckBox.Text = "Disable Knock";
this.Knock_CheckBox.UseVisualStyleBackColor = true;
this.Knock_CheckBox.CheckedChanged += new System.EventHandler(this.Knock_CheckBox_CheckedChanged);
//
// Baro_CheckBox
//
this.Baro_CheckBox.AutoSize = true;
this.Baro_CheckBox.Location = new System.Drawing.Point(12, 90);
this.Baro_CheckBox.Name = "Baro_CheckBox";
this.Baro_CheckBox.Size = new System.Drawing.Size(109, 17);
this.Baro_CheckBox.TabIndex = 2;
this.Baro_CheckBox.Text = "Disable PA (Baro)";
this.Baro_CheckBox.UseVisualStyleBackColor = true;
this.Baro_CheckBox.CheckedChanged += new System.EventHandler(this.Baro_CheckBox_CheckedChanged);
//
// InjTest_CheckBox
//
this.InjTest_CheckBox.AutoSize = true;
this.InjTest_CheckBox.Location = new System.Drawing.Point(12, 113);
this.InjTest_CheckBox.Name = "InjTest_CheckBox";
this.InjTest_CheckBox.Size = new System.Drawing.Size(102, 17);
this.InjTest_CheckBox.TabIndex = 3;
this.InjTest_CheckBox.Text = "Disable Inj. Test";
this.InjTest_CheckBox.UseVisualStyleBackColor = true;
this.InjTest_CheckBox.CheckedChanged += new System.EventHandler(this.InjTest_CheckBox_CheckedChanged);
//
// Heater_CheckBox
//
this.Heater_CheckBox.AutoSize = true;
this.Heater_CheckBox.Location = new System.Drawing.Point(12, 136);
this.Heater_CheckBox.Name = "Heater_CheckBox";
this.Heater_CheckBox.Size = new System.Drawing.Size(113, 17);
this.Heater_CheckBox.TabIndex = 4;
this.Heater_CheckBox.Text = "Disable O2 Heater";
this.Heater_CheckBox.UseVisualStyleBackColor = true;
this.Heater_CheckBox.CheckedChanged += new System.EventHandler(this.Heater_CheckBox_CheckedChanged);
//
// Closeloop_CheckBox
//
this.Closeloop_CheckBox.AutoSize = true;
this.Closeloop_CheckBox.Location = new System.Drawing.Point(12, 159);
this.Closeloop_CheckBox.Name = "Closeloop_CheckBox";
this.Closeloop_CheckBox.Size = new System.Drawing.Size(110, 17);
this.Closeloop_CheckBox.TabIndex = 5;
this.Closeloop_CheckBox.Text = "Disable Closeloop";
this.Closeloop_CheckBox.UseVisualStyleBackColor = true;
this.Closeloop_CheckBox.CheckedChanged += new System.EventHandler(this.Closeloop_CheckBox_CheckedChanged);
//
// Vtec_CheckBox
//
this.Vtec_CheckBox.AutoSize = true;
this.Vtec_CheckBox.Location = new System.Drawing.Point(12, 182);
this.Vtec_CheckBox.Name = "Vtec_CheckBox";
this.Vtec_CheckBox.Size = new System.Drawing.Size(86, 17);
this.Vtec_CheckBox.TabIndex = 6;
this.Vtec_CheckBox.Text = "Disable Vtec";
this.Vtec_CheckBox.UseVisualStyleBackColor = true;
this.Vtec_CheckBox.CheckedChanged += new System.EventHandler(this.Vtec_CheckBox_CheckedChanged);
//
// IAB_CheckBox
//
this.IAB_CheckBox.AutoSize = true;
this.IAB_CheckBox.Location = new System.Drawing.Point(12, 205);
this.IAB_CheckBox.Name = "IAB_CheckBox";
this.IAB_CheckBox.Size = new System.Drawing.Size(81, 17);
this.IAB_CheckBox.TabIndex = 7;
this.IAB_CheckBox.Text = "Disable IAB";
this.IAB_CheckBox.UseVisualStyleBackColor = true;
this.IAB_CheckBox.CheckedChanged += new System.EventHandler(this.IAB_CheckBox_CheckedChanged);
//
// Fan_CheckBox
//
this.Fan_CheckBox.AutoSize = true;
this.Fan_CheckBox.Location = new System.Drawing.Point(12, 228);
this.Fan_CheckBox.Name = "Fan_CheckBox";
this.Fan_CheckBox.Size = new System.Drawing.Size(118, 17);
this.Fan_CheckBox.TabIndex = 8;
this.Fan_CheckBox.Text = "Disable Fan Control";
this.Fan_CheckBox.UseVisualStyleBackColor = true;
this.Fan_CheckBox.CheckedChanged += new System.EventHandler(this.Fan_CheckBox_CheckedChanged);
//
// IACV_CheckBox
//
this.IACV_CheckBox.AutoSize = true;
this.IACV_CheckBox.Location = new System.Drawing.Point(12, 251);
this.IACV_CheckBox.Name = "IACV_CheckBox";
this.IACV_CheckBox.Size = new System.Drawing.Size(113, 17);
this.IACV_CheckBox.TabIndex = 9;
this.IACV_CheckBox.Text = "Disable IACV Error";
this.IACV_CheckBox.UseVisualStyleBackColor = true;
this.IACV_CheckBox.CheckedChanged += new System.EventHandler(this.IACV_CheckBox_CheckedChanged);
//
// FuelCut_CheckBox
//
this.FuelCut_CheckBox.AutoSize = true;
this.FuelCut_CheckBox.Location = new System.Drawing.Point(164, 44);
this.FuelCut_CheckBox.Name = "FuelCut_CheckBox";
this.FuelCut_CheckBox.Size = new System.Drawing.Size(101, 17);
this.FuelCut_CheckBox.TabIndex = 13;
this.FuelCut_CheckBox.Text = "Enable Fuel Cut";
this.FuelCut_CheckBox.UseVisualStyleBackColor = true;
this.FuelCut_CheckBox.CheckedChanged += new System.EventHandler(this.FuelCut_CheckBox_CheckedChanged);
//
// IgnCut_CheckBox
//
this.IgnCut_CheckBox.AutoSize = true;
this.IgnCut_CheckBox.Location = new System.Drawing.Point(164, 67);
this.IgnCut_CheckBox.Name = "IgnCut_CheckBox";
this.IgnCut_CheckBox.Size = new System.Drawing.Size(96, 17);
this.IgnCut_CheckBox.TabIndex = 14;
this.IgnCut_CheckBox.Text = "Enable Ign Cut";
this.IgnCut_CheckBox.UseVisualStyleBackColor = true;
this.IgnCut_CheckBox.CheckedChanged += new System.EventHandler(this.IgnCut_CheckBox_CheckedChanged);
//
// ShiftLight_CheckBox
//
this.ShiftLight_CheckBox.AutoSize = true;
this.ShiftLight_CheckBox.Location = new System.Drawing.Point(164, 90);
this.ShiftLight_CheckBox.Name = "ShiftLight_CheckBox";
this.ShiftLight_CheckBox.Size = new System.Drawing.Size(109, 17);
this.ShiftLight_CheckBox.TabIndex = 15;
this.ShiftLight_CheckBox.Text = "Enable Shift Light";
this.ShiftLight_CheckBox.UseVisualStyleBackColor = true;
this.ShiftLight_CheckBox.CheckedChanged += new System.EventHandler(this.ShiftLight_CheckBox_CheckedChanged);
//
// ColdSet_TextBox
//
this.ColdSet_TextBox.Location = new System.Drawing.Point(228, 111);
this.ColdSet_TextBox.MaxLength = 5;
this.ColdSet_TextBox.Name = "ColdSet_TextBox";
this.ColdSet_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.ColdSet_TextBox.Size = new System.Drawing.Size(45, 20);
this.ColdSet_TextBox.TabIndex = 16;
this.ColdSet_TextBox.Text = "9999";
this.ColdSet_TextBox.TextChanged += new System.EventHandler(this.ColdSet_TextBox_TextChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(161, 114);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 17;
this.label1.Text = "Cold Set";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(161, 137);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 13);
this.label2.TabIndex = 19;
this.label2.Text = "Cold Reset";
//
// ColdReset_TextBox
//
this.ColdReset_TextBox.Location = new System.Drawing.Point(228, 134);
this.ColdReset_TextBox.MaxLength = 5;
this.ColdReset_TextBox.Name = "ColdReset_TextBox";
this.ColdReset_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.ColdReset_TextBox.Size = new System.Drawing.Size(45, 20);
this.ColdReset_TextBox.TabIndex = 18;
this.ColdReset_TextBox.Text = "9999";
this.ColdReset_TextBox.TextChanged += new System.EventHandler(this.ColdReset_TextBox_TextChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(161, 160);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(54, 13);
this.label3.TabIndex = 21;
this.label3.Text = "Warm Set";
//
// WarmSet_TextBox
//
this.WarmSet_TextBox.Location = new System.Drawing.Point(228, 157);
this.WarmSet_TextBox.MaxLength = 5;
this.WarmSet_TextBox.Name = "WarmSet_TextBox";
this.WarmSet_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.WarmSet_TextBox.Size = new System.Drawing.Size(45, 20);
this.WarmSet_TextBox.TabIndex = 20;
this.WarmSet_TextBox.Text = "9999";
this.WarmSet_TextBox.TextChanged += new System.EventHandler(this.WarmSet_TextBox_TextChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(161, 183);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(66, 13);
this.label4.TabIndex = 23;
this.label4.Text = "Warm Reset";
//
// WarmReset_TextBox
//
this.WarmReset_TextBox.Location = new System.Drawing.Point(228, 180);
this.WarmReset_TextBox.MaxLength = 5;
this.WarmReset_TextBox.Name = "WarmReset_TextBox";
this.WarmReset_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.WarmReset_TextBox.Size = new System.Drawing.Size(45, 20);
this.WarmReset_TextBox.TabIndex = 22;
this.WarmReset_TextBox.Text = "9999";
this.WarmReset_TextBox.TextChanged += new System.EventHandler(this.WarmReset_TextBox_TextChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(161, 206);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(54, 13);
this.label5.TabIndex = 25;
this.label5.Text = "Shift Light";
//
// ShiftLight_TextBox
//
this.ShiftLight_TextBox.Location = new System.Drawing.Point(228, 203);
this.ShiftLight_TextBox.MaxLength = 5;
this.ShiftLight_TextBox.Name = "ShiftLight_TextBox";
this.ShiftLight_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.ShiftLight_TextBox.Size = new System.Drawing.Size(45, 20);
this.ShiftLight_TextBox.TabIndex = 24;
this.ShiftLight_TextBox.Text = "9999";
this.ShiftLight_TextBox.TextChanged += new System.EventHandler(this.ShiftLight_TextBox_TextChanged);
//
// SpeedCheck_CheckBox
//
this.SpeedCheck_CheckBox.AutoSize = true;
this.SpeedCheck_CheckBox.Location = new System.Drawing.Point(310, 44);
this.SpeedCheck_CheckBox.Name = "SpeedCheck_CheckBox";
this.SpeedCheck_CheckBox.Size = new System.Drawing.Size(129, 17);
this.SpeedCheck_CheckBox.TabIndex = 26;
this.SpeedCheck_CheckBox.Text = "Disable Speed Check";
this.SpeedCheck_CheckBox.UseVisualStyleBackColor = true;
this.SpeedCheck_CheckBox.CheckedChanged += new System.EventHandler(this.SpeedCheck_CheckBox_CheckedChanged);
//
// CoolantCheck_CheckBox
//
this.CoolantCheck_CheckBox.AutoSize = true;
this.CoolantCheck_CheckBox.Location = new System.Drawing.Point(310, 67);
this.CoolantCheck_CheckBox.Name = "CoolantCheck_CheckBox";
this.CoolantCheck_CheckBox.Size = new System.Drawing.Size(134, 17);
this.CoolantCheck_CheckBox.TabIndex = 27;
this.CoolantCheck_CheckBox.Text = "Disable Coolant Check";
this.CoolantCheck_CheckBox.UseVisualStyleBackColor = true;
this.CoolantCheck_CheckBox.CheckedChanged += new System.EventHandler(this.CoolantCheck_CheckBox_CheckedChanged);
//
// VTP_CheckBox
//
this.VTP_CheckBox.AutoSize = true;
this.VTP_CheckBox.Location = new System.Drawing.Point(310, 90);
this.VTP_CheckBox.Name = "VTP_CheckBox";
this.VTP_CheckBox.Size = new System.Drawing.Size(119, 17);
this.VTP_CheckBox.TabIndex = 28;
this.VTP_CheckBox.Text = "Disable VTPressure";
this.VTP_CheckBox.UseVisualStyleBackColor = true;
this.VTP_CheckBox.CheckedChanged += new System.EventHandler(this.VTP_CheckBox_CheckedChanged);
//
// VtecError_CheckBox
//
this.VtecError_CheckBox.AutoSize = true;
this.VtecError_CheckBox.Location = new System.Drawing.Point(310, 113);
this.VtecError_CheckBox.Name = "VtecError_CheckBox";
this.VtecError_CheckBox.Size = new System.Drawing.Size(111, 17);
this.VtecError_CheckBox.TabIndex = 29;
this.VtecError_CheckBox.Text = "Disable Vtec Error";
this.VtecError_CheckBox.UseVisualStyleBackColor = true;
this.VtecError_CheckBox.CheckedChanged += new System.EventHandler(this.VtecError_CheckBox_CheckedChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(307, 160);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(54, 13);
this.label6.TabIndex = 34;
this.label6.Text = "Low Load";
//
// VtecLow_TextBox
//
this.VtecLow_TextBox.Location = new System.Drawing.Point(374, 157);
this.VtecLow_TextBox.MaxLength = 5;
this.VtecLow_TextBox.Name = "VtecLow_TextBox";
this.VtecLow_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.VtecLow_TextBox.Size = new System.Drawing.Size(45, 20);
this.VtecLow_TextBox.TabIndex = 33;
this.VtecLow_TextBox.Text = "9999";
this.VtecLow_TextBox.TextChanged += new System.EventHandler(this.VtecLow_TextBox_TextChanged);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(307, 137);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 13);
this.label7.TabIndex = 32;
this.label7.Text = "High Load";
//
// VtecHigh_TextBox
//
this.VtecHigh_TextBox.Location = new System.Drawing.Point(374, 134);
this.VtecHigh_TextBox.MaxLength = 5;
this.VtecHigh_TextBox.Name = "VtecHigh_TextBox";
this.VtecHigh_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
this.VtecHigh_TextBox.Size = new System.Drawing.Size(45, 20);
this.VtecHigh_TextBox.TabIndex = 31;
this.VtecHigh_TextBox.Text = "9999";
this.VtecHigh_TextBox.TextChanged += new System.EventHandler(this.VtecHigh_TextBox_TextChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.LightCyan;
this.label8.Location = new System.Drawing.Point(4, 9);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(121, 25);
this.label8.TabIndex = 35;
this.label8.Text = "SENSORS";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.ForeColor = System.Drawing.Color.LightCyan;
this.label9.Location = new System.Drawing.Point(164, 9);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(101, 25);
this.label9.TabIndex = 36;
this.label9.Text = "LIMITER";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.ForeColor = System.Drawing.Color.LightCyan;
this.label10.Location = new System.Drawing.Point(334, 9);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(72, 25);
this.label10.TabIndex = 37;
this.label10.Text = "VTEC";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.ForeColor = System.Drawing.Color.LightCyan;
this.label11.Location = new System.Drawing.Point(288, 250);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(151, 16);
this.label11.TabIndex = 38;
this.label11.Text = "Made By Bouletmarc";
//
// Reconvert_Button
//
this.Reconvert_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Reconvert_Button.ForeColor = System.Drawing.Color.Red;
this.Reconvert_Button.Location = new System.Drawing.Point(310, 186);
this.Reconvert_Button.Name = "Reconvert_Button";
this.Reconvert_Button.Size = new System.Drawing.Size(129, 52);
this.Reconvert_Button.TabIndex = 39;
this.Reconvert_Button.Text = "RECONVERT";
this.Reconvert_Button.UseVisualStyleBackColor = true;
this.Reconvert_Button.Click += new System.EventHandler(this.Reconvert_Button_Click);
//
// Edit_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(445, 270);
this.Controls.Add(this.Reconvert_Button);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label6);
this.Controls.Add(this.VtecLow_TextBox);
this.Controls.Add(this.label7);
this.Controls.Add(this.VtecHigh_TextBox);
this.Controls.Add(this.VtecError_CheckBox);
this.Controls.Add(this.VTP_CheckBox);
this.Controls.Add(this.CoolantCheck_CheckBox);
this.Controls.Add(this.SpeedCheck_CheckBox);
this.Controls.Add(this.label5);
this.Controls.Add(this.ShiftLight_TextBox);
this.Controls.Add(this.label4);
this.Controls.Add(this.WarmReset_TextBox);
this.Controls.Add(this.label3);
this.Controls.Add(this.WarmSet_TextBox);
this.Controls.Add(this.label2);
this.Controls.Add(this.ColdReset_TextBox);
this.Controls.Add(this.label1);
this.Controls.Add(this.ColdSet_TextBox);
this.Controls.Add(this.ShiftLight_CheckBox);
this.Controls.Add(this.IgnCut_CheckBox);
this.Controls.Add(this.FuelCut_CheckBox);
this.Controls.Add(this.IACV_CheckBox);
this.Controls.Add(this.Fan_CheckBox);
this.Controls.Add(this.IAB_CheckBox);
this.Controls.Add(this.Vtec_CheckBox);
this.Controls.Add(this.Closeloop_CheckBox);
this.Controls.Add(this.Heater_CheckBox);
this.Controls.Add(this.InjTest_CheckBox);
this.Controls.Add(this.Baro_CheckBox);
this.Controls.Add(this.Knock_CheckBox);
this.Controls.Add(this.ELD_CheckBox);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "Edit_Form";
this.Text = "Converter - Edit Parameters";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox ELD_CheckBox;
private System.Windows.Forms.CheckBox Knock_CheckBox;
private System.Windows.Forms.CheckBox Baro_CheckBox;
private System.Windows.Forms.CheckBox InjTest_CheckBox;
private System.Windows.Forms.CheckBox Heater_CheckBox;
private System.Windows.Forms.CheckBox Closeloop_CheckBox;
private System.Windows.Forms.CheckBox Vtec_CheckBox;
private System.Windows.Forms.CheckBox IAB_CheckBox;
private System.Windows.Forms.CheckBox Fan_CheckBox;
private System.Windows.Forms.CheckBox IACV_CheckBox;
private System.Windows.Forms.CheckBox FuelCut_CheckBox;
private System.Windows.Forms.CheckBox IgnCut_CheckBox;
private System.Windows.Forms.CheckBox ShiftLight_CheckBox;
private System.Windows.Forms.TextBox ColdSet_TextBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox ColdReset_TextBox;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox WarmSet_TextBox;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox WarmReset_TextBox;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox ShiftLight_TextBox;
private System.Windows.Forms.CheckBox SpeedCheck_CheckBox;
private System.Windows.Forms.CheckBox CoolantCheck_CheckBox;
private System.Windows.Forms.CheckBox VTP_CheckBox;
private System.Windows.Forms.CheckBox VtecError_CheckBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox VtecLow_TextBox;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox VtecHigh_TextBox;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Button Reconvert_Button;
}
}

View File

@ -0,0 +1,298 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class Edit_Form : Form
{
public static Edit_Form Editf;
public Edit_Form()
{
InitializeComponent();
Editf = this;
Edit.Load();
}
public bool ELD_Checked
{
get { return ELD_CheckBox.Checked; }
set { ELD_CheckBox.Checked = value; }
}
public bool Knock_Checked
{
get { return Knock_CheckBox.Checked; }
set { Knock_CheckBox.Checked = value; }
}
public bool Baro_Checked
{
get { return Baro_CheckBox.Checked; }
set { Baro_CheckBox.Checked = value; }
}
public bool InjTest_Checked
{
get { return InjTest_CheckBox.Checked; }
set { InjTest_CheckBox.Checked = value; }
}
public bool Heater_Checked
{
get { return Heater_CheckBox.Checked; }
set { Heater_CheckBox.Checked = value; }
}
public bool Closeloop_Checked
{
get { return Closeloop_CheckBox.Checked; }
set { Closeloop_CheckBox.Checked = value; }
}
public bool Vtec_Checked
{
get { return Vtec_CheckBox.Checked; }
set { Vtec_CheckBox.Checked = value; }
}
public bool IAB_Checked
{
get { return IAB_CheckBox.Checked; }
set { IAB_CheckBox.Checked = value; }
}
public bool Fan_Checked
{
get { return Fan_CheckBox.Checked; }
set { Fan_CheckBox.Checked = value; }
}
public bool IACV_Checked
{
get { return IACV_CheckBox.Checked; }
set { IACV_CheckBox.Checked = value; }
}
public bool FuelCut_Checked
{
get { return FuelCut_CheckBox.Checked; }
set { FuelCut_CheckBox.Checked = value; }
}
public bool IgnCut_Checked
{
get { return IgnCut_CheckBox.Checked; }
set { IgnCut_CheckBox.Checked = value; }
}
public bool ShiftLight_Checked
{
get { return ShiftLight_CheckBox.Checked; }
set { ShiftLight_CheckBox.Checked = value; }
}
public bool SpeedCheck_Checked
{
get { return SpeedCheck_CheckBox.Checked; }
set { SpeedCheck_CheckBox.Checked = value; }
}
public bool CoolantCheck_Checked
{
get { return CoolantCheck_CheckBox.Checked; }
set { CoolantCheck_CheckBox.Checked = value; }
}
public bool VTP_Checked
{
get { return VTP_CheckBox.Checked; }
set { VTP_CheckBox.Checked = value; }
}
public bool VtecError_Checked
{
get { return VtecError_CheckBox.Checked; }
set { VtecError_CheckBox.Checked = value; }
}
//########################################################################
public int ColdSet_RPM
{
get { return int.Parse(ColdSet_TextBox.Text); }
set { ColdSet_TextBox.Text = value.ToString(); }
}
public int ColdReset_RPM
{
get { return int.Parse(ColdReset_TextBox.Text); }
set { ColdReset_TextBox.Text = value.ToString(); }
}
public int WarmSet_RPM
{
get { return int.Parse(WarmSet_TextBox.Text); }
set { WarmSet_TextBox.Text = value.ToString(); }
}
public int WarmReset_RPM
{
get { return int.Parse(WarmReset_TextBox.Text); }
set { WarmReset_TextBox.Text = value.ToString(); }
}
public int ShiftLight_RPM
{
get { return int.Parse(ShiftLight_TextBox.Text); }
set { ShiftLight_TextBox.Text = value.ToString(); }
}
public int VtecHigh_RPM
{
get { return int.Parse(VtecHigh_TextBox.Text); }
set { VtecHigh_TextBox.Text = value.ToString(); }
}
public int VtecLow_RPM
{
get { return int.Parse(VtecLow_TextBox.Text); }
set { VtecLow_TextBox.Text = value.ToString(); }
}
//#######################################################################################
private void ELD_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_ELD();
}
private void Knock_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Knock();
}
private void Baro_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Baro();
}
private void InjTest_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_InjTest();
}
private void Heater_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_O2Heater();
}
private void Closeloop_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_CloseLoop();
}
private void Vtec_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Using_Vtec();
}
private void IAB_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_IAB();
}
private void Fan_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_FanControl();
}
private void IACV_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_IACV();
}
private void FuelCut_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_FuelCut();
}
private void IgnCut_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_IgnitionCut();
}
private void ShiftLight_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_ShiftLight();
}
private void ColdSet_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Cold_Set();
}
private void ColdReset_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Cold_Reset();
}
private void WarmSet_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Hot_Set();
}
private void WarmReset_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Hot_Reset();
}
private void ShiftLight_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Shiftlight();
}
private void SpeedCheck_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Vtec_Speed();
}
private void CoolantCheck_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Vtec_Coolant();
}
private void VTP_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Vtec_Pressure();
}
private void VtecError_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Edit.Set_Vtec_Error();
}
private void VtecHigh_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Vtec_Set();
}
private void VtecLow_TextBox_TextChanged(object sender, EventArgs e)
{
Edit.Set_RPM_Vtec_Reset();
}
private void Reconvert_Button_Click(object sender, EventArgs e)
{
Log.Log_This("--------------------------------------------------------------------------------------", false);
File_Converter.Convert_File();
Close();
}
}
}

View File

@ -0,0 +1,120 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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>

View File

@ -0,0 +1,193 @@
namespace Converter
{
partial class Liscence_Form
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Liscence_Form));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.HWID_Label = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(12, 61);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(164, 96);
this.label1.TabIndex = 0;
this.label1.Text = "Limited Conversions\r\nReset Checksum\r\nEdit Parameters\r\nLogs Infos\r\nDownload Calibr" +
"ations\r\nMoates Options";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Yellow;
this.label2.Location = new System.Drawing.Point(250, 41);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(129, 20);
this.label2.TabIndex = 1;
this.label2.Text = "FREE PAID";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Red;
this.label3.Location = new System.Drawing.Point(266, 61);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(30, 96);
this.label3.TabIndex = 2;
this.label3.Text = "10\r\nNO\r\nNO\r\nNO\r\nNO\r\nNO";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Lime;
this.label4.Location = new System.Drawing.Point(318, 61);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(73, 96);
this.label4.TabIndex = 3;
this.label4.Text = "Unlimited\r\n YES\r\n YES\r\n YES\r\n YES\r\n YES";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.DarkRed;
this.label5.Location = new System.Drawing.Point(12, 175);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(384, 104);
this.label5.TabIndex = 4;
this.label5.Text = "1. Liscence cost 25$USD for a Lifetime use.\r\n2. After you bought a liscence, repl" +
"y to \'Bouletmarc@hotmail.com\'\r\n\r\n\r\n\r\n\r\n\r\n3. Allow up to 48h to receive the lisc" +
"ence.";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.DarkRed;
this.label6.Location = new System.Drawing.Point(22, 209);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(274, 39);
this.label6.TabIndex = 5;
this.label6.Text = "-Include your email you want to receive your liscence on.\r\n-Include the Paypal em" +
"ail used for the transaction.\r\n-Include your Hardward ID :";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Blue;
this.button1.Location = new System.Drawing.Point(120, 289);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(176, 50);
this.button1.TabIndex = 6;
this.button1.Text = "BUY LISCENCE";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(101, 9);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(206, 25);
this.label7.TabIndex = 7;
this.label7.Text = "Liscence Features";
//
// HWID_Label
//
this.HWID_Label.AutoSize = true;
this.HWID_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.HWID_Label.ForeColor = System.Drawing.Color.Blue;
this.HWID_Label.Location = new System.Drawing.Point(163, 235);
this.HWID_Label.Name = "HWID_Label";
this.HWID_Label.Size = new System.Drawing.Size(0, 13);
this.HWID_Label.TabIndex = 8;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(166, 235);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(187, 20);
this.textBox1.TabIndex = 9;
//
// Liscence_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(406, 351);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.HWID_Label);
this.Controls.Add(this.label7);
this.Controls.Add(this.button1);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "Liscence_Form";
this.Text = "Converter - Liscence";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label HWID_Label;
private System.Windows.Forms.TextBox textBox1;
}
}

View File

@ -0,0 +1,28 @@
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class Liscence_Form : Form
{
public Liscence_Form()
{
InitializeComponent();
//this.HWID_Label.Text = Loader.CPU_HWID;
this.textBox1.Text = Loader.CPU_HWID;
}
private void button1_Click(object sender, EventArgs e)
{
Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5LM2Q2U5EZ7VY");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,726 @@
namespace Converter
{
partial class Main_Form
{
/// <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()
{
System.Windows.Forms.ToolStripDropDownButton Moates_Drop;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main_Form));
this.Connect_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Disconnect_Button = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.Read_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Write_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Verify_Button = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.Set_Chips_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Chips_ComboBox = new System.Windows.Forms.ToolStripComboBox();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.openFlashBurnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.Files_Drop = new System.Windows.Forms.ToolStripDropDownButton();
this.Load_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Extract_Button = new System.Windows.Forms.ToolStripMenuItem();
this.extractSManagerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Edit_Button = new System.Windows.Forms.ToolStripMenuItem();
this.SaveCal_Button = new System.Windows.Forms.ToolStripMenuItem();
this.SaveBin_Button = new System.Windows.Forms.ToolStripMenuItem();
this.Download_Button = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.Settings_Button = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.Liscence_Button = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.New_Button = new System.Windows.Forms.ToolStripButton();
this.Open_File_Form = new System.Windows.Forms.OpenFileDialog();
this.Save_File_Cal_Form = new System.Windows.Forms.SaveFileDialog();
this.Save_File_Bin_Form = new System.Windows.Forms.SaveFileDialog();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.Infos_TextBox = new System.Windows.Forms.TextBox();
this.Logs_TextBox = new System.Windows.Forms.TextBox();
this.Progress_Bar = new System.Windows.Forms.ProgressBar();
this.panel1 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.label5 = new System.Windows.Forms.Label();
this.ConvertDone_Label = new System.Windows.Forms.Label();
this.Register_Label = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.Version_Label = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button2 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
Moates_Drop = new System.Windows.Forms.ToolStripDropDownButton();
this.toolStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// Moates_Drop
//
Moates_Drop.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Connect_Button,
this.Disconnect_Button,
this.toolStripSeparator3,
this.Read_Button,
this.Write_Button,
this.Verify_Button,
this.toolStripSeparator5,
this.Set_Chips_Button,
this.toolStripSeparator7,
this.openFlashBurnToolStripMenuItem});
Moates_Drop.Image = global::Converter.Properties.Resources.parametersToolStripButton_Image;
Moates_Drop.Name = "Moates_Drop";
Moates_Drop.Size = new System.Drawing.Size(75, 22);
Moates_Drop.Text = "Moates";
//
// Connect_Button
//
this.Connect_Button.Image = global::Converter.Properties.Resources.emuConnect;
this.Connect_Button.Name = "Connect_Button";
this.Connect_Button.Size = new System.Drawing.Size(167, 22);
this.Connect_Button.Text = "Connect";
this.Connect_Button.Click += new System.EventHandler(this.Connect_Button_Click);
//
// Disconnect_Button
//
this.Disconnect_Button.Enabled = false;
this.Disconnect_Button.Image = global::Converter.Properties.Resources.emuDisc;
this.Disconnect_Button.Name = "Disconnect_Button";
this.Disconnect_Button.Size = new System.Drawing.Size(167, 22);
this.Disconnect_Button.Text = "Disconnect";
this.Disconnect_Button.Click += new System.EventHandler(this.Disconnect_Button_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(164, 6);
//
// Read_Button
//
this.Read_Button.Enabled = false;
this.Read_Button.Image = global::Converter.Properties.Resources.eeprom_upload_v2;
this.Read_Button.Name = "Read_Button";
this.Read_Button.Size = new System.Drawing.Size(167, 22);
this.Read_Button.Text = "Read";
this.Read_Button.Click += new System.EventHandler(this.Read_Button_Click);
//
// Write_Button
//
this.Write_Button.Enabled = false;
this.Write_Button.Image = global::Converter.Properties.Resources.eeprom_download_v2;
this.Write_Button.Name = "Write_Button";
this.Write_Button.Size = new System.Drawing.Size(167, 22);
this.Write_Button.Text = "Write";
this.Write_Button.Click += new System.EventHandler(this.Write_Button_Click);
//
// Verify_Button
//
this.Verify_Button.Enabled = false;
this.Verify_Button.Image = global::Converter.Properties.Resources.eeprom_verify_v2;
this.Verify_Button.Name = "Verify_Button";
this.Verify_Button.Size = new System.Drawing.Size(167, 22);
this.Verify_Button.Text = "Verify";
this.Verify_Button.Click += new System.EventHandler(this.Verify_Button_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(164, 6);
//
// Set_Chips_Button
//
this.Set_Chips_Button.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Chips_ComboBox});
this.Set_Chips_Button.Enabled = false;
this.Set_Chips_Button.Image = global::Converter.Properties.Resources.TunerPro_109_0;
this.Set_Chips_Button.Name = "Set_Chips_Button";
this.Set_Chips_Button.Size = new System.Drawing.Size(167, 22);
this.Set_Chips_Button.Text = "Set Chips";
//
// Chips_ComboBox
//
this.Chips_ComboBox.Items.AddRange(new object[] {
"SST27SF512",
"AT27C256 (Read Only)",
"AT29C256"});
this.Chips_ComboBox.Name = "Chips_ComboBox";
this.Chips_ComboBox.Size = new System.Drawing.Size(121, 23);
this.Chips_ComboBox.Text = "SST27SF512";
this.Chips_ComboBox.SelectedIndexChanged += new System.EventHandler(this.Chips_ComboBox_SelectedIndexChanged);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(164, 6);
//
// openFlashBurnToolStripMenuItem
//
this.openFlashBurnToolStripMenuItem.Image = global::Converter.Properties.Resources.display;
this.openFlashBurnToolStripMenuItem.Name = "openFlashBurnToolStripMenuItem";
this.openFlashBurnToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
this.openFlashBurnToolStripMenuItem.Text = "Open FlashNBurn";
this.openFlashBurnToolStripMenuItem.Click += new System.EventHandler(this.openFlashBurnToolStripMenuItem_Click);
//
// toolStrip1
//
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Files_Drop,
this.toolStripSeparator1,
Moates_Drop,
this.toolStripSeparator4,
this.Settings_Button,
this.toolStripSeparator2,
this.Liscence_Button,
this.toolStripSeparator6,
this.New_Button});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStrip1.Size = new System.Drawing.Size(589, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// Files_Drop
//
this.Files_Drop.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Load_Button,
this.Extract_Button,
this.extractSManagerToolStripMenuItem,
this.Edit_Button,
this.SaveCal_Button,
this.SaveBin_Button,
this.Download_Button});
this.Files_Drop.Image = global::Converter.Properties.Resources.copyToolStripButton_Image;
this.Files_Drop.Name = "Files_Drop";
this.Files_Drop.Size = new System.Drawing.Size(59, 22);
this.Files_Drop.Text = "Files";
//
// Load_Button
//
this.Load_Button.Image = global::Converter.Properties.Resources.toolDtOpen_Image;
this.Load_Button.Name = "Load_Button";
this.Load_Button.Size = new System.Drawing.Size(181, 22);
this.Load_Button.Text = "Load";
this.Load_Button.Click += new System.EventHandler(this.Load_Button_Click);
//
// Extract_Button
//
this.Extract_Button.Image = global::Converter.Properties.Resources.export_table;
this.Extract_Button.Name = "Extract_Button";
this.Extract_Button.Size = new System.Drawing.Size(181, 22);
this.Extract_Button.Text = "Extract Neptune RTP";
this.Extract_Button.Click += new System.EventHandler(this.Extract_Button_Click);
//
// extractSManagerToolStripMenuItem
//
this.extractSManagerToolStripMenuItem.Image = global::Converter.Properties.Resources.export_table;
this.extractSManagerToolStripMenuItem.Name = "extractSManagerToolStripMenuItem";
this.extractSManagerToolStripMenuItem.Size = new System.Drawing.Size(181, 22);
this.extractSManagerToolStripMenuItem.Text = "Extract SManager";
this.extractSManagerToolStripMenuItem.Click += new System.EventHandler(this.extractSManagerToolStripMenuItem_Click);
//
// Edit_Button
//
this.Edit_Button.Enabled = false;
this.Edit_Button.Image = global::Converter.Properties.Resources.adjust_selection2;
this.Edit_Button.Name = "Edit_Button";
this.Edit_Button.Size = new System.Drawing.Size(181, 22);
this.Edit_Button.Text = "Edit";
this.Edit_Button.Click += new System.EventHandler(this.Edit_Button_Click);
//
// SaveCal_Button
//
this.SaveCal_Button.Enabled = false;
this.SaveCal_Button.Image = global::Converter.Properties.Resources.saveAsToolStripButton_Image;
this.SaveCal_Button.Name = "SaveCal_Button";
this.SaveCal_Button.Size = new System.Drawing.Size(181, 22);
this.SaveCal_Button.Text = "Save as .cal";
this.SaveCal_Button.Click += new System.EventHandler(this.SaveCal_Button_Click);
//
// SaveBin_Button
//
this.SaveBin_Button.Enabled = false;
this.SaveBin_Button.Image = global::Converter.Properties.Resources.Binary;
this.SaveBin_Button.Name = "SaveBin_Button";
this.SaveBin_Button.Size = new System.Drawing.Size(181, 22);
this.SaveBin_Button.Text = "Save as .bin";
this.SaveBin_Button.Click += new System.EventHandler(this.SaveBin_Button_Click);
//
// Download_Button
//
this.Download_Button.Enabled = false;
this.Download_Button.Image = global::Converter.Properties.Resources.import_table;
this.Download_Button.Name = "Download_Button";
this.Download_Button.Size = new System.Drawing.Size(181, 22);
this.Download_Button.Text = "Download .cal";
this.Download_Button.Visible = false;
this.Download_Button.Click += new System.EventHandler(this.Download_Button_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
//
// Settings_Button
//
this.Settings_Button.Image = global::Converter.Properties.Resources.settingsSensor;
this.Settings_Button.Name = "Settings_Button";
this.Settings_Button.Size = new System.Drawing.Size(69, 22);
this.Settings_Button.Text = "Settings";
this.Settings_Button.Click += new System.EventHandler(this.Settings_Button_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
//
// Liscence_Button
//
this.Liscence_Button.Image = global::Converter.Properties.Resources.registration;
this.Liscence_Button.ImageTransparentColor = System.Drawing.Color.Magenta;
this.Liscence_Button.Name = "Liscence_Button";
this.Liscence_Button.Size = new System.Drawing.Size(72, 22);
this.Liscence_Button.Text = "Liscence";
this.Liscence_Button.Click += new System.EventHandler(this.Liscence_Button_Click_1);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25);
this.toolStripSeparator6.Visible = false;
//
// New_Button
//
this.New_Button.Image = global::Converter.Properties.Resources.help;
this.New_Button.ImageTransparentColor = System.Drawing.Color.Magenta;
this.New_Button.Name = "New_Button";
this.New_Button.Size = new System.Drawing.Size(53, 22);
this.New_Button.Text = "NEW";
this.New_Button.Visible = false;
this.New_Button.Click += new System.EventHandler(this.New_Button_Click);
//
// Open_File_Form
//
this.Open_File_Form.Filter = "Tuning Files (*.cal, *bin)|*.cal; *bin";
this.Open_File_Form.Title = "Open File";
//
// Save_File_Cal_Form
//
this.Save_File_Cal_Form.Filter = "Calibrations Files|*.cal";
this.Save_File_Cal_Form.Title = "Save Calibration File";
//
// Save_File_Bin_Form
//
this.Save_File_Bin_Form.Filter = "Binaries Files|*.bin";
this.Save_File_Bin_Form.Title = "Save Binary File";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.LightCyan;
this.label1.Location = new System.Drawing.Point(120, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(121, 25);
this.label1.TabIndex = 0;
this.label1.Text = "Files Infos";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.LightCyan;
this.label2.Location = new System.Drawing.Point(120, 125);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(121, 25);
this.label2.TabIndex = 1;
this.label2.Text = "Logs Infos";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// Infos_TextBox
//
this.Infos_TextBox.Enabled = false;
this.Infos_TextBox.Location = new System.Drawing.Point(12, 38);
this.Infos_TextBox.Multiline = true;
this.Infos_TextBox.Name = "Infos_TextBox";
this.Infos_TextBox.ReadOnly = true;
this.Infos_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.Infos_TextBox.ShortcutsEnabled = false;
this.Infos_TextBox.Size = new System.Drawing.Size(332, 84);
this.Infos_TextBox.TabIndex = 2;
//
// Logs_TextBox
//
this.Logs_TextBox.Location = new System.Drawing.Point(12, 153);
this.Logs_TextBox.Multiline = true;
this.Logs_TextBox.Name = "Logs_TextBox";
this.Logs_TextBox.ReadOnly = true;
this.Logs_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.Logs_TextBox.ShortcutsEnabled = false;
this.Logs_TextBox.Size = new System.Drawing.Size(332, 196);
this.Logs_TextBox.TabIndex = 3;
//
// Progress_Bar
//
this.Progress_Bar.Dock = System.Windows.Forms.DockStyle.Bottom;
this.Progress_Bar.Location = new System.Drawing.Point(0, 396);
this.Progress_Bar.Name = "Progress_Bar";
this.Progress_Bar.Size = new System.Drawing.Size(589, 11);
this.Progress_Bar.TabIndex = 4;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.panel1.Controls.Add(this.checkBox1);
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.ConvertDone_Label);
this.panel1.Controls.Add(this.Register_Label);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.Version_Label);
this.panel1.Controls.Add(this.Progress_Bar);
this.panel1.Controls.Add(this.Logs_TextBox);
this.panel1.Controls.Add(this.Infos_TextBox);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 25);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(589, 407);
this.panel1.TabIndex = 1;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(200)))));
this.label4.Location = new System.Drawing.Point(23, 55);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(134, 13);
this.label4.TabIndex = 11;
this.label4.Text = "Founds Locations for RTP:";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(10, 197);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(159, 20);
this.textBox1.TabIndex = 13;
//
// listBox1
//
this.listBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(10, 72);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(159, 95);
this.listBox1.TabIndex = 10;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(200)))));
this.label5.Location = new System.Drawing.Point(37, 179);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(88, 13);
this.label5.TabIndex = 12;
this.label5.Text = "RTP at Location:";
this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// ConvertDone_Label
//
this.ConvertDone_Label.AutoSize = true;
this.ConvertDone_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ConvertDone_Label.ForeColor = System.Drawing.Color.Red;
this.ConvertDone_Label.Location = new System.Drawing.Point(3, 381);
this.ConvertDone_Label.Name = "ConvertDone_Label";
this.ConvertDone_Label.Size = new System.Drawing.Size(114, 12);
this.ConvertDone_Label.TabIndex = 9;
this.ConvertDone_Label.Text = "CONVERT DONE : 10";
//
// Register_Label
//
this.Register_Label.AutoSize = true;
this.Register_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Register_Label.ForeColor = System.Drawing.Color.Red;
this.Register_Label.Location = new System.Drawing.Point(264, 381);
this.Register_Label.Name = "Register_Label";
this.Register_Label.Size = new System.Drawing.Size(91, 12);
this.Register_Label.TabIndex = 8;
this.Register_Label.Text = "UNREGISTERED";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(125, 355);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(104, 24);
this.button1.TabIndex = 7;
this.button1.Text = "Save Logs";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(200)))));
this.label3.Location = new System.Drawing.Point(277, 3);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(78, 12);
this.label3.TabIndex = 6;
this.label3.Text = "By Bouletmarc";
//
// Version_Label
//
this.Version_Label.AutoSize = true;
this.Version_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Version_Label.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(200)))));
this.Version_Label.Location = new System.Drawing.Point(3, 3);
this.Version_Label.Name = "Version_Label";
this.Version_Label.Size = new System.Drawing.Size(38, 12);
this.Version_Label.TabIndex = 5;
this.Version_Label.Text = "v7.0.0";
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.checkBox1.ForeColor = System.Drawing.SystemColors.ControlText;
this.checkBox1.Location = new System.Drawing.Point(398, 18);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(150, 17);
this.checkBox1.TabIndex = 16;
this.checkBox1.Text = "Enable RTP with Emulator";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// button2
//
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.ForeColor = System.Drawing.SystemColors.ControlText;
this.button2.Location = new System.Drawing.Point(15, 21);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(154, 23);
this.button2.TabIndex = 17;
this.button2.Text = "Check for new locations";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.textBox2);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.groupBox1);
this.groupBox2.Controls.Add(this.comboBox1);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Location = new System.Drawing.Point(383, 49);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(200, 344);
this.groupBox2.TabIndex = 15;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Realtime Programming Settings";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.SystemColors.ControlText;
this.label7.Location = new System.Drawing.Point(42, 25);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(97, 13);
this.label7.TabIndex = 18;
this.label7.Text = "RTP with software:";
this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Hondata SManager",
"Neptune RTP"});
this.comboBox1.Location = new System.Drawing.Point(18, 44);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(154, 21);
this.comboBox1.TabIndex = 19;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.listBox1);
this.groupBox1.Location = new System.Drawing.Point(6, 111);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(177, 226);
this.groupBox1.TabIndex = 17;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "RTP Extract Location";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.SystemColors.ControlText;
this.label8.Location = new System.Drawing.Point(18, 78);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(81, 13);
this.label8.TabIndex = 20;
this.label8.Text = "Extract Interval:";
this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(105, 75);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(34, 20);
this.textBox2.TabIndex = 21;
this.textBox2.Text = "15";
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(145, 78);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 13);
this.label9.TabIndex = 22;
this.label9.Text = "sec";
//
// Main_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(589, 431);
this.Controls.Add(this.panel1);
this.Controls.Add(this.toolStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "Main_Form";
this.Text = "Converter";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Main_Form_FormClosing);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripDropDownButton Files_Drop;
private System.Windows.Forms.ToolStripMenuItem Load_Button;
private System.Windows.Forms.ToolStripMenuItem Edit_Button;
private System.Windows.Forms.ToolStripMenuItem SaveCal_Button;
private System.Windows.Forms.ToolStripMenuItem SaveBin_Button;
private System.Windows.Forms.ToolStripMenuItem Download_Button;
private System.Windows.Forms.ToolStripMenuItem Connect_Button;
private System.Windows.Forms.ToolStripMenuItem Read_Button;
private System.Windows.Forms.ToolStripMenuItem Write_Button;
private System.Windows.Forms.ToolStripMenuItem Verify_Button;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripButton Settings_Button;
private System.Windows.Forms.ToolStripMenuItem Disconnect_Button;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.OpenFileDialog Open_File_Form;
private System.Windows.Forms.SaveFileDialog Save_File_Cal_Form;
private System.Windows.Forms.SaveFileDialog Save_File_Bin_Form;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox Infos_TextBox;
private System.Windows.Forms.ProgressBar Progress_Bar;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label Version_Label;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ToolStripButton Liscence_Button;
private System.Windows.Forms.Label ConvertDone_Label;
private System.Windows.Forms.Label Register_Label;
private System.Windows.Forms.TextBox Logs_TextBox;
private System.Windows.Forms.ToolStripMenuItem Extract_Button;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripMenuItem Set_Chips_Button;
private System.Windows.Forms.ToolStripComboBox Chips_ComboBox;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripButton New_Button;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem openFlashBurnToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem extractSManagerToolStripMenuItem;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label7;
}
}

View File

@ -0,0 +1,534 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace Converter
{
public partial class Main_Form : Form
{
public static Main_Form Main;
private System.Windows.Forms.Timer LoadTimer = new System.Windows.Forms.Timer();
private System.Windows.Forms.Timer RTPTimer = new System.Windows.Forms.Timer();
public bool Loading = true;
public bool IsRTP = false;
public long RTPLocation = 0;
public byte[] CurrentRTPBytes = new byte[] { };
public byte[] LastUploadedBytes = new byte[] { };
public Main_Form()
{
Main = this;
InitializeComponent();
comboBox1.SelectedIndex = 0;
ShowRTPMenu(false);
textBox1.Text = "No location selected!";
groupBox2.Enabled = false;
LoadTimer.Interval = 1;
LoadTimer.Tick += LoadingThread;
LoadTimer.Start();
RTPTimer.Interval = 15000;
RTPTimer.Tick += RTPThread;
RTPTimer.Start();
}
void LoadingThread(object sender, EventArgs e)
{
LoadTimer.Stop();
Loader.Load();
ServerManager.CheckConnectionToGithub();
}
void RTPThread(object sender, EventArgs e)
{
if (!LiscenceEnabled) {
if (IsRTP && RTPLocation != 0)
{
if (comboBox1.SelectedIndex == 0) Extractor.Extract("SManager", true);
if (comboBox1.SelectedIndex == 1) Extractor.Extract("Neptune RTP", true);
if (CurrentRTPBytes.Length == 32768)
{
if (!Serial.Connected)
{
Log.Log_This("Not connected to any RTP Device, trying to connect", false);
Serial.SerialConnect();
}
if (Serial.Connected)
{
bool WasSame = true;
if (LastUploadedBytes.Length == 0 || LastUploadedBytes.Length < 32768)
{
WasSame = false;
File_Converter.Bin_File = CurrentRTPBytes;
Serial.Mode = "Write";
Serial.Press_Commands();
LastUploadedBytes = CurrentRTPBytes;
}
for (int i = 0; i < CurrentRTPBytes.Length; i++)
{
try
{
if (LastUploadedBytes[i] != CurrentRTPBytes[i])
{
WasSame = false;
Serial.Send1Byte(i, CurrentRTPBytes[i]);
LastUploadedBytes[i] = CurrentRTPBytes[i];
}
}
catch { }
}
if (WasSame)
{
Log.Log_This("Bytes didn't get updated during this check", false);
}
}
}
}
}
}
public void CloseApp()
{
Environment.Exit(0);
}
public void AddRTPLocation(long Location)
{
bool IsIncluded = false;
if (listBox1.Items.Count > 0) for(int i = 0; i < listBox1.Items.Count; i++) if (listBox1.Items[i].ToString() == "0x" + Location.ToString("X2")) IsIncluded = true;
if (!IsIncluded) listBox1.Items.Add("0x" + Location.ToString("X2"));
}
public void ClearRTPLocation()
{
listBox1.Items.Clear();
}
private void Main_Form_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
Serial.SerialDisconnect();
Application.Exit();
}
private void Load_Button_Click(object sender, EventArgs e)
{
this.Open_File_Form.Filter = "Tuning Files (*.cal, *bin)|*.cal; *bin";
DialogResult result = Open_File_Form.ShowDialog();
if (result == DialogResult.OK)
{
Log.Log_This("--------------------------------------------------------------------------------------", false);
Loader.Current_File = Path.GetFileName(Open_File_Form.FileName);
string Ext = Loader.Current_File.Substring(Loader.Current_File.Length - 3);
byte[] This_File = File.ReadAllBytes(Open_File_Form.FileName);
//Reset Buttons
SaveCalEnabled = false;
SaveBinEnabled = false;
EditEnabled = false;
Progress = 0;
//Check Ext and Apply bytes
if (Ext == "cal")
{
Loader.Mode = "Cal";
File_Converter.Cal_File = This_File;
}
else if (Ext == "bin")
{
Loader.Mode = "Bin";
if (This_File[528] == 16) Loader.Mode = "Neptune";
File_Converter.Bin_File = This_File;
}
Main.InfosText = "LOADING FILE INFOS";
Log.Log_This("Loaded : " + Loader.Current_File, false);
File_Converter.Convert_File();
}
}
private void Extract_Button_Click(object sender, EventArgs e)
{
if (Extractor.Extract("Neptune RTP", false))
{
if (!LiscenceEnabled)
{
ShowRTPMenu(true);
}
this.Open_File_Form.Filter = "Neptune RTP Files|*bin";
this.Open_File_Form.InitialDirectory = Loader.File_Path + "RTP\\";
DialogResult result = Open_File_Form.ShowDialog();
if (result == DialogResult.OK)
{
Log.Log_This("--------------------------------------------------------------------------------------", false);
Loader.Current_File = Path.GetFileName(Open_File_Form.FileName);
string Ext = Loader.Current_File.Substring(Loader.Current_File.Length - 3);
byte[] This_File = File.ReadAllBytes(Open_File_Form.FileName);
//Reset Buttons
SaveCalEnabled = false;
SaveBinEnabled = false;
EditEnabled = false;
Progress = 0;
//Check Ext and Apply bytes
if (Ext == "cal")
{
Loader.Mode = "Cal";
File_Converter.Cal_File = This_File;
}
else if (Ext == "bin")
{
Loader.Mode = "Bin";
if (This_File[528] == 16) Loader.Mode = "Neptune";
File_Converter.Bin_File = This_File;
}
Main.InfosText = "LOADING FILE INFOS";
Log.Log_This("Loaded : " + Loader.Current_File, false);
File_Converter.Convert_File();
}
}
}
public void ShowRTPMenu(bool Show)
{
//376 470
//604 470
if (Show)
{
this.Size = new Size(604, 470);
}
else
{
this.Size = new Size(376, 470);
}
}
private void extractSManagerToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Extractor.Extract("SManager", false))
{
if (!LiscenceEnabled)
{
ShowRTPMenu(true);
}
try
{
Process.Start(Loader.File_Path + "SManager\\");
}
catch { }
}
}
private void SaveCal_Button_Click(object sender, EventArgs e)
{
DialogResult result = Save_File_Cal_Form.ShowDialog();
if (result == DialogResult.OK)
{
Saver.Path = Save_File_Cal_Form.FileName;
Saver.SaveBytes = File_Converter.Cal_File;
Saver.Save();
}
}
private void SaveBin_Button_Click(object sender, EventArgs e)
{
DialogResult result = Save_File_Bin_Form.ShowDialog();
if (result == DialogResult.OK)
{
Saver.Path = Save_File_Bin_Form.FileName;
Saver.SaveBytes = File_Converter.Bin_File;
Saver.Save();
}
}
private void Download_Button_Click(object sender, EventArgs e)
{
Download_Form This_Form = new Download_Form();
This_Form.ShowDialog();
}
private void Settings_Button_Click(object sender, EventArgs e)
{
Settings_Form This_Form = new Settings_Form();
This_Form.ShowDialog();
}
private void Connect_Button_Click(object sender, EventArgs e)
{
Serial.SerialConnect();
}
private void Disconnect_Button_Click(object sender, EventArgs e)
{
Serial.SerialDisconnect();
}
private void Read_Button_Click(object sender, EventArgs e)
{
Serial.Mode = "Read";
Serial.Press_Commands();
}
private void Write_Button_Click(object sender, EventArgs e)
{
Serial.Mode = "Write";
Serial.Press_Commands();
LastUploadedBytes = File_Converter.Bin_File;
}
private void Verify_Button_Click(object sender, EventArgs e)
{
Serial.Mode = "Verify";
Serial.Press_Commands();
}
private void Liscence_Button_Click(object sender, EventArgs e)
{
Liscence_Form This_Form = new Liscence_Form();
This_Form.ShowDialog();
}
private void Edit_Button_Click(object sender, EventArgs e)
{
Edit_Form This_Form = new Edit_Form();
This_Form.ShowDialog();
}
private void Liscence_Button_Click_1(object sender, EventArgs e)
{
Liscence_Form This_Form = new Liscence_Form();
This_Form.ShowDialog();
}
private void button1_Click(object sender, EventArgs e)
{
Log.SaveFullLogs();
}
private void Chips_ComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
Serial.SetChips(Chips_ComboBox.Text);
}
private void New_Button_Click(object sender, EventArgs e)
{
New_Form This_Form = new New_Form();
This_Form.ShowDialog();
}
public void Show_Ban()
{
Ban_Form This_Form = new Ban_Form();
This_Form.ShowDialog();
Serial.SerialDisconnect();
Application.Exit();
this.Close();
}
//####################################################################################################
//Inside Menu
public string VersionText
{
get { return Version_Label.Text; }
set { Version_Label.Text = value; }
}
public string RegisterText
{
get { return Register_Label.Text; }
set { Register_Label.Text = value; }
}
public Color RegisterColor
{
get { return Register_Label.ForeColor; }
set { Register_Label.ForeColor = value; }
}
public string ConvertDoneText
{
get { return ConvertDone_Label.Text; }
set { ConvertDone_Label.Text = value; }
}
public bool ConvertDoneVisible
{
get { return ConvertDone_Label.Visible; }
set { ConvertDone_Label.Visible = value; }
}
public string InfosText
{
get { return Infos_TextBox.Text; }
set { Infos_TextBox.Text = value; }
}
public string LogsText
{
get { return Logs_TextBox.Text; }
set { Logs_TextBox.AppendText(value); Logs_TextBox.AppendText(Environment.NewLine); }
}
public int Progress
{
get { return Progress_Bar.Value; }
set { Progress_Bar.Value = value; }
}
//####################################################################################################
//File Menu
public bool EditEnabled
{
get { return Edit_Button.Enabled; }
set { Edit_Button.Enabled = value; }
}
public bool SaveCalEnabled
{
get { return SaveCal_Button.Enabled; }
set { SaveCal_Button.Enabled = value; }
}
public bool SaveBinEnabled
{
get { return SaveBin_Button.Enabled; }
set { SaveBin_Button.Enabled = value; }
}
public bool DownloadEnabled
{
get { return Download_Button.Enabled; }
set { Download_Button.Enabled = value; }
}
public string DownloadText
{
get { return Download_Button.Text; }
set { Download_Button.Text = value; }
}
//####################################################################################################
//Moates Menu
public bool ConnectEnabled
{
get { return Connect_Button.Enabled; }
set { Connect_Button.Enabled = value; }
}
public bool DisconnectEnabled
{
get { return Disconnect_Button.Enabled; }
set { Disconnect_Button.Enabled = value; }
}
public bool ReadEnabled
{
get { return Read_Button.Enabled; }
set { Read_Button.Enabled = value; }
}
public bool WriteEnabled
{
get { return Write_Button.Enabled; }
set { Write_Button.Enabled = value; }
}
public bool VerifyEnabled
{
get { return Verify_Button.Enabled; }
set { Verify_Button.Enabled = value; }
}
public bool Set_ChipsEnabled
{
get { return Set_Chips_Button.Enabled; }
set { Set_Chips_Button.Enabled = value; }
}
//####################################################################################################
//Liscence
public bool LiscenceEnabled
{
get { return Liscence_Button.Enabled; }
set { Liscence_Button.Enabled = value; }
}
private void Main_Form_FormClosing(object sender, FormClosingEventArgs e)
{
Serial.SerialDisconnect();
}
private void openFlashBurnToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
Process.Start(Application.StartupPath + "\\BM Devs Flash&Burn.exe");
}
catch
{
Log.Log_This("CAN'T Start 'FlashNBurn' ... File possibly deleted", false);
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
IsRTP = checkBox1.Checked;
groupBox2.Enabled = IsRTP;
}
private void button2_Click(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex == 0) Extractor.Extract("SManager", false);
if (comboBox1.SelectedIndex == 1) Extractor.Extract("Neptune RTP", false);
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
textBox1.Text = listBox1.Text;
try
{
RTPLocation = long.Parse(textBox1.Text.Substring(2), System.Globalization.NumberStyles.HexNumber);
}
catch
{
Log.Log_This("CAN'T set RTP Loction correctly!", false);
}
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox2.Text == "0") textBox2.Text = "1";
try
{
RTPTimer.Interval = int.Parse(textBox2.Text) * 1000;
}
catch
{
RTPTimer.Interval = 5000;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,232 @@
namespace Converter
{
partial class New_Form
{
/// <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.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.EctuneTuner_Label = new System.Windows.Forms.Label();
this.EctunePro_Label = new System.Windows.Forms.Label();
this.NeptuneDealer_Label = new System.Windows.Forms.Label();
this.NeptuneRTP_Label = new System.Windows.Forms.Label();
this.CromeGOLD_Label = new System.Windows.Forms.Label();
this.Freelog_Label = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.LightCyan;
this.label1.Location = new System.Drawing.Point(68, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(144, 25);
this.label1.TabIndex = 0;
this.label1.Text = "NEW STUFF";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(22, 55);
this.label2.Name = "label2";
this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label2.Size = new System.Drawing.Size(201, 13);
this.label2.TabIndex = 1;
this.label2.Text = "Ectune Tuner Cracked (R17-R19)";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(22, 101);
this.label3.Name = "label3";
this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label3.Size = new System.Drawing.Size(147, 13);
this.label3.TabIndex = 2;
this.label3.Text = "Neptune Dealer Cracked";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(22, 149);
this.label4.Name = "label4";
this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label4.Size = new System.Drawing.Size(121, 13);
this.label4.TabIndex = 3;
this.label4.Text = "Crome GOLD Dealer";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(22, 173);
this.label5.Name = "label5";
this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label5.Size = new System.Drawing.Size(167, 13);
this.label5.TabIndex = 4;
this.label5.Text = "Freelog 1.0.93 with dlls, ocx";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(22, 125);
this.label6.Name = "label6";
this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label6.Size = new System.Drawing.Size(84, 13);
this.label6.TabIndex = 5;
this.label6.Text = "Neptune RTP";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(22, 78);
this.label7.Name = "label7";
this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label7.Size = new System.Drawing.Size(149, 13);
this.label7.TabIndex = 6;
this.label7.Text = "Ectune Pro Ostrich (R17)";
//
// EctuneTuner_Label
//
this.EctuneTuner_Label.AutoSize = true;
this.EctuneTuner_Label.ForeColor = System.Drawing.Color.Blue;
this.EctuneTuner_Label.Location = new System.Drawing.Point(246, 55);
this.EctuneTuner_Label.Name = "EctuneTuner_Label";
this.EctuneTuner_Label.Size = new System.Drawing.Size(37, 13);
this.EctuneTuner_Label.TabIndex = 7;
this.EctuneTuner_Label.Text = "HERE";
this.EctuneTuner_Label.Click += new System.EventHandler(this.EctuneTuner_Label_Click);
//
// EctunePro_Label
//
this.EctunePro_Label.AutoSize = true;
this.EctunePro_Label.ForeColor = System.Drawing.Color.Blue;
this.EctunePro_Label.Location = new System.Drawing.Point(246, 78);
this.EctunePro_Label.Name = "EctunePro_Label";
this.EctunePro_Label.Size = new System.Drawing.Size(37, 13);
this.EctunePro_Label.TabIndex = 8;
this.EctunePro_Label.Text = "HERE";
this.EctunePro_Label.Click += new System.EventHandler(this.EctunePro_Label_Click);
//
// NeptuneDealer_Label
//
this.NeptuneDealer_Label.AutoSize = true;
this.NeptuneDealer_Label.ForeColor = System.Drawing.Color.Blue;
this.NeptuneDealer_Label.Location = new System.Drawing.Point(246, 101);
this.NeptuneDealer_Label.Name = "NeptuneDealer_Label";
this.NeptuneDealer_Label.Size = new System.Drawing.Size(37, 13);
this.NeptuneDealer_Label.TabIndex = 9;
this.NeptuneDealer_Label.Text = "HERE";
this.NeptuneDealer_Label.Click += new System.EventHandler(this.NeptuneDealer_Label_Click);
//
// NeptuneRTP_Label
//
this.NeptuneRTP_Label.AutoSize = true;
this.NeptuneRTP_Label.ForeColor = System.Drawing.Color.Blue;
this.NeptuneRTP_Label.Location = new System.Drawing.Point(246, 125);
this.NeptuneRTP_Label.Name = "NeptuneRTP_Label";
this.NeptuneRTP_Label.Size = new System.Drawing.Size(37, 13);
this.NeptuneRTP_Label.TabIndex = 10;
this.NeptuneRTP_Label.Text = "HERE";
this.NeptuneRTP_Label.Click += new System.EventHandler(this.NeptuneRTP_Label_Click);
//
// CromeGOLD_Label
//
this.CromeGOLD_Label.AutoSize = true;
this.CromeGOLD_Label.ForeColor = System.Drawing.Color.Blue;
this.CromeGOLD_Label.Location = new System.Drawing.Point(246, 149);
this.CromeGOLD_Label.Name = "CromeGOLD_Label";
this.CromeGOLD_Label.Size = new System.Drawing.Size(37, 13);
this.CromeGOLD_Label.TabIndex = 11;
this.CromeGOLD_Label.Text = "HERE";
this.CromeGOLD_Label.Click += new System.EventHandler(this.CromeGOLD_Label_Click);
//
// Freelog_Label
//
this.Freelog_Label.AutoSize = true;
this.Freelog_Label.ForeColor = System.Drawing.Color.Blue;
this.Freelog_Label.Location = new System.Drawing.Point(246, 173);
this.Freelog_Label.Name = "Freelog_Label";
this.Freelog_Label.Size = new System.Drawing.Size(37, 13);
this.Freelog_Label.TabIndex = 12;
this.Freelog_Label.Text = "HERE";
this.Freelog_Label.Click += new System.EventHandler(this.Freelog_Label_Click);
//
// New_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(308, 201);
this.Controls.Add(this.Freelog_Label);
this.Controls.Add(this.CromeGOLD_Label);
this.Controls.Add(this.NeptuneRTP_Label);
this.Controls.Add(this.NeptuneDealer_Label);
this.Controls.Add(this.EctunePro_Label);
this.Controls.Add(this.EctuneTuner_Label);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "New_Form";
this.Text = "Converter - NEW";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label EctuneTuner_Label;
private System.Windows.Forms.Label EctunePro_Label;
private System.Windows.Forms.Label NeptuneDealer_Label;
private System.Windows.Forms.Label NeptuneRTP_Label;
private System.Windows.Forms.Label CromeGOLD_Label;
private System.Windows.Forms.Label Freelog_Label;
}
}

View File

@ -0,0 +1,50 @@
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class New_Form : Form
{
public New_Form()
{
InitializeComponent();
}
private void EctuneTuner_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/eCtune_Tuner");
}
private void EctunePro_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/eCtune_Pro_Ostrich");
}
private void NeptuneDealer_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/NeptuneDealer");
}
private void NeptuneRTP_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/Neptune_RTP");
}
private void CromeGOLD_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/Crome_Tuning_Gold");
}
private void Freelog_Label_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/bouletmarc/Freelog");
}
}
}

View File

@ -0,0 +1,120 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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>

View File

@ -0,0 +1,272 @@
namespace Converter
{
partial class Settings_Form
{
/// <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.SaveLogs_Checkbox = new System.Windows.Forms.CheckBox();
this.AdvLogs_Checkbox = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.EctuneBaserom_ComboBox = new System.Windows.Forms.ComboBox();
this.Close_Button = new System.Windows.Forms.Button();
this.checkBox_4k_Hondata = new System.Windows.Forms.CheckBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.checkBox_Hondata_Chip_Lock = new System.Windows.Forms.CheckBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// SaveLogs_Checkbox
//
this.SaveLogs_Checkbox.AutoSize = true;
this.SaveLogs_Checkbox.Location = new System.Drawing.Point(16, 15);
this.SaveLogs_Checkbox.Name = "SaveLogs_Checkbox";
this.SaveLogs_Checkbox.Size = new System.Drawing.Size(143, 17);
this.SaveLogs_Checkbox.TabIndex = 0;
this.SaveLogs_Checkbox.Text = "Auto Save Logs (Slower)";
this.SaveLogs_Checkbox.UseVisualStyleBackColor = true;
this.SaveLogs_Checkbox.CheckedChanged += new System.EventHandler(this.SaveLogs_Checkbox_CheckedChanged);
//
// AdvLogs_Checkbox
//
this.AdvLogs_Checkbox.AutoSize = true;
this.AdvLogs_Checkbox.Location = new System.Drawing.Point(16, 39);
this.AdvLogs_Checkbox.Name = "AdvLogs_Checkbox";
this.AdvLogs_Checkbox.Size = new System.Drawing.Size(142, 17);
this.AdvLogs_Checkbox.TabIndex = 1;
this.AdvLogs_Checkbox.Text = "Advanced Logs (Slower)";
this.AdvLogs_Checkbox.UseVisualStyleBackColor = true;
this.AdvLogs_Checkbox.CheckedChanged += new System.EventHandler(this.AdvLogs_Checkbox_CheckedChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(27, 18);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(86, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Baserom Version";
//
// EctuneBaserom_ComboBox
//
this.EctuneBaserom_ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.EctuneBaserom_ComboBox.FormattingEnabled = true;
this.EctuneBaserom_ComboBox.Items.AddRange(new object[] {
"0065.3.pri",
"Custom",
"0063",
"0062",
"0061",
"0060",
"0059",
"0058",
"0057",
"0056",
"0055",
"0054"});
this.EctuneBaserom_ComboBox.Location = new System.Drawing.Point(135, 14);
this.EctuneBaserom_ComboBox.Name = "EctuneBaserom_ComboBox";
this.EctuneBaserom_ComboBox.Size = new System.Drawing.Size(142, 21);
this.EctuneBaserom_ComboBox.TabIndex = 5;
this.EctuneBaserom_ComboBox.SelectedIndexChanged += new System.EventHandler(this.EctuneBaserom_ComboBox_SelectedIndexChanged);
//
// Close_Button
//
this.Close_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Close_Button.ForeColor = System.Drawing.Color.Blue;
this.Close_Button.Location = new System.Drawing.Point(94, 181);
this.Close_Button.Name = "Close_Button";
this.Close_Button.Size = new System.Drawing.Size(124, 47);
this.Close_Button.TabIndex = 7;
this.Close_Button.Text = "CLOSE";
this.Close_Button.UseVisualStyleBackColor = true;
this.Close_Button.Click += new System.EventHandler(this.button1_Click);
//
// checkBox_4k_Hondata
//
this.checkBox_4k_Hondata.AutoSize = true;
this.checkBox_4k_Hondata.Location = new System.Drawing.Point(9, 19);
this.checkBox_4k_Hondata.Name = "checkBox_4k_Hondata";
this.checkBox_4k_Hondata.Size = new System.Drawing.Size(197, 17);
this.checkBox_4k_Hondata.TabIndex = 8;
this.checkBox_4k_Hondata.Text = "Remove 4000rpm Limit on S300 .bin";
this.checkBox_4k_Hondata.UseVisualStyleBackColor = true;
this.checkBox_4k_Hondata.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.EctuneBaserom_ComboBox);
this.groupBox1.Location = new System.Drawing.Point(12, 62);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(283, 43);
this.groupBox1.TabIndex = 9;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "eCtune Settings";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.checkBox_Hondata_Chip_Lock);
this.groupBox2.Controls.Add(this.checkBox_4k_Hondata);
this.groupBox2.Location = new System.Drawing.Point(12, 111);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(283, 40);
this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Hondata Settings";
//
// checkBox_Hondata_Chip_Lock
//
this.checkBox_Hondata_Chip_Lock.AutoSize = true;
this.checkBox_Hondata_Chip_Lock.Location = new System.Drawing.Point(147, 9);
this.checkBox_Hondata_Chip_Lock.Name = "checkBox_Hondata_Chip_Lock";
this.checkBox_Hondata_Chip_Lock.Size = new System.Drawing.Size(164, 17);
this.checkBox_Hondata_Chip_Lock.TabIndex = 9;
this.checkBox_Hondata_Chip_Lock.Text = "Remove Chip Lock Limitation";
this.checkBox_Hondata_Chip_Lock.UseVisualStyleBackColor = true;
this.checkBox_Hondata_Chip_Lock.Visible = false;
this.checkBox_Hondata_Chip_Lock.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.comboBox2);
this.groupBox3.Controls.Add(this.label2);
this.groupBox3.Controls.Add(this.comboBox1);
this.groupBox3.Controls.Add(this.checkBox1);
this.groupBox3.Location = new System.Drawing.Point(342, 60);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(283, 142);
this.groupBox3.TabIndex = 11;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "RTP Settings";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(27, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(69, 13);
this.label3.TabIndex = 15;
this.label3.Text = "RTP Device:";
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Ostrich",
"Demon"});
this.comboBox2.Location = new System.Drawing.Point(135, 61);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(142, 21);
this.comboBox2.TabIndex = 16;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(27, 42);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 13);
this.label2.TabIndex = 13;
this.label2.Text = "RTP With:";
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Hondata SManager",
"Neptune RTP",
"eCtune"});
this.comboBox1.Location = new System.Drawing.Point(135, 39);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(142, 21);
this.comboBox1.TabIndex = 14;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(9, 19);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(167, 17);
this.checkBox1.TabIndex = 12;
this.checkBox1.Text = "Enable Realtime Programming";
this.checkBox1.UseVisualStyleBackColor = true;
//
// Settings_Form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(303, 236);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.Close_Button);
this.Controls.Add(this.AdvLogs_Checkbox);
this.Controls.Add(this.SaveLogs_Checkbox);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "Settings_Form";
this.Text = "Converter Settings";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox SaveLogs_Checkbox;
private System.Windows.Forms.CheckBox AdvLogs_Checkbox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox EctuneBaserom_ComboBox;
private System.Windows.Forms.Button Close_Button;
private System.Windows.Forms.CheckBox checkBox_4k_Hondata;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox_Hondata_Chip_Lock;
}
}

View File

@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public partial class Settings_Form : Form
{
public Settings_Form()
{
InitializeComponent();
LoadValue();
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void SaveLogs_Checkbox_CheckedChanged(object sender, EventArgs e)
{
Settings.Save_Logs = SaveLogs_Checkbox.Checked;
Reload();
}
private void AdvLogs_Checkbox_CheckedChanged(object sender, EventArgs e)
{
Settings.Adv_Logs = AdvLogs_Checkbox.Checked;
Reload();
}
private void EctuneBaserom_ComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
Settings.Ectune_Baserom = EctuneBaserom_ComboBox.Text;
Reload();
}
private void Reload()
{
Settings.SaveSettings();
Settings.LoadSettings();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
Settings.Patch_4kRPM_Hondata = checkBox_4k_Hondata.Checked;
Reload();
}
private void LoadValue()
{
Settings.Patch_Hondata_Chip_Lock = false;
this.SaveLogs_Checkbox.Checked = Settings.Save_Logs;
this.AdvLogs_Checkbox.Checked = Settings.Adv_Logs;
this.EctuneBaserom_ComboBox.Text = Settings.Ectune_Baserom;
this.checkBox_4k_Hondata.Checked = Settings.Patch_4kRPM_Hondata;
this.checkBox_Hondata_Chip_Lock.Checked = Settings.Patch_Hondata_Chip_Lock;
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
Settings.Patch_Hondata_Chip_Lock = checkBox_Hondata_Chip_Lock.Checked;
Reload();
}
}
}

View File

@ -0,0 +1,120 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

View File

@ -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("Converter")]
[assembly: AssemblyDescription("Converter for eCtune and NepTune - Made by Bouletmarc")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("BM Devs")]
[assembly: AssemblyProduct("Converter")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[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("1755a1ba-de54-46ad-bfce-c0f64adf3035")]
// 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("6.0.3.0")]
[assembly: AssemblyFileVersion("6.0.3.0")]

View File

@ -0,0 +1,253 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Converter.Properties {
using System;
/// <summary>
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
/// </summary>
// Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
// à l'aide d'un outil, tel que ResGen ou Visual Studio.
// Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
// avec l'option /str ou régénérez votre projet VS.
[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>
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Converter.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap adjust_selection2 {
get {
object obj = ResourceManager.GetObject("adjust_selection2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Binary {
get {
object obj = ResourceManager.GetObject("Binary", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap copyToolStripButton_Image {
get {
object obj = ResourceManager.GetObject("copyToolStripButton.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap display {
get {
object obj = ResourceManager.GetObject("display", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap eeprom_download_v2 {
get {
object obj = ResourceManager.GetObject("eeprom_download_v2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap eeprom_upload_v2 {
get {
object obj = ResourceManager.GetObject("eeprom_upload_v2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap eeprom_verify_v2 {
get {
object obj = ResourceManager.GetObject("eeprom_verify_v2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap emuConnect {
get {
object obj = ResourceManager.GetObject("emuConnect", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap emuDisc {
get {
object obj = ResourceManager.GetObject("emuDisc", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap export_table {
get {
object obj = ResourceManager.GetObject("export_table", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap help {
get {
object obj = ResourceManager.GetObject("help", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap import_table {
get {
object obj = ResourceManager.GetObject("import_table", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap parametersToolStripButton_Image {
get {
object obj = ResourceManager.GetObject("parametersToolStripButton.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap registration {
get {
object obj = ResourceManager.GetObject("registration", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap saveAsToolStripButton_Image {
get {
object obj = ResourceManager.GetObject("saveAsToolStripButton.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap sensor_data2 {
get {
object obj = ResourceManager.GetObject("sensor_data2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap settingsSensor {
get {
object obj = ResourceManager.GetObject("settingsSensor", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap toolDtOpen_Image {
get {
object obj = ResourceManager.GetObject("toolDtOpen.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TunerPro_109_0 {
get {
object obj = ResourceManager.GetObject("TunerPro_109-0", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -0,0 +1,179 @@
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
<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" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</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" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="eeprom_download_v2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\eeprom_download_v2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="emuConnect" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\emuConnect.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="saveAsToolStripButton.Image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\saveAsToolStripButton.Image.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="eeprom_upload_v2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\eeprom_upload_v2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="import_table" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\import_table.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="eeprom_verify_v2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\eeprom_verify_v2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TunerPro_109-0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\TunerPro_109-0.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settingsSensor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\settingsSensor.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="display" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\display.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Binary" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\Binary.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="export_table" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\export_table.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sensor_data2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\sensor_data2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="toolDtOpen.Image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\toolDtOpen.Image.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="adjust_selection2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\adjust_selection2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="registration" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\registration.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="copyToolStripButton.Image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\copyToolStripButton.Image.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="emuDisc" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\emuDisc.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="parametersToolStripButton.Image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\parametersToolStripButton.Image.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -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 Converter.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;
}
}
}
}

View File

@ -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>

View File

@ -0,0 +1,133 @@
using System;
using System.Net;
using System.Collections.Generic;
using System.Threading;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
namespace Converter
{
public static class Download
{
public static string Github_File_List = "https://raw.githubusercontent.com/bouletmarc/eCtune_Files/master/Files_List.txt";
public static string Github_File_Location = "https://raw.githubusercontent.com/bouletmarc/eCtune_Files/master/Files/";
public static List<string> Github_fileNames = new List<string>();
public static List<string> Github_fileNames_BSerie = new List<string>();
public static List<string> Github_fileNames_DSerie = new List<string>();
public static List<string> Github_fileNames_FSerie = new List<string>();
public static List<string> Github_fileNames_HSerie = new List<string>();
public static List<string> Github_fileNames_Unknown = new List<string>();
public static byte[] Download_File;
public static void GetGithubFiles()
{
try
{
string Github_Text_Down = (new WebClient()).DownloadString(Github_File_List);
Github_fileNames.Clear();
Github_fileNames_BSerie.Clear();
Github_fileNames_DSerie.Clear();
Github_fileNames_FSerie.Clear();
Github_fileNames_HSerie.Clear();
Github_fileNames_Unknown.Clear();
while (Github_Text_Down.Contains("|"))
{
int Index = Github_Text_Down.IndexOf("|");
string ThisStrName = Github_Text_Down.Substring(0, Index);
Github_fileNames.Add(ThisStrName);
//Get Categories
Github_Text_Down = Github_Text_Down.Substring(Index + 1);
Index = Github_Text_Down.IndexOf("|");
string ThisStrEngine = Github_Text_Down.Substring(0, Index);
//Set Categories
if (ThisStrEngine == "B-Serie")
Github_fileNames_BSerie.Add(ThisStrName);
else if (ThisStrEngine == "D-Serie")
Github_fileNames_DSerie.Add(ThisStrName);
else if (ThisStrEngine == "F-Serie")
Github_fileNames_FSerie.Add(ThisStrName);
else if (ThisStrEngine == "H-Serie")
Github_fileNames_HSerie.Add(ThisStrName);
else if (ThisStrEngine == "Unknown")
Github_fileNames_Unknown.Add(ThisStrName);
Github_Text_Down = Github_Text_Down.Substring(Index + 3);
}
Main_Form.Main.DownloadText = "Download .cal (" + Github_fileNames.Count + ")";
}
catch { }
}
public static void SetPage()
{
Download_Form.D_Form.Clear_Files();
if (Download_Form.D_Form.Category == "All")
{
for (int i = 0; i < Github_fileNames.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames[i];
Download_Form.D_Form.Set_File = Github_fileNames[0];
}
else if (Download_Form.D_Form.Category == "B-Serie")
{
for (int i = 0; i < Github_fileNames_BSerie.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames_BSerie[i];
Download_Form.D_Form.Set_File = Github_fileNames_BSerie[0];
}
else if (Download_Form.D_Form.Category == "D-Serie")
{
for (int i = 0; i < Github_fileNames_DSerie.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames_DSerie[i];
Download_Form.D_Form.Set_File = Github_fileNames_DSerie[0];
}
else if (Download_Form.D_Form.Category == "F-Serie")
{
for (int i = 0; i < Github_fileNames_FSerie.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames_FSerie[i];
Download_Form.D_Form.Set_File = Github_fileNames_FSerie[0];
}
else if (Download_Form.D_Form.Category == "H-Serie")
{
for (int i = 0; i < Github_fileNames_HSerie.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames_HSerie[i];
Download_Form.D_Form.Set_File = Github_fileNames_HSerie[0];
}
else if (Download_Form.D_Form.Category == "Unknown")
{
for (int i = 0; i < Github_fileNames_Unknown.Count; i++)
Download_Form.D_Form.Add_File = Github_fileNames_Unknown[i];
Download_Form.D_Form.Set_File = Github_fileNames_Unknown[0];
}
}
public static bool LoadFile()
{
bool Received = false;
try
{
Download_File = (new WebClient()).DownloadData(Github_File_Location + Download_Form.D_Form.Set_File);
Log.Log_This("Downloaded : " + Download_Form.D_Form.Set_File, false);
Received = true;
}
catch { }
return Received;
}
}
}

View File

@ -0,0 +1,418 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class Edit
{
public static bool Loading = true;
public static void Load()
{
Loading = true;
Edit_Form.Editf.ELD_Checked = File_Infos.ELD;
Edit_Form.Editf.Knock_Checked = File_Infos.Knock;
Edit_Form.Editf.Baro_Checked = File_Infos.Baro;
Edit_Form.Editf.InjTest_Checked = File_Infos.InjTest;
Edit_Form.Editf.Heater_Checked = File_Infos.O2Heater;
Edit_Form.Editf.Closeloop_Checked = File_Infos.CloseLoop;
Edit_Form.Editf.Vtec_Checked = !File_Infos.Using_Vtec;
Edit_Form.Editf.IAB_Checked = File_Infos.IAB;
Edit_Form.Editf.Fan_Checked = File_Infos.FanControl;
Edit_Form.Editf.IACV_Checked = File_Infos.IACV;
Edit_Form.Editf.FuelCut_Checked = File_Infos.FuelCut;
Edit_Form.Editf.IgnCut_Checked = File_Infos.IgnitionCut;
Edit_Form.Editf.ShiftLight_Checked = File_Infos.ShiftLight;
Edit_Form.Editf.ColdSet_RPM = File_Infos.Rev_RPM_Cold_Set;
Edit_Form.Editf.ColdReset_RPM = File_Infos.Rev_RPM_Cold_Reset;
Edit_Form.Editf.WarmSet_RPM = File_Infos.Rev_RPM_Hot_Set;
Edit_Form.Editf.WarmReset_RPM = File_Infos.Rev_RPM_Hot_Reset;
Edit_Form.Editf.ShiftLight_RPM = File_Infos.ShiftLight_RPM;
Edit_Form.Editf.SpeedCheck_Checked = File_Infos.Vtec_Speed;
Edit_Form.Editf.CoolantCheck_Checked = File_Infos.Vtec_Coolant;
Edit_Form.Editf.VTP_Checked = File_Infos.Vtec_Pressure;
Edit_Form.Editf.VtecError_Checked = File_Infos.Vtec_Error;
Edit_Form.Editf.VtecHigh_RPM = File_Infos.Vtec_Rpm_Set;
Edit_Form.Editf.VtecLow_RPM = File_Infos.Vtec_Rpm_Reset;
Loading = false;
}
//#########################################################################################################################
public static void SetAt(int Index, byte ThisByte)
{
if (!Loading)
{
if (Loader.Mode != "Neptune")
File_Converter.Cal_File[Index] = ThisByte;
else
File_Converter.Bin_File[Index] = ThisByte;
Log.Log_This("Set hex: " + ThisByte.ToString("X2") + " At address: " + Index.ToString("X4"), false);
}
}
public static void Set_ELD()
{
if (!Loading)
{
File_Infos.ELD = Edit_Form.Editf.ELD_Checked;
byte ThisByte = 0;
if (!File_Infos.ELD)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_ELD), ThisByte);
}
}
public static void Set_Knock()
{
if (!Loading)
{
File_Infos.Knock = Edit_Form.Editf.Knock_Checked;
byte ThisByte = 0;
if (!File_Infos.Knock)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Knock), ThisByte);
}
}
public static void Set_Baro()
{
if (!Loading)
{
File_Infos.Baro = Edit_Form.Editf.Baro_Checked;
byte ThisByte = 0;
if (!File_Infos.Baro)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Baro), ThisByte);
}
}
public static void Set_InjTest()
{
if (!Loading)
{
File_Infos.InjTest = Edit_Form.Editf.InjTest_Checked;
byte ThisByte = 0;
if (File_Infos.InjTest)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_InjectorTest), ThisByte);
}
}
public static void Set_O2Heater()
{
if (!Loading)
{
File_Infos.O2Heater = Edit_Form.Editf.Heater_Checked;
byte ThisByte = 0;
if (!File_Infos.O2Heater)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_O2Heater), ThisByte);
}
}
public static void Set_CloseLoop()
{
if (!Loading)
{
File_Infos.CloseLoop = Edit_Form.Editf.Closeloop_Checked;
byte ThisByte = 0;
if (File_Infos.CloseLoop)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_O2CloseLoop), ThisByte);
}
}
public static void Set_Using_Vtec()
{
if (!Loading)
{
File_Infos.Using_Vtec = !Edit_Form.Editf.Vtec_Checked;
byte ThisByte = 0;
if (File_Infos.Using_Vtec)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Trigger), ThisByte);
}
}
public static void Set_IAB()
{
if (!Loading)
{
File_Infos.IAB = Edit_Form.Editf.IAB_Checked;
byte ThisByte = 0;
if (File_Infos.IAB)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_IAB), ThisByte);
}
}
public static void Set_FanControl()
{
if (!Loading)
{
File_Infos.FanControl = Edit_Form.Editf.Fan_Checked;
byte ThisByte = 0;
if (!File_Infos.FanControl)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_FanControl), ThisByte);
}
}
public static void Set_IACV()
{
if (!Loading)
{
File_Infos.IACV = Edit_Form.Editf.IACV_Checked;
byte ThisByte = 0;
if (File_Infos.IACV)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_IAC_Error), ThisByte);
}
}
public static void Set_FuelCut()
{
if (!Loading)
{
File_Infos.FuelCut = Edit_Form.Editf.FuelCut_Checked;
byte ThisByte = 0;
if (Loader.Mode != "Neptune")
{
if (!File_Infos.FuelCut)
ThisByte = 255;
}
else
{
if (File_Infos.FuelCut)
ThisByte = 255;
}
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_FuelCut), ThisByte);
}
}
public static void Set_IgnitionCut()
{
if (!Loading)
{
File_Infos.IgnitionCut = Edit_Form.Editf.IgnCut_Checked;
byte ThisByte = 0;
if (File_Infos.IgnitionCut)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_IgnitionCut), ThisByte);
}
}
public static void Set_ShiftLight()
{
if (!Loading)
{
File_Infos.ShiftLight = Edit_Form.Editf.ShiftLight_Checked;
byte ThisByte = 0;
if (File_Infos.ShiftLight)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_ShiftLight), ThisByte);
}
}
public static void Set_RPM_Cold_Set()
{
if (!Loading)
{
File_Infos.Rev_RPM_Cold_Set = Edit_Form.Editf.ColdSet_RPM;
string HexRPM = File_Infos.GetHexRPM(File_Infos.Rev_RPM_Cold_Set);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Cold), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Cold) + 1, RPM2);
//Reset
Edit_Form.Editf.ColdSet_RPM = File_Infos.GetRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Cold));
}
}
public static void Set_RPM_Cold_Reset()
{
if (!Loading)
{
File_Infos.Rev_RPM_Cold_Reset = Edit_Form.Editf.ColdReset_RPM;
string HexRPM = File_Infos.GetHexRPM(File_Infos.Rev_RPM_Cold_Reset);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Cold), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Cold) + 1, RPM2);
//Reset
Edit_Form.Editf.ColdReset_RPM = File_Infos.GetRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Cold));
}
}
public static void Set_RPM_Hot_Set()
{
if (!Loading)
{
File_Infos.Rev_RPM_Hot_Set = Edit_Form.Editf.WarmSet_RPM;
string HexRPM = File_Infos.GetHexRPM(File_Infos.Rev_RPM_Hot_Set);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Hot), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Hot) + 1, RPM2);
//Reset
Edit_Form.Editf.WarmSet_RPM = File_Infos.GetRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Set_Hot));
}
}
public static void Set_RPM_Hot_Reset()
{
if (!Loading)
{
File_Infos.Rev_RPM_Hot_Reset = Edit_Form.Editf.WarmReset_RPM;
string HexRPM = File_Infos.GetHexRPM(File_Infos.Rev_RPM_Hot_Reset);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Hot), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Hot) + 1, RPM2);
//Reset
Edit_Form.Editf.WarmReset_RPM = File_Infos.GetRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Rev_Reset_Hot));
}
}
public static void Set_RPM_Shiftlight()
{
if (!Loading)
{
File_Infos.ShiftLight_RPM = Edit_Form.Editf.ShiftLight_RPM;
string HexRPM = File_Infos.GetHexRPM(File_Infos.ShiftLight_RPM);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_ShiftLight_Rpm), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_ShiftLight_Rpm) + 1, RPM2);
//Reset
Edit_Form.Editf.ShiftLight_RPM = File_Infos.GetRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_ShiftLight_Rpm));
}
}
public static void Set_Vtec_Speed()
{
if (!Loading)
{
File_Infos.Vtec_Speed = Edit_Form.Editf.SpeedCheck_Checked;
byte ThisByte = 0;
if (File_Infos.Vtec_Speed)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_SpeedCheck), ThisByte);
}
}
public static void Set_Vtec_Coolant()
{
if (!Loading)
{
File_Infos.Vtec_Coolant = Edit_Form.Editf.CoolantCheck_Checked;
byte ThisByte = 0;
if (File_Infos.Vtec_Coolant)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_ECTCheck), ThisByte);
}
}
public static void Set_Vtec_Pressure()
{
if (!Loading)
{
File_Infos.Vtec_Pressure = Edit_Form.Editf.VTP_Checked;
byte ThisByte = 0;
if (File_Infos.Vtec_Pressure)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Pressure), ThisByte);
}
}
public static void Set_Vtec_Error()
{
if (!Loading)
{
File_Infos.Vtec_Error = Edit_Form.Editf.VtecError_Checked;
byte ThisByte = 0;
if (File_Infos.Vtec_Error)
ThisByte = 255;
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Error), ThisByte);
}
}
public static void Set_RPM_Vtec_Set()
{
if (!Loading)
{
File_Infos.Vtec_Rpm_Set = Edit_Form.Editf.VtecHigh_RPM;
if (Loader.Mode != "Neptune")
{
byte RPMByte = (byte)File_Infos.ConvertVtecRPMToHex(File_Infos.Vtec_Rpm_Set);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_High_RPM), RPMByte);
}
else
{
string HexRPM = File_Infos.GetHexRPM(File_Infos.Vtec_Rpm_Set);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_High_RPM), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_High_RPM) + 1, RPM2);
}
//Reset
Edit_Form.Editf.VtecHigh_RPM = File_Infos.ConvertHexToVtecRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_High_RPM));
}
}
public static void Set_RPM_Vtec_Reset()
{
if (!Loading)
{
File_Infos.Vtec_Rpm_Reset = Edit_Form.Editf.VtecLow_RPM;
if (Loader.Mode != "Neptune")
{
byte RPMByte = (byte)File_Infos.ConvertVtecRPMToHex(File_Infos.Vtec_Rpm_Reset);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Low_RPM), RPMByte);
}
else
{
string HexRPM = File_Infos.GetHexRPM(File_Infos.Vtec_Rpm_Reset);
string Hex1 = HexRPM[0].ToString() + HexRPM[1].ToString();
string Hex2 = HexRPM[2].ToString() + HexRPM[3].ToString();
byte RPM1 = (byte)File_Infos.ConvertHexToInt(Hex1);
byte RPM2 = (byte)File_Infos.ConvertHexToInt(Hex2);
//Set
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Low_RPM), RPM1);
SetAt(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Low_RPM) + 1, RPM2);
}
//Reset
Edit_Form.Editf.VtecLow_RPM = File_Infos.ConvertHexToVtecRPM(File_Infos.ConvertHexToInt(File_Infos.HEX_Vtec_Low_RPM));
}
}
}
}

View File

@ -0,0 +1,465 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace Converter
{
public static class Extractor
{
// REQUIRED CONSTS
const int PROCESS_QUERY_INFORMATION = 0x0400;
const int MEM_COMMIT = 0x00001000;
const int PAGE_READWRITE = 0x04;
const int PROCESS_WM_READ = 0x0010;
// REQUIRED METHODS
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32.dll")]
public static extern bool ReadProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);
[DllImport("kernel32.dll")]
static extern void GetSystemInfo(out SYSTEM_INFO lpSystemInfo);
[DllImport("kernel32.dll", SetLastError = true)]
static extern int VirtualQueryEx(IntPtr hProcess, IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, uint dwLength);
public static int Interval = 30000000;
public static Int64 CurrentIndex = 4000000;
public static IntPtr proc_min_address;
public static IntPtr proc_max_address;
public static long proc_min_address_l;
public static long proc_max_address_l;
public static Process process;
public static int CurrentDump = 1;
public static bool Done = false;
public static string Patch = Loader.File_Path + "RTP\\";
public static bool Patch_4kRPM_Hondata = true;
public static bool Patch_Hondata_Chip_Lock = true;
public static string Mode = "";
public static bool IsRTP = false;
public static byte[] ExtractedBytes = new byte[] { };
// REQUIRED STRUCTS
public struct MEMORY_BASIC_INFORMATION
{
public int BaseAddress;
public int AllocationBase;
public int AllocationProtect;
public int RegionSize;
public int State;
public int Protect;
public int lType;
}
public struct SYSTEM_INFO
{
public ushort processorArchitecture;
ushort reserved;
public uint pageSize;
public IntPtr minimumApplicationAddress;
public IntPtr maximumApplicationAddress;
public IntPtr activeProcessorMask;
public uint numberOfProcessors;
public uint processorType;
public uint allocationGranularity;
public ushort processorLevel;
public ushort processorRevision;
}
public static bool Extract(string Mode1, bool IsDoingRTP)
{
try
{
SYSTEM_INFO sys_info = new SYSTEM_INFO();
GetSystemInfo(out sys_info);
IsRTP = IsDoingRTP;
if (!IsRTP) Main_Form.Main.ClearRTPLocation();
if (IsRTP) Main_Form.Main.CurrentRTPBytes = new byte[] { };
CurrentIndex = 4000000;
Done = false;
long MaxIndex = (CurrentIndex + Interval);
if (IsRTP)
{
CurrentIndex = Main_Form.Main.RTPLocation;
//MaxIndex = (CurrentIndex + (32768*2));
}
proc_min_address = (IntPtr)CurrentIndex;
proc_max_address = (IntPtr)MaxIndex;
proc_min_address_l = (long)proc_min_address;
proc_max_address_l = (long)proc_max_address;
Mode = Mode1;
Log.Log_This("--------------------------------------------------------------------------------------", false);
Log.Log_This("Extracting " + Mode, false);
if (Mode == "Neptune RTP") Patch = Loader.File_Path + "RTP\\";
if (Mode == "SManager") Patch = Loader.File_Path + "SManager\\";
CurrentDump = 1;
if (!Directory.Exists(Patch)) Directory.CreateDirectory(Patch);
Process[] ProcList = Process.GetProcessesByName(Mode);
if (ProcList.Length == 0)
{
Log.Log_This(Mode + " IS NOT RUNNING", false);
return false;
}
else
{
process = Process.GetProcessesByName(Mode)[0];
Log.Log_This(Mode + " Is Running", false);
RemovePastDump();
string ReloadDump = "";
while (!Done)
{
int Percent = 0;
if (!IsRTP) Percent = (int)(((CurrentIndex - 4000000) * 100) / (Int64.Parse(sys_info.maximumApplicationAddress.ToString()) - 1));
else Percent = 50;
//Console.Write("\nSEARCH #" + SearchID + " " + Percent + "%");
Main_Form.Main.Progress = (int)Percent;
Application.DoEvents();
if ((CurrentIndex + Interval) > Int64.Parse(sys_info.maximumApplicationAddress.ToString()))
Done = true;
else
{
MaxIndex = (CurrentIndex + Interval);
if (IsRTP)
{
CurrentIndex = Main_Form.Main.RTPLocation;
//MaxIndex = (CurrentIndex + (32768*2));
}
proc_min_address = (IntPtr)CurrentIndex;
proc_max_address = (IntPtr)MaxIndex;
proc_min_address_l = (long)proc_min_address;
proc_max_address_l = (long)proc_max_address;
//Console.WriteLine("here");
Search();
ReloadDump = ReloadDumpFile();
if (Mode == "Neptune RTP" && ReloadDump.Contains("292330231823")) GetIndex(ReloadDump, "292330231823");
if (Mode == "SManager")
{
//2000 to 2026
string SearchStr = "284329203230303020486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303120486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303220486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303320486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303420486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303520486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303620486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303720486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303820486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230303920486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313020486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313120486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313220486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313320486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313420486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313520486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313620486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313720486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313820486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230313920486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323020486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323120486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323220486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323320486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323420486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323520486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
SearchStr = "284329203230323620486F6E64617461";
if (ReloadDump.Contains(SearchStr)) GetIndex(ReloadDump, SearchStr);
}
}
if (!IsRTP)
{
CurrentIndex += Interval;
}
else
{
Done = true;
}
}
File.Delete(Patch + "Dump.txt");
File.Delete(Patch + "DumpHex");
Main_Form.Main.Progress = (int)0;
if (CurrentDump == 1)
{
Log.Log_This("NO BIN FOUND", false);
return false;
}
else
{
//Log.Log_This((CurrentDump - 1) + " BIN FOUND", false);
return true;
}
}
}
catch (Exception message)
{
Main_Form.Main.Progress = (int)0;
Log.Log_This("CANT EXTRACT ERROR:\n" + message, false);
return false;
}
}
static void RemovePastDump()
{
string[] FileList = Directory.GetFiles(Patch, "Dump*");
if (FileList.Length > 0)
{
for (int i = 0; i < FileList.Length; i++)
{
File.Delete(FileList[i]);
}
}
}
static string ReloadDumpFile()
{
string ReloadDump = File.ReadAllText(Patch + "Dump.txt");
ReloadDump = ReloadDump.Replace("\n", "");
ReloadDump = ReloadDump.Replace("\r", "");
ReloadDump = ReloadDump.Replace(" ", "");
File.WriteAllText(Patch + "Dump.txt", ReloadDump);
ExtractedBytes = File.ReadAllBytes(Patch + "DumpHex");
return ReloadDump;
}
static void Search()
{
int bytesRead = 0;
IntPtr processHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_WM_READ, false, process.Id);
MEMORY_BASIC_INFORMATION mem_basic_info = new MEMORY_BASIC_INFORMATION();
StreamWriter sw = new StreamWriter(Patch + "Dump.txt");
StreamWriter sw2 = new StreamWriter(Patch + "DumpHex");
//Console.WriteLine(proc_min_address_l.ToString("X"));
//Console.WriteLine(proc_max_address_l.ToString("X"));
while (proc_min_address_l < proc_max_address_l)
{
VirtualQueryEx(processHandle, proc_min_address, out mem_basic_info, 28);
//Console.WriteLine(proc_min_address_l.ToString("X"));
//Console.WriteLine("here");
if (mem_basic_info.Protect == PAGE_READWRITE && mem_basic_info.State == MEM_COMMIT)
{
byte[] buffer = new byte[mem_basic_info.RegionSize];
ReadProcessMemory((int)processHandle,
mem_basic_info.BaseAddress, buffer, mem_basic_info.RegionSize, ref bytesRead);
for (int i = 0; i < mem_basic_info.RegionSize; i++)
{
sw.WriteLine(buffer[i].ToString("X2"));
sw2.Write((char) buffer[i]);
}
}
if (mem_basic_info.RegionSize > 0) proc_min_address_l += mem_basic_info.RegionSize;
else proc_min_address_l++;
proc_min_address = new IntPtr(proc_min_address_l);
}
sw.Close();
sw2.Close();
}
static void GetIndex(string This, string SearchStr)
{
string LeftString = This;
while (LeftString.Contains(SearchStr))
{
byte[] SearchBytes = new byte[SearchStr.Length / 2];
for (int i = 0; i < SearchBytes.Length; i++) SearchBytes[i] = byte.Parse(SearchStr.Substring(i*2, 2), System.Globalization.NumberStyles.HexNumber);
int Ind = LeftString.IndexOf(SearchStr);
if (Mode == "Neptune RTP")
{
string Similary2 = LeftString.Substring(Ind + ((32768 * 2) - 8), 8);
if (Similary2 == "FFFFFFFF") CreateBin(Ind, LeftString);
if (!IsRTP)
{
for (int i = 0; i < ExtractedBytes.Length; i++)
{
if (ExtractedBytes[i] == SearchBytes[0] && ExtractedBytes[i + 1] == SearchBytes[1] && ExtractedBytes[i + 2] == SearchBytes[2] && ExtractedBytes[i + 3] == SearchBytes[3] && ExtractedBytes[i + 4] == SearchBytes[4] && ExtractedBytes[i + 5] == SearchBytes[5])
Main_Form.Main.AddRTPLocation(CurrentIndex + i);
}
}
}
if (Mode == "SManager")
{
if (CurrentDump == 1 && !IsRTP)
{
CurrentDump++; //dont create the useless dump1
}
else
{
CreateBin(Ind - (0x7ff0 * 2), LeftString);
if (!IsRTP)
{
for (int i = 0; i < ExtractedBytes.Length; i++)
{
if (ExtractedBytes[i] == SearchBytes[0] && ExtractedBytes[i + 1] == SearchBytes[1] && ExtractedBytes[i + 2] == SearchBytes[2] && ExtractedBytes[i + 3] == SearchBytes[3] && ExtractedBytes[i + 4] == SearchBytes[4] && ExtractedBytes[i + 5] == SearchBytes[5])
Main_Form.Main.AddRTPLocation(CurrentIndex + i - 0x7ff0);
}
}
}
}
LeftString = LeftString.Substring(Ind + 12);
//CurrentIndex += (Ind/2) + 6;
}
}
static void CreateBin(int StartInd, string LeftString)
{
string FoundStr = LeftString.Substring(StartInd, (32768 * 2));
byte[] OutputFile = ConvertHexToByte(FoundStr);
if (Mode == "SManager" && Patch_4kRPM_Hondata) OutputFile = Decrypt4KHondata(OutputFile);
if (Mode == "SManager" && Patch_Hondata_Chip_Lock) OutputFile = DecryptHondata_V2(OutputFile);
int CurrentDumpFound = CurrentDump;
if (Mode == "SManager" && !IsRTP) CurrentDumpFound -= 1;
File.Create(Patch + "Dump" + CurrentDumpFound + ".bin").Dispose();
File.WriteAllBytes(Patch + "Dump" + CurrentDumpFound + ".bin", OutputFile);
if (IsRTP) Main_Form.Main.CurrentRTPBytes = OutputFile;
Log.Log_This("BIN #" + CurrentDumpFound + " FOUND!", false);
//Log.Log_This("BIN #" + CurrentDumpFound + " FOUND! at 0x" + (CurrentIndex + StartInd).ToString("X2"), false);
//Console.WriteLine("BIN #" + CurrentDumpFound + " | CurrentIndex:" + (CurrentIndex).ToString("X2") + " | StartInd:" + (StartInd / 2).ToString("X2"));
//if (!IsRTP) Main_Form.Main.AddRTPLocation(CurrentIndex + StartInd);
//Console.Write("\nSEARCH #" + SearchID + " ... BIN #" + CurrentDump + " FOUND !");
CurrentDump++;
}
static byte[] Decrypt4KHondata(byte[] ThisBytes)
{
//Get Location
//B5 06 A9 A2 7D
int Location = -1;
for (int i = 0; i < ThisBytes.Length; i++)
{
if (ThisBytes[i] == 0xB5 && ThisBytes[i + 1] == 0x06 && ThisBytes[i + 2] == 0xA9 && ThisBytes[i + 3] == 0xA2 && ThisBytes[i + 4] == 0x7D) Location = i + 5;
}
//Apply 4K rpm remover
if (Location != -1)
{
ThisBytes[Location] = 0xCB;
ThisBytes[Location + 1] = 0x08;
for (int i = 0; i < 8; i++) ThisBytes[(Location + 2) + i] = 0xff;
if (!IsRTP) Log.Log_This("4000rpm Limit Removed!", false);
}
return ThisBytes;
}
static byte[] DecryptHondata_V2(byte[] ThisBytes)
{
//Get Location
//90 15 F0 38 04
int Location = -1;
for (int i = 0; i < ThisBytes.Length; i++)
{
if (ThisBytes[i] == 0x90 && ThisBytes[i + 1] == 0x15 && ThisBytes[i + 2] == 0xF0 && ThisBytes[i + 3] == 0x38 && ThisBytes[i + 4] == 0x04) Location = i;
}
//Apply 4K rpm remover
if (Location != -1)
{
ThisBytes[Location + 21] = (byte) (ThisBytes[Location + 21] + 2);
ThisBytes[Location + 23] = (byte)(ThisBytes[Location + 23] + 2);
ThisBytes[Location + 49] = (byte)(ThisBytes[Location + 49] + 2);
ThisBytes[Location + 53] = (byte)(ThisBytes[Location + 53] + 2);
ThisBytes[Location + 65] = (byte)(ThisBytes[Location + 65] + 2);
//71 = location, loop for 73bytes
byte[] BufferBytes = new byte[73];
for (int i = 0; i < BufferBytes.Length; i++) BufferBytes[i] = ThisBytes[Location + 71];
ThisBytes[Location + 71] = 0xC2;
ThisBytes[Location + 72] = 0x18;
for (int i = 0; i < BufferBytes.Length; i++) ThisBytes[Location + 73] = BufferBytes[i];
if (!IsRTP) Log.Log_This("Hondata Chip Security Removed!", false);
}
return ThisBytes;
}
static byte[] ConvertHexToByte(string Hex)
{
string Left = Hex;
byte[] Returning = new byte[Hex.Length / 2];
int Index = 0;
while (Left != "")
{
Returning[Index] = Byte.Parse(Left.Substring(0, 2), System.Globalization.NumberStyles.AllowHexSpecifier);
Left = Left.Substring(2);
Index++;
}
return Returning;
}
}
}

View File

@ -0,0 +1,296 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class File_Converter
{
public static byte[] Bin_File;
public static byte[] Cal_File;
public static byte[] Original_NBin_File;
public static int Current_Index = 0;
public static int Max_Index = 0;
public static string Mode = "";
//##################################################################
//CONVERT THE PRELODED ECTUNE BIN WITH THE CALIBRATION
//public static void Convert_File(bool Save)
public static void Convert_File()
{
Mode = Loader.Mode;
//Set Load Time
/*EndTime = Time.realtimeSinceStartup;
float Load_Time = EndTime - StartTime;
Load_Time = Mathf.Round(Load_Time * 100f) / 100f;*/
//Set Log Loaded
//this.GetComponent<Log>().Log_This("File loaded in " + Load_Time + " seconds", false);
if (!Loader.C3)
{
if (Mode == "Bin") Convert64kb();
string ErrorText = Check_Error();
if (ErrorText != "")
Log.Log_This("NOT Compatible !", false);
else
{
Log.Log_This("Compatible !", false);
Log.Log_This("--------------------------------------------------------------------------------------", true);
Log.Log_This("Converting: " + Loader.Current_File, false);
//Start Convertion
//StartTime = Time.realtimeSinceStartup;
//Loop_Time_Start = Time.realtimeSinceStartup;
//AvgTimeLoop.Clear();
Max_Index = 8382;
if (Mode == "Neptune") Max_Index = 32768;
Current_Index = 0;
for (int i = 0; i < Max_Index; i++)
{
int ThisInteger = 0;
int Current_Index_End = 0;
//Set Values to the original file backup
//Max Index Cal = 8371, Bin = 8364, Others = 32768;
//CALIBRATION MODE
if (Mode == "Cal" & Current_Index < 8371) {
Current_Index_End = 24388 + Current_Index;
Bin_File.SetValue(Cal_File[Current_Index + 8], Current_Index_End);
ThisInteger = Bin_File[Current_Index_End];
}
//BIN MODE
if (Mode == "Bin" & Current_Index < 8364) {
Current_Index_End = 8 + Current_Index;
Cal_File.SetValue(Bin_File[24388 + Current_Index], Current_Index_End);
ThisInteger = Cal_File[Current_Index_End];
}
//NEPTUNE MODE
if (Mode == "Neptune") {
if (Current_Index < 21357) {
Bin_File.SetValue(Original_NBin_File[Current_Index], Current_Index);
ThisInteger = Bin_File[Current_Index];
} else if (Current_Index >= 21357 & Current_Index < 24575) {
ThisInteger = Bin_File[Current_Index];
/*if (Current_Index == 22995) {
Bin_File.SetValue (Original_NBin_File [Current_Index], Current_Index);
ThisInteger = Bin_File [Current_Index];
}*/
} else if (Current_Index >= 24575 & Current_Index < 27135) {
Bin_File.SetValue(Original_NBin_File[Current_Index], Current_Index);
ThisInteger = Bin_File[Current_Index];
} else if (Current_Index >= 27135 & Current_Index < 32543) {
ThisInteger = Bin_File[Current_Index];
} else if (Current_Index >= 32543) {
Bin_File.SetValue(Original_NBin_File[Current_Index], Current_Index);
ThisInteger = Bin_File[Current_Index];
}
Current_Index_End = Current_Index;
}
//Set Percent
int Percent = ((Current_Index * 100) / (Max_Index - 1));
Main_Form.Main.Progress = Percent;
Log.Log_This("Set hex: " + ThisInteger.ToString("X2") + " At address: " + Current_Index_End.ToString("X4"), true);
Current_Index++;
}
//Get Remaining Time
//float RemainTime = GetRemainingTime(Loop_Index);
//string StrTime = ConvertTimeToString(RemainTime);
//RemainingTime.GetComponent<Text>().text = "Remaining time : " + StrTime;
//Reset Loop Timer
//Loop_Time_Start = Time.realtimeSinceStartup;
if (Loader.C & Mode != "Neptune") ResetChecksum();
Set_Convert_Done();
}
}
}
public static void Set_Convert_Done()
{
//Get Time && Set Convert Done Text
/*EndTime = Time.realtimeSinceStartup;
float Convert_Time = EndTime - StartTime;
Convert_Time = Mathf.Round(Convert_Time * 100f) / 100f;
//Log Time
this.GetComponent<Log>().Log_This("--------------------------------------------------------------", true);
this.GetComponent<Log>().Log_This("Conversion done in " + Convert_Time + " seconds", false);*/
if (Mode != "Neptune") Main_Form.Main.SaveCalEnabled = true;
Main_Form.Main.SaveBinEnabled = true;
Main_Form.Main.EditEnabled = true;
//#####################################################
//Get Infos
File_Infos.GetInfos();
//#####################################################
}
private static void ResetChecksum()
{
//Get File Lenght, is not correct, add checksum location
if (Cal_File.Length == 8381)
{
byte[] TempCal = Cal_File;
Cal_File = new byte[8382];
for (int i = 0; i < 8381; i++)
{
Cal_File[i] = TempCal[i];
}
}
//Set 0x06 at 20B8
byte ThisNewByte = 6;
Cal_File[8376] = ThisNewByte;
byte Checksum = 0;
for (int i = 0; i < 8382; i++)
{
if (i >= 8 && i != 8381)
{
//Get 0x0008 to 0x20BC
Checksum += Cal_File[i];
}
else if (i == 8381)
{
//Set Checksum at 0x20BD (8382 - 1)
Cal_File[i] = Checksum;
}
}
Log.Log_This("Resetting Checksum: " + Checksum.ToString("X") + " at Hex: 20BD", false);
}
public static void RemoveComments(bool InBin)
{
string Output = "Calibration";
if (InBin) Output = "Bin";
Log.Log_This("Removing comments in the " + Output, false);
if (InBin)
{
byte[] TempBin = new byte[32768];
for (int i = 0; i < 32768; i++)
{
TempBin[i] = Bin_File[i];
}
Bin_File = TempBin;
Output = "Bin";
}
else
{
byte[] TempCal = new byte[8382];
for (int i = 0; i < 8382; i++)
{
TempCal[i] = Cal_File[i];
}
Cal_File = TempCal;
Output = "Calibration";
}
}
public static void Convert64kb()
{
Log.Log_This("Checking for 64kb", false);
if (Bin_File.Length - 1 >= 65534)
{
Log.Log_This("This file is 64kb --> Converting to 32kb", false);
byte[] Temp_Byte = new byte[32768];
for (int i = 0; i < 32768; i++)
{
Temp_Byte[i] = Bin_File[32768 + i];
}
Bin_File = Temp_Byte;
}
else
{
Log.Log_This("This file is not 64kb", false);
}
}
public static string Check_Error()
{
Log.Log_This("Checking for compatibilities", false);
string Error_Str = "";
//CALIBRATION MODE
if (Mode == "Cal") {
//Check for compatible calibrations
if (Cal_File[8371] != 101 & Cal_File[8372] != 67 & Cal_File[8372] != 116)
Error_Str = "The Calibration File aren't compatible for the convertion'";
//Make sure original bin arent modified
if (Bin_File.Length < 32768)
Error_Str = "The buffer bin file is too Short (Possibly Modified)\n Lenght '" + (Bin_File.Length) + "' < 32768";
else if (Bin_File.Length > 32768)
Error_Str = "The buffer bin file is too Long (Possibly Modified)\n Lenght '" + (Bin_File.Length) + "' > 32768";
}
//BINARY OR NEPTUNE MODE
if (Mode == "Bin" | Mode == "Neptune")
{
//Check for compatible binaries
if (Bin_File.Length < 32768)
Error_Str = "The Binary File is too Short\n Lenght '" + (Bin_File.Length) + "' < 32768";
else if (Bin_File.Length > 32768)
{
Error_Str = "The Binary File is too Long\n Lenght '" + (Bin_File.Length) + "' > 32768";
//Check if compatible and remove comments
if (Bin_File[528] == 196 | Bin_File[528] == 16)
{
Error_Str = "";
RemoveComments(true);
}
}
else if (Bin_File[528] != 196 & Bin_File[528] != 16)
{
//0x0210 = 528 ... eCtune=196, P30=71, Gold=137, P72=228, Neptune=16, P28=212
//Get Other Softwares
if (Bin_File[528] == 71)
Error_Str = "This is a Crome P30 Binary file";
else if (Bin_File[528] == 228)
Error_Str = "This is a Crome P72 Binary file";
else if (Bin_File[528] == 212)
Error_Str = "This is a Crome P28 Binary file";
else if (Bin_File[528] == 137)
Error_Str = "This is a Crome Gold Binary file";
else if (Bin_File[528] == 19)
Error_Str = "This is a Hondata S200 Binary file";
else
Error_Str = "This Binary File is not reconized";
}
}
//Make sure original cal arent modified
if (Mode != "Neptune")
{
if (Cal_File.Length < 8381)
Error_Str = "The original cal file that\nneed convertion is too Short\n Lenght '" + (Cal_File.Length) + "' < 8382";
else if (Cal_File.Length == 8381)
ResetChecksum();
else if (Cal_File.Length > 8382) {
RemoveComments(false);
ResetChecksum();
}
}
if (Error_Str != "") Log.Log_This(Error_Str, false);
return Error_Str;
}
}
}

View File

@ -0,0 +1,600 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class File_Infos
{
public static string HEX_O2CloseLoop;
public static string HEX_IAC_Error;
public static string HEX_IAB_Reset;
public static string HEX_IAB_Set;
public static string HEX_Vtec_Error;
public static string HEX_Vtec_ECTCheck;
public static string HEX_Vtec_Pressure;
public static string HEX_Vtec_SolenoidErr;
public static string HEX_IgnitionCut;
public static string HEX_FuelCut;
public static string HEX_ShiftLight;
public static string HEX_ShiftLight_Rpm;
public static string HEX_Knock;
public static string HEX_Vtec_Trigger;
public static string HEX_O2Heater;
public static string HEX_Baro;
public static string HEX_InjectorTest;
public static string HEX_Boost_Column;
public static string HEX_IAB_USDM;
public static string HEX_Vtec_SpeedCheck;
public static string HEX_AutoTranny;
public static string HEX_ELD;
public static string HEX_IAB;
public static string HEX_Launch_Mode;
public static string HEX_Launch_Type;
public static string HEX_Launch_RPM = "5419"; //NEPTUNE LAUNCH RPM
public static string HEX_Launch_RPM_MEM;
public static string HEX_Antilag_Fuel;
public static string HEX_Antilag;
public static string HEX_Launch_RPM_TPS;
public static string HEX_Purge;
public static string HEX_FanControl;
public static string HEX_AC;
public static string HEX_Rev_Reset_Cold;
public static string HEX_Rev_Set_Cold;
public static string HEX_Rev_Reset_Hot;
public static string HEX_Rev_Set_Hot;
public static string HEX_Vtec_Low_RPM;
public static string HEX_Vtec_High_RPM;
public static bool ELD = true;
public static bool Knock = true;
public static bool Baro = true;
public static bool InjTest = true;
public static bool O2Heater = false;
public static bool CloseLoop = false;
public static bool AutoTranny = true;
public static bool IAB = true;
public static bool Purge = false;
public static bool FanControl = false;
public static bool IACV = false;
public static bool AC = false;
public static bool Using_Vtec = false;
public static int Vtec_Rpm_Set = 0;
public static int Vtec_Rpm_Reset = 0;
public static bool Vtec_Speed = false;
public static bool Vtec_Coolant = false;
public static bool Vtec_Pressure = true;
public static bool Vtec_Solenoid = false;
public static bool Vtec_Error = false;
public static int Rev_RPM_Cold_Set = 0;
public static int Rev_RPM_Cold_Reset = 0;
public static int Rev_RPM_Hot_Set = 0;
public static int Rev_RPM_Hot_Reset = 0;
public static bool FuelCut = true;
public static bool IgnitionCut = false;
public static bool ShiftLight = false;
public static int ShiftLight_RPM = 0;
public static bool Using_Launch = false;
public static bool Using_Launch_TPS = false;
public static int Launch_Input = 0;
public static int Launch_RPM_Mem = 0;
public static int Launch_RPM_TPS = 0;
public static int Launch_RPM = 0; //Neptune
public static bool Using_Antilag = false;
public static int Antilag_Fuel = 0;
public static bool Boosted = false;
public static bool IAB_Disabled = true;
public static bool IAB_USDM = true;
public static int IAB_RPM_Set = 0;
public static int IAB_RPM_Reset = 0;
public static byte[] Current_File;
public static string Mode = "";
//###############################################################################
public static void LoadHexRegion()
{
if (Mode != "Neptune")
{
HEX_O2CloseLoop = "01D5"; //FF = Disabled
HEX_IAC_Error = "01DA"; //FF = Disabled
HEX_IAB_Reset = "01DD"; //FF = 8000rpm
HEX_IAB_Set = "01DE"; //FF = 8000rpm
HEX_Vtec_Error = "01E2"; //FF = Disabled
HEX_Vtec_ECTCheck = "01E3"; //FF = Disabled
HEX_Vtec_Pressure = "01E7"; //FF = Disabled
HEX_Vtec_SolenoidErr = "01E8"; //FF = Disabled
HEX_IgnitionCut = "01E9"; //FF = Enabled
HEX_FuelCut = "01EA"; //FF = Disabled
HEX_ShiftLight = "0206"; //FF = Enabled
HEX_ShiftLight_Rpm = "0208"; //"0209";
HEX_Knock = "02B7"; //FF = Disabled
HEX_Vtec_Trigger = "02B6"; //FF = Disabled
HEX_O2Heater = "02B8"; //FF = Disabled
HEX_Baro = "02B9"; //FF = Disabled
HEX_InjectorTest = "02BD"; //FF = Disabled
HEX_Boost_Column = "02BF";
HEX_IAB_USDM = "02C5"; //FF = USDM ECU
HEX_Vtec_SpeedCheck = "02CD"; //FF = Disabled
HEX_AutoTranny = "02CF"; //FF = Disabled
HEX_ELD = "02D2"; //FF = Disabled
HEX_IAB = "02D9"; //FF = Disabled
HEX_Launch_Mode = "0216"; //always on = 0x80, disabled = 0x00, B5 = 0x10, B7 = 0x40, B8 = 0x01-FF, B9 = 0x04-FF, D2 = 0x20, D4 = 0x02, D6 = 0x08;
HEX_Launch_Type = "0219"; //tps = 0xFF, memory = 0x00
HEX_Launch_RPM_MEM = "021A"; //"021B";
HEX_Antilag_Fuel = "0225"; //Value * 4 ### "0226" When over 255
HEX_Antilag = "0228";
HEX_Launch_RPM_TPS = "0229"; //"022A";
HEX_Purge = "022F"; //FF = Disabled
HEX_FanControl = "0231"; //FF = Enabled
HEX_AC = "025E"; //FF = Disabled
HEX_Rev_Reset_Cold = "0655"; //"0656";
HEX_Rev_Set_Cold = "065B"; //"065C";
HEX_Rev_Reset_Hot = "0661"; //"0662";
HEX_Rev_Set_Hot = "0667"; //"0668";
HEX_Vtec_Low_RPM = "071E";
HEX_Vtec_High_RPM = "071C";
}
else
{
HEX_O2CloseLoop = "5464"; //FF = Disabled
HEX_IAC_Error = "5452"; //FF = Disabled
HEX_IAB_Reset = "5434"; //FF = 8000rpm
HEX_IAB_Set = "5433"; //FF = 8000rpm
HEX_Vtec_Error = "545C"; //FF = Disabled
HEX_Vtec_ECTCheck = "545D"; //FF = Disabled
HEX_Vtec_Pressure = "545B"; //FF = Disabled
HEX_IgnitionCut = "53BF"; //FF = Enabled
HEX_FuelCut = "53B6"; //FF = Disabled
HEX_ShiftLight = "5458"; //FF = Enabled
HEX_ShiftLight_Rpm = "5442";
HEX_Knock = "5467"; //FF = Disabled
HEX_Vtec_Trigger = "5466"; //FF = Disabled
HEX_O2Heater = "5468"; //FF = Disabled
HEX_Baro = "5469"; //FF = Enabled
HEX_InjectorTest = "546D"; //FF = Disabled
HEX_Boost_Column = "7E88"; //0E = NOT BOOSTED
HEX_IAB_USDM = "5475"; //FF = USDM ECU
HEX_Vtec_SpeedCheck = "547D"; //FF = Disabled
HEX_ELD = "5482"; //FF = Disabled
HEX_IAB = "5489"; //FF = Disabled
HEX_Launch_Mode = "545E"; //always on = 0xFF, disabled = 0x00;
//HEX_Launch_Type = "5455"; //tps = 0x02, MPH = 0x00, clutch = 0x01
//HEX_Antilag_Fuel = "541E"; //Value * 4 ### "0226" When over 255
//HEX_Antilag = "0228";
HEX_FanControl = "5453"; //FF = Enabled
HEX_Rev_Reset_Cold = "580D"; //"0656";
HEX_Rev_Set_Cold = "5813"; //"065C";
HEX_Rev_Reset_Hot = "5819"; //"0662";
HEX_Rev_Set_Hot = "581F"; //"0668";
HEX_Vtec_Low_RPM = "58D3";
HEX_Vtec_High_RPM = "58D5";
}
}
//####################################################################################################
public static void GetInfos()
{
Current_File = File_Converter.Cal_File;
Mode = Loader.Mode;
//Get Byes from Bin file instead of Cal file for Neptune
if (Mode == "Neptune")
Current_File = File_Converter.Bin_File;
/*else if (Mode == "Serial")
{
Current_File = this.GetComponent<Serial>().BufferArray;
if (this.GetComponent<Serial>().BufferArray[528] == 196)
{
Current_File = new byte[8382];
for (int i = 0; i < 8364; i++)
{
Current_File.SetValue(this.GetComponent<Serial>().BufferArray[24388 + i], 8 + i);
}
}
else
{
Mode = "Neptune";
Current_File = this.GetComponent<Serial>().BufferArray;
}
}*/
LoadHexRegion();
//Get Values
ELD = GetBool(ConvertHexToInt(HEX_ELD), true);
Knock = GetBool(ConvertHexToInt(HEX_Knock), true);
Baro = GetBool(ConvertHexToInt(HEX_Baro), true);
InjTest = GetBool(ConvertHexToInt(HEX_InjectorTest), false);
O2Heater = GetBool(ConvertHexToInt(HEX_O2Heater), true);
CloseLoop = GetBool(ConvertHexToInt(HEX_O2CloseLoop), false);
FanControl = GetBool(ConvertHexToInt(HEX_FanControl), true);
IACV = GetBool(ConvertHexToInt(HEX_IAC_Error), false);
if (Mode != "Neptune")
{
AutoTranny = GetBool(ConvertHexToInt(HEX_AutoTranny), true);
Purge = GetBool(ConvertHexToInt(HEX_Purge), false);
AC = GetBool(ConvertHexToInt(HEX_AC), false);
}
//Get Vtec Values
Using_Vtec = GetBool(ConvertHexToInt(HEX_Vtec_Trigger), false);
if (Mode != "Neptune")
{
Vtec_Rpm_Reset = ConvertHexToVtecRPM(ConvertHexToInt(HEX_Vtec_Low_RPM));
Vtec_Rpm_Set = ConvertHexToVtecRPM(ConvertHexToInt(HEX_Vtec_High_RPM));
}
else
{
Vtec_Rpm_Reset = GetRPM(ConvertHexToInt(HEX_Vtec_Low_RPM));
Vtec_Rpm_Set = GetRPM(ConvertHexToInt(HEX_Vtec_High_RPM));
}
Vtec_Speed = GetBool(ConvertHexToInt(HEX_Vtec_SpeedCheck), false);
Vtec_Coolant = GetBool(ConvertHexToInt(HEX_Vtec_ECTCheck), false);
Vtec_Pressure = GetBool(ConvertHexToInt(HEX_Vtec_Pressure), false);
if (Mode != "Neptune")
{
Vtec_Solenoid = GetBool(ConvertHexToInt(HEX_Vtec_SolenoidErr), false);
}
Vtec_Error = GetBool(ConvertHexToInt(HEX_Vtec_Error), false);
//Get Rev rpm's
Rev_RPM_Cold_Set = GetRPM(ConvertHexToInt(HEX_Rev_Set_Cold));
Rev_RPM_Cold_Reset = GetRPM(ConvertHexToInt(HEX_Rev_Reset_Cold));
Rev_RPM_Hot_Set = GetRPM(ConvertHexToInt(HEX_Rev_Set_Hot));
Rev_RPM_Hot_Reset = GetRPM(ConvertHexToInt(HEX_Rev_Reset_Hot));
if (Mode != "Neptune")
{
FuelCut = GetBool(ConvertHexToInt(HEX_FuelCut), true);
}
else
{
FuelCut = GetBool(ConvertHexToInt(HEX_FuelCut), false);
}
IgnitionCut = GetBool(ConvertHexToInt(HEX_IgnitionCut), false);
ShiftLight = GetBool(ConvertHexToInt(HEX_ShiftLight), false);
ShiftLight_RPM = GetRPM(ConvertHexToInt(HEX_ShiftLight_Rpm));
//Get Launch Values
Launch_Input = (int)Current_File[ConvertHexToInt(HEX_Launch_Mode)];
Using_Launch = false;
//Set Using Launch
if (Current_File[ConvertHexToInt(HEX_Launch_Mode)] > 0)
{
Using_Launch = true;
}
//Get Launch Type
if (Mode != "Neptune")
{
if (Current_File[ConvertHexToInt(HEX_Launch_Type)] > 0)
{
Using_Launch_TPS = true;
}
else
{
Using_Launch_TPS = false;
}
Launch_RPM_TPS = GetRPM(ConvertHexToInt(HEX_Launch_RPM_TPS));
Launch_RPM_Mem = GetRPM(ConvertHexToInt(HEX_Launch_RPM_MEM));
}
else
{
Launch_RPM = GetRPM(ConvertHexToInt(HEX_Launch_RPM));
}
//Get Antilag
if (Mode != "Neptune")
{
Using_Antilag = GetBool(ConvertHexToInt(HEX_Antilag), false);
int FuelIndex = ConvertHexToInt(HEX_Antilag_Fuel);
Antilag_Fuel = ((int)Current_File[FuelIndex] + ((int)Current_File[FuelIndex + 1] * 256)) / 4;
}
//Get Boosted
if (Mode != "Neptune")
{
if (Current_File[ConvertHexToInt(HEX_Boost_Column)] > 10)
{
Boosted = true;
}
else
{
Boosted = false;
}
}
else
{
if (Current_File[ConvertHexToInt(HEX_Boost_Column)] != 14)
{
Boosted = true;
}
else
{
Boosted = false;
}
}
//Get IAB Values
IAB_Disabled = GetBool(ConvertHexToInt(HEX_IAB), false);
IAB_USDM = GetBool(ConvertHexToInt(HEX_IAB_USDM), false);
if (Mode != "Neptune")
{
IAB_RPM_Set = ConvertHexToVtecRPM(ConvertHexToInt(HEX_IAB_Set));
IAB_RPM_Reset = ConvertHexToVtecRPM(ConvertHexToInt(HEX_IAB_Reset));
}
else
{
IAB_RPM_Set = GetRPM(ConvertHexToInt(HEX_IAB_Set));
IAB_RPM_Reset = GetRPM(ConvertHexToInt(HEX_IAB_Reset));
}
//Set Infos Texts
SetInfos();
//SetEditInfos();
}
//#################################################################################################
public static bool GetBool(int Index, bool Inverted)
{
bool This = Inverted;
if (Current_File[Index] == 255)
{
This = true;
if (Inverted)
{
This = false;
}
}
return This;
}
public static int GetRPM(int Index)
{
//RPM = 1875000 / ((1st byte * 256) + 2nd byte)
int RPM1 = (int)Current_File[Index];
int RPM2 = (int)Current_File[Index + 1];
int RPM = 1875000 / ((RPM2 * 256) + RPM1);
return RPM;
}
public static string GetHexRPM(int RPM)
{
//Reset Max RPM
if (RPM >= 12000)
{
RPM = 12000;
}
//Set
int RPM_Full = 1875000 / RPM;
int RPM2 = RPM_Full / 256;
int RPM1 = RPM_Full - (RPM2 * 256);
string HexRPM = RPM1.ToString("X2") + RPM2.ToString("X2");
return HexRPM;
}
public static int ConvertHexToInt(string Hex)
{
return System.Int32.Parse(Hex, System.Globalization.NumberStyles.AllowHexSpecifier);
}
public static int ConvertHexToVtecRPM(int Index)
{
string Vtec_Hex = Current_File[Index].ToString("X2");
string Index1 = Vtec_Hex[0].ToString();
string Index2 = Vtec_Hex[1].ToString();
//Incread with First index
int RPM = 0;
if (Index1 == "9")
RPM = 1000;
else if (Index1 == "A")
RPM = 2000;
else if (Index1 == "B")
RPM = 3000;
else if (Index1 == "C")
RPM = 4000;
else if (Index1 == "D")
RPM = 5000;
else if (Index1 == "E")
RPM = 6000;
else if (Index1 == "F")
RPM = 7000;
//Incread with Second index
if (Index2 == "1")
RPM = RPM + 50;
else if (Index2 == "2")
RPM = RPM + 125;
else if (Index2 == "3")
RPM = RPM + 200;
else if (Index2 == "4")
RPM = RPM + 250;
else if (Index2 == "5")
RPM = RPM + 300;
else if (Index2 == "6")
RPM = RPM + 375;
else if (Index2 == "7")
RPM = RPM + 450;
else if (Index2 == "8")
RPM = RPM + 500;
else if (Index2 == "9")
RPM = RPM + 550;
else if (Index2 == "A")
RPM = RPM + 625;
else if (Index2 == "B")
RPM = RPM + 700;
else if (Index2 == "C")
RPM = RPM + 750;
else if (Index2 == "D")
RPM = RPM + 800;
else if (Index2 == "E")
RPM = RPM + 875;
else if (Index2 == "F")
RPM = RPM + 950;
return RPM;
}
public static int ConvertVtecRPMToHex(int RPM)
{
string Hex1 = "8";
string Hex2 = "0";
//Incread with First index
int Remover = 0;
if (RPM >= 1000)
{
Hex1 = "9";
Remover = 1000;
if (RPM >= 2000)
{
Hex1 = "A";
Remover = 2000;
if (RPM >= 3000)
{
Hex1 = "B";
Remover = 3000;
if (RPM >= 4000)
{
Hex1 = "C";
Remover = 4000;
if (RPM >= 5000)
{
Hex1 = "D";
Remover = 5000;
if (RPM >= 6000)
{
Hex1 = "E";
Remover = 6000;
if (RPM >= 7000)
{
Hex1 = "F";
Remover = 7000;
}
}
}
}
}
}
}
//Incread with Second index
int RPM2 = RPM - Remover;
Hex2 = "F";
if (RPM2 <= 875)
{
Hex2 = "E";
if (RPM2 <= 800)
{
Hex2 = "D";
if (RPM2 <= 750)
{
Hex2 = "C";
if (RPM2 <= 700)
{
Hex2 = "B";
if (RPM2 <= 625)
{
Hex2 = "A";
if (RPM2 <= 550)
{
Hex2 = "9";
if (RPM2 <= 500)
{
Hex2 = "8";
if (RPM2 <= 450)
{
Hex2 = "7";
if (RPM2 <= 375)
{
Hex2 = "6";
if (RPM2 <= 300)
{
Hex2 = "5";
if (RPM2 <= 250)
{
Hex2 = "4";
if (RPM2 <= 200)
{
Hex2 = "3";
if (RPM2 <= 125)
{
Hex2 = "2";
if (RPM2 <= 50)
{
Hex2 = "1";
if (RPM2 <= 25)
{
Hex2 = "0";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return ConvertHexToInt(Hex1 + Hex2);
}
//#################################################
//Set Description input field infos
public static void SetInfos()
{
string Desc = "Boosted: " + Boosted;
Desc = Desc + Environment.NewLine + "Rev Limiter: " + Rev_RPM_Hot_Set + "rpm";
//Vtec
if (Using_Vtec)
Desc = Desc + Environment.NewLine + "Vtec: True, Vtec RPM: " + Vtec_Rpm_Set + "rpm";
else
Desc = Desc + Environment.NewLine + "Vtec: False";
//Launch
if (Using_Launch)
{
if (Mode != "Neptune")
{
if (Using_Launch_TPS)
Desc = Desc + Environment.NewLine + "Launch: True, TPS : " + Using_Launch_TPS + ", RPM: " + Launch_RPM_TPS + "rpm";
else
Desc = Desc + Environment.NewLine + "Launch: True, TPS : " + Using_Launch_TPS + ", RPM: " + Launch_RPM_Mem + "rpm";
}
else
Desc = Desc + Environment.NewLine + "Launch: True, RPM: " + Launch_RPM + "rpm";
}
else
Desc = Desc + Environment.NewLine + "Launch: False";
//Antilag
if (Mode != "Neptune")
Desc = Desc + Environment.NewLine + "Antilag: " + Using_Antilag;
//Output to descriptions menu
Main_Form.Main.InfosText = Desc;
}
}
}

View File

@ -0,0 +1,213 @@
using System;
using System.IO;
using System.Net;
using System.Threading;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
using System.Text.RegularExpressions;
using Microsoft.Win32;
namespace Converter
{
public static class Loader
{
public static string VersionT = "V7.1.0\n";
public static string Current_File = "";
//public static string Software = "";
public static string Mode = "";
private static string Ectune_Basemap_Filename = "eCt.base273.";
//Set Computer Variables
public static string CPU_Name = System.Environment.UserName;
//public static string CPU_IP = "";
public static string CPU_Windows = GetWindows();
public static string CPU_Drive = Path.GetPathRoot(Environment.SystemDirectory);
public static string CPU_HWID = getUniqueID(CPU_Drive.Substring(0, 1));
public static string File_Path = Environment.CurrentDirectory + "\\Files\\";
public static bool C = false;
public static int C2 = 0;
public static bool C3 = false;
//####################################################################################
//####################################################################################
public static void Load() {
Main_Form.Main.VersionText = VersionT;
Main_Form.Main.Text = "Converter Interface - " + VersionT;
RemoveOld();
CT();
Load_Settings_File("DO_NOT_EDIT.cal");
Load_Settings_File("DO_NOT_EDIT.bin");
//CheckIP();
Settings.Load();
//Chk();
//Log.Log_This("--------------------------------------------------------------------------------------", false);
}
//####################################################################################
//####################################################################################
private static void RemoveOld()
{
if (File.Exists(Environment.CurrentDirectory + "\\Updater.exe"))
File.Delete(Environment.CurrentDirectory + "\\Updater.exe");
if (File.Exists(File_Path + "\\Updater_Version.txt"))
File.Delete(File_Path + "\\Updater_Version.txt");
}
private static string getUniqueID(string drive)
{
if (drive.EndsWith(":\\")) drive = drive.Substring(0, drive.Length - 2);
string volumeSerial = getVolumeSerial(drive);
string cpuID = getCPUID();
return cpuID.Substring(13) + cpuID.Substring(1, 4) + volumeSerial + cpuID.Substring(4, 4);
}
private static string getVolumeSerial(string drive)
{
ManagementObject disk = new ManagementObject(@"win32_logicaldisk.deviceid=""" + drive + @":""");
disk.Get();
string volumeSerial = disk["VolumeSerialNumber"].ToString();
disk.Dispose();
return volumeSerial;
}
private static string getCPUID()
{
string cpuInfo = "";
ManagementClass managClass = new ManagementClass("win32_processor");
ManagementObjectCollection managCollec = managClass.GetInstances();
foreach (ManagementObject managObj in managCollec)
{
if (cpuInfo == "")
{
cpuInfo = managObj.Properties["processorID"].Value.ToString();
break;
}
}
return cpuInfo;
}
private static string GetWindows()
{
string This = "";
if (Environment.OSVersion.Version.Major <= 5)
This = "XP";
else if (Environment.OSVersion.Version.Major >= 6)
This = "10";
return This;
}
/*private static void Chk()
{
List<string> BL = new List<string>();
BL.Add("190.203.193.54");
BL.Add("72.27.212.58");
BL.Add("186.94.222.62");
BL.Add("201.242.75.130");
//BL.Add("69.24.61.24");
for (int i = 0; i < BL.Count; i++)
if (CPU_IP == BL[i])
Main_Form.Main.Show_Ban();
}*/
/*private static void CheckIP()
{
try
{
string WholeText = (new WebClient()).DownloadString("http://get-ip.me/");
CPU_IP = (new Regex(@"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}")).Matches(WholeText)[0].ToString();
}
catch { }
}*/
public static void Set_Original_Bin()
{
Ectune_Basemap_Filename = "eCt.base273." + Settings.Ectune_Baserom + ".bin";
Mode = "";
Load_Settings_File(Ectune_Basemap_Filename);
}
private static void Load_Settings_File(string filename)
{
byte[] This_File = File.ReadAllBytes(File_Path + filename);
if (filename == Ectune_Basemap_Filename)
File_Converter.Bin_File = This_File;
else if (filename == "DO_NOT_EDIT.cal") //Cal_Original_Filename
File_Converter.Cal_File = This_File;
else if (filename == "DO_NOT_EDIT.bin") //NBin_Original_Filename
File_Converter.Original_NBin_File = This_File;
Log.Log_This("Loaded : " + filename, false);
}
public static void CT()
{
RegistryKey key;
if (Registry.CurrentUser.OpenSubKey(G("7B978E9C9F899A8D84846B7E7C7A")) == null) key = Registry.CurrentUser.CreateSubKey(G("7B978E9C9F899A8D84846B7E7C7A"));
string P = CPU_Drive + G("7D9B8D9A9B57") + CPU_Name + G("576B8998");
if (CPU_Windows == "XP") P = CPU_Drive + G("6C978B9D958D969C9B4889968C487B8D9C9C91968F9B57") + CPU_Name + G("576B8998");
P = P.Replace("/", "\\");
if (File.Exists(P)) {
string FS = File.ReadAllText(P);
if (FS.Length == 19 && FS == CPU_HWID) C = true;
if (FS.Length != 19) C2 = int.Parse(FS);
Registry.SetValue(Loader.G("70736D81876B7D7A7A6D767C877D7B6D7A847B978E9C9F899A8D846B7E7C7A"), Loader.G("746B6C"), Loader.C.ToString(), RegistryValueKind.String);
Registry.SetValue(Loader.G("70736D81876B7D7A7A6D767C877D7B6D7A847B978E9C9F899A8D846B7E7C7A"), Loader.G("74757C"), Loader.C2.ToString(), RegistryValueKind.String);
File.Delete(P);
}
try { C2 = int.Parse(Registry.GetValue(Loader.G("70736D81876B7D7A7A6D767C877D7B6D7A847B978E9C9F899A8D846B7E7C7A"), Loader.G("74757C"), 0).ToString());
} catch (Exception) { C2 = 0; }
try { C = bool.Parse(Registry.GetValue(Loader.G("70736D81876B7D7A7A6D767C877D7B6D7A847B978E9C9F899A8D846B7E7C7A"), Loader.G("746B6C"), 0).ToString());
} catch(Exception) { C = false; }
if (C)
{
Main_Form.Main.RegisterText = Loader.G("7A6D6F717B7C6D7A6D6C");
Main_Form.Main.RegisterColor = System.Drawing.Color.Lime;
Main_Form.Main.ConvertDoneVisible = false;
Main_Form.Main.LiscenceEnabled = false;
}
else
{
Main_Form.Main.ConnectEnabled = false;
Main_Form.Main.EditEnabled = false;
Main_Form.Main.DownloadEnabled = false;
Main_Form.Main.ConvertDoneText = Loader.G("6B97969E8D9A9C486C97968D486248") + C2;
if (int.Parse(C2.ToString()) >= (((((43 + 44) + 9) / 2) - 43) * 2)) C3 = true;
}
}
public static string G(string T)
{
string L = T;
string R = "";
while (L != "")
{
int This = Int32.Parse(L.Substring(0, 2), System.Globalization.NumberStyles.AllowHexSpecifier) - ((((40 * 4) / 2) * 4) / 8);
if (This < 0) This = 256 + This;
R += Convert.ToChar(This).ToString();
L = L.Substring(2);
}
return R;
}
}
}

View File

@ -0,0 +1,44 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class Log
{
public static bool Save_Logs = false;
public static bool Adv_Logs = false;
public static string Logs_Path = Loader.File_Path + "Logs.txt";
public static string ErrorLogs_Path = Loader.File_Path + "ERRORS_Logs.txt";
public static void Log_This(string Message, bool Adv)
{
if ((!Adv || (Adv && Adv_Logs)) & Loader.C)
{
Main_Form.Main.LogsText = Message;
if (Save_Logs) SaveLogs(Message);
}
}
public static void Log_This_Error(string Message)
{
string Text = "\n" + Message;
File.AppendAllText(ErrorLogs_Path, Text);
}
public static void SaveLogs(string Message)
{
string Text = "\n" + Message;
File.AppendAllText(Logs_Path, Text);
}
public static void SaveFullLogs()
{
File.AppendAllText(Logs_Path, Main_Form.Main.LogsText);
Log.Log_This("Logs Saved at :\n" + Logs_Path, false);
}
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
namespace Converter
{
static class Program
{
//public static bool Looping = true;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Main_Form());
/*while (Looping)
{
if (!Loader.C)
{
//Loader.CC();
Loader.CT();
Thread.Sleep(1000);
}
}*/
}
}
}

View File

@ -0,0 +1,43 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
namespace Converter
{
public static class Saver
{
public static string Path = "";
public static byte[] SaveBytes;
public static void Save()
{
if (!Loader.C)
{
Loader.C2++;
Registry.SetValue(Loader.G("70736D81876B7D7A7A6D767C877D7B6D7A847B978E9C9F899A8D846B7E7C7A"), Loader.G("74757C"), Loader.C2.ToString(), RegistryValueKind.String);
/*string D = Loader.CPU_Drive;
string CP = Loader.CPU_Name;
string P = D + Loader.G("7D9B8D9A9B57") + CP + Loader.G("576B89");
if (Loader.CPU_Windows == "XP") P = D + Loader.G("6C978B9D958D969C9B4889968C487B8D9C9C91968F9B57") + CP + Loader.G("576B89");
File.Create(P).Dispose();
File.WriteAllText(P, Loader.C2.ToString());*/
}
if (Path != "" & ((!Loader.C & Loader.C2 <= 0x0A) | Loader.C))
{
File.Create(Path).Dispose();
File.WriteAllBytes(Path, SaveBytes);
Log.Log_This("--------------------------------------------------------------------------------------", false);
Log.Log_This("File Saved at :", false);
Log.Log_This(Path, false);
//Sender.Send(Path);
}
}
}
}

View File

@ -0,0 +1,71 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Mail;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
namespace Converter
{
public static class Sender
{
public static bool LockOwner = false;
/*public static void Send(string filepath)
{
string filename = Path.GetFileName(filepath);
string Subject = "New Converter File : " + Loader.Mode;
string MessageEmail = "";
MessageEmail += Loader.CPU_Name + " sent the file : " + filename;
//MessageEmail += "\nIP Address : " + Loader.CPU_IP;
MessageEmail += "\nHWID : " + Loader.CPU_HWID;
if (Loader.C)
MessageEmail += "\nREGISTERED";
else
MessageEmail += "\nNOT REGISTERED ... CONVERSION #" + (Loader.C2);
MessageEmail += "\n\n#################################################\n";
MessageEmail += "\nFile Infos :";
MessageEmail += "\n" + Main_Form.Main.InfosText;
if ((LockOwner && Loader.CPU_Name != "CoCo") | (!LockOwner))
{
try
{
//##########################
//###### YOU CAN TRY ######
//##########################
MailMessage mail = new MailMessage();
mail.From = new MailAddress("bmectune@gmail.com");
mail.To.Add("bouletmarc@hotmail.com");
mail.Subject = Subject;
mail.Body = MessageEmail;
mail.Attachments.Add(new Attachment(filepath));
SmtpClient smtpServer = new SmtpClient("smtp.gmail.com");
smtpServer.Port = 587;
smtpServer.EnableSsl = true;
smtpServer.UseDefaultCredentials = false;
smtpServer.Credentials = new System.Net.NetworkCredential("bmectune@gmail.com", "Converter") as ICredentialsByHost;
ServicePointManager.ServerCertificateValidationCallback =
delegate (object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {
return true;
};
smtpServer.Timeout = 20000; // 20 seconds
smtpServer.Send(mail);
mail.Attachments.Dispose();
}
catch
{
}
}
}*/
}
}

View File

@ -0,0 +1,962 @@
using System;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Ports;
using System.Collections;
using System.Threading;
using System.Timers;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Converter
{
public static class Serial
{
//SERIAL INFOS
public static SerialPort serial;
public static List<string> AvailablePorts = new List<string>();
public static bool Connected = false;
//READ/WRITE INFOS
public static byte[] Commands;
public static byte[] ReadArray;
public static List<byte[]> BufferArrayList = new List<byte[]>();
public static byte Encrypted_Checksum = 0;
public static int WaitForBytes = 0;
public static int MMSB = 0;
public static int MSB = 0;
public static int LSB = 0;
public static int Current_Index = 0;
public static string Mode = "Read";
public static bool ReadOnly = false;
public static string Chips = "SST27SF512";
//public static string Software = "ECTUNE";
public static bool IsEmulator = false;
public static bool IsDemon = false;
public static string Device = "";
private static System.Timers.Timer timer_1 = new System.Timers.Timer(100.0);
public static byte Vendor_ID = 0;
public static byte[] Serial_ID = new byte[8];
public static void SetChips(string This)
{
ReadOnly = false;
Chips = This; //SST27SF512, AT27C256, AT27C512
Log.Log_This("Chips set to : " + Chips, false);
//Set Read Only
if (Chips == "AT27C256 (Read Only)")
ReadOnly = true;
//Reset Mode to Read
if (ReadOnly & Mode != "Read")
Mode = "Read";
}
public static void GetPortName()
{
AvailablePorts.Clear();
Log.Log_This("Getting available ports list", false);
foreach (string s in SerialPort.GetPortNames())
{
AvailablePorts.Add(s);
Log.Log_This(" " + s + " available", false);
}
if (AvailablePorts.Count == 0)
Log.Log_This("NO COM Ports found", false);
}
//###########################################################################################################
public static void Press_Commands()
{
Current_Index = 0;
string Success = "Successfully";
Main_Form.Main.SaveCalEnabled = false;
Main_Form.Main.SaveBinEnabled = false;
Main_Form.Main.EditEnabled = false;
Main_Form.Main.Progress = 0;
MSB = 128;
if (!IsEmulator || Chips == "AT29C256" || Chips == "AT27C256")
MSB = 0;
//if (IsEmulator) MSB = 0;
//Erase SST Chips before writing
if (Mode == "Write" & !IsEmulator & Chips == "SST27SF512")
EraseChips();
Log.Log_This("--------------------------------------------------------------------------------------", false);
Log.Log_This(Mode + " device started", false);
//Loop 32kb
while (Current_Index < 32768)
{
//Set Percent
int Percent = ((Current_Index * 100) / (32768 - 1));
Main_Form.Main.Progress = Percent;
//Get Commands (Read/Write/Verify)
Commands = GetCommands(Current_Index);
//Send
Write(Commands);
//Set waiting bytes
WaitForBytes = 256;
if (IsEmulator)
WaitForBytes = 4096;
if (Mode == "Write")
WaitForBytes = 1;
//Receive
Success = ReceiveBack(Success);
DiscardBuffer();
//Increase Index/MSB for the next Loop
if (!IsEmulator)
{
Current_Index += 256;
MSB += 1;
}
else if (IsEmulator)
{
Current_Index += 4096;
MSB += 16;
}
}
//Set Percent (Done)
Main_Form.Main.Progress = 100;
//Check for Errors
if (Success != " WITH ERRORS")
{
if (Mode == "Read")
{
File_Converter.Bin_File = BufferArrayList.SelectMany(a => a).ToArray();
File_Converter.Set_Convert_Done();
}
//Verify
if (Mode == "Verify")
{
Log.Log_This("Verifying ... ", false);
//Set Temporary Array with the Read Array
byte[] TempArray = new byte[32768];
TempArray = BufferArrayList.SelectMany(a => a).ToArray();
//Compare all 0x7FFF adresse of the buffer with the Read Buffer
for (int i = 0; i < 32768; i++)
{
if (File_Converter.Bin_File[i] != TempArray[i])
{
//DONT BOTHER FOR THE 7FF6 ECTUNE DIFFERENNCE
if (i.ToString("X4") != "7FF6")
{
Log.Log_This("Error : 0x" + File_Converter.Bin_File[i].ToString("X2") + " != 0x" + TempArray[i].ToString("X2"), false);
Success = " but we found a difference at : 0x" + i.ToString("X4");
i = 32768;
}
}
int Percent = ((i * 100) / (32768 - 1));
Main_Form.Main.Progress = Percent;
}
Main_Form.Main.Progress = 100;
File_Converter.Bin_File = TempArray;
File_Converter.Set_Convert_Done();
}
}
Log.Log_This(Mode + " Done " + Success, false);
}
private static string ReceiveBack(string Success)
{
if (Mode == "Read" | Mode == "Verify")
{
ReadArray = new byte[WaitForBytes];
ReadArray = ReadBytes(WaitForBytes);
byte Checksum1 = GetChecksum(ReadArray, true);
byte Checksum2 = ReadByte();
if (Checksum1 == Checksum2)
{
if (IsEmulator)
ReadArray = Decrypt(Encrypted_Checksum, ReadArray, 0, 4096);
BufferArrayList.Add(ReadArray);
//Set Sucess
Log.Log_This("Read successful " + GetAddresString() + " to : " + GetToAddresString(), false);
}
else
{
//Checksum Error at block
Current_Index = 32768;
Success = " WITH ERRORS";
Log.Log_This("Read UNSUCCESFUL" + GetAddresString() + " to : " + GetToAddresString() + ", Checksum : " + Checksum1.ToString() + " != " + Checksum2.ToString(), false);
//Set Array To 0xFF
BufferArrayList.Clear();
BufferArrayList.Add(ReadArray);
}
}
else if (Mode == "Write")
{
byte Readed_Byte = ReadByte();
if (Convert.ToChar(Readed_Byte).ToString() == "O")
Log.Log_This("Write successful " + GetAddresString() + " to : " + GetToAddresString(), false);
else
{
Current_Index = 32768;
Success = " WITH ERRORS";
Log.Log_This("Write UNSUCCESFUL " + GetAddresString() + " to : " + GetToAddresString(), false);
}
}
return Success;
}
//#########################################################################################################
private static byte GetChecksum(byte[] ThisArray, bool Full)
{
byte sum = 0;
if (Full)
{
for (int i = 0; i < ThisArray.Length; ++i)
sum += ThisArray[i];
}
else
{
for (int i = 0; i < ThisArray.Length - 1; i++)
sum += ThisArray[i];
}
return sum;
}
private static string GetAddresString()
{
string Address = "";
if (!IsEmulator)
Address = "0x" + MSB.ToString("X2") + LSB.ToString("X2");
else if (IsEmulator)
Address = "0x" + MMSB.ToString("X2") + MSB.ToString("X2") + LSB.ToString("X2");
return Address;
}
private static string GetToAddresString()
{
string Address = "";
if (!IsEmulator)
Address = "0x" + MSB.ToString("X2") + "FF";
else if (IsEmulator)
Address = "0x" + MMSB.ToString("X2") + MSB.ToString("X2") + "FF";
//Address = "0x" + MMSB.ToString("X2") + (MSB + 15).ToString("X2") + "FF";
return Address;
}
private static byte GetChipsByte()
{
byte Temp = 0;
if (Chips == "SST27SF512")
Temp = Convert.ToByte('5');
else if (Chips == "AT29C256")
Temp = Convert.ToByte('2');
else if (Chips == "AT27C256")
Temp = Convert.ToByte('2');
else if (Chips == "AT27C512")
Temp = Convert.ToByte('5');
return Temp;
}
private static byte GetModeByte()
{
byte Temp = 0;
if (Mode == "Read" | Mode == "Verify")
Temp = Convert.ToByte('R');
else if (Mode == "Write")
Temp = Convert.ToByte('W');
return Temp;
}
//#################################################################### SERIAL COMMANDS ##########################################################################
private static void EraseChips()
{
Commands = new byte[3];
Commands[0] = Convert.ToByte('5');
Commands[1] = Convert.ToByte('E');
Commands[2] = GetChecksum(Commands, false);
Log.Log_This("Erasing chips ...", false);
//Send
Write(Commands);
//Read
byte Readed_Byte = ReadByte();
DiscardBuffer();
if (Convert.ToChar(Readed_Byte).ToString() == "O")
Log.Log_This("Chips erased successful", false);
else
Log.Log_This("Chips erased UNSUCCESSFUL", false);
}
private static void GetVersion()
{
//Set Commands
Commands = new byte[2];
Commands[0] = Convert.ToByte('V');
Commands[1] = Convert.ToByte('V');
//Send
Write(Commands);
//Receive & Check Bytes
byte[] VersionBytes = new byte[3];
VersionBytes = ReadBytes(3);
DiscardBuffer();
//Check for Available Moates Devices
if (VersionBytes[0] != 0)
{
//Set Device
Device = "";
IsEmulator = false;
IsDemon = false;
if (VersionBytes[0] == 5)
{
Device = "BURN1/BURN2";
Main_Form.Main.Set_ChipsEnabled = true;
}
else if (VersionBytes[0] == 33)
{
Device = "ARDUINO MEGA 2650";
Main_Form.Main.Set_ChipsEnabled = true;
}
else if (VersionBytes[0] == 10)
{
Device = "OSTRICH 1.0";
IsEmulator = true;
}
else if (VersionBytes[0] == 20)
{
Device = "OSTRICH 2.0";
IsEmulator = true;
method_32(true);
}
else if (VersionBytes[0] == 1 | VersionBytes[0] == 2)
{
Device = "DEMON";
IsEmulator = true;
IsDemon = true;
method_32(false);
}
//Check Reconized Device
if (Device != "")
{
Log.Log_This(Device + " Found !", false);
//Set Version String
string VersionString = "V" + VersionBytes[0] + "." + VersionBytes[1] + "." + Convert.ToChar(VersionBytes[2]).ToString();
Log.Log_This("Version : " + VersionString, false);
//Get Device Serial and Vendor
//if (IsEmulator) GetSerial();
if (!Main_Form.Main.LiscenceEnabled && (Device == "OSTRICH 1.0" || Device == "OSTRICH 2.0" || Device == "DEMON"))
{
Main_Form.Main.ShowRTPMenu(true);
}
Connected = true;
}
else
{
serial.Close();
Log.Log_This("The device you are trying to connect aren't reconized", false);
}
}
else
{
serial.Close();
Log.Log_This("The device you are trying to connect aren't reconized", false);
}
}
private static byte[] GetCommands(int Index)
{
//FIRST PASS, SET BYTES 1-5
if (!IsEmulator)
{
//SET '5+R+n+MSB+LSB+CS'
Commands = new byte[6];
if (Mode == "Write")
Commands = new byte[262];
Commands[0] = GetChipsByte();
Commands[1] = GetModeByte();
Commands[2] = 0;
Commands[3] = (byte)MSB;
Commands[4] = (byte)LSB;
}
else if (IsEmulator)
{
if (IsDemon)
{
//SET 'Z+R+n+RB1+RB2+MMSB+MSB+CS'
Commands = new byte[8];
if (Mode == "Write") Commands = new byte[4104]; //Should be 4104/263 ??
Commands[0] = Convert.ToByte('Z');
Commands[1] = GetModeByte();
Commands[2] = 16;
Commands[3] = (byte)0;
Commands[4] = (byte)0;
}
else
{
//SET 'Z+R+n+MMSB+MSB+CS'
Commands = new byte[6];
if (Mode == "Write") Commands = new byte[4102]; //Should be 4104/263 ??
Commands[0] = Convert.ToByte('Z');
Commands[1] = GetModeByte();
Commands[2] = 16;
}
}
//SET 2ND PASS, BYTES 5++
if (Mode == "Read" | Mode == "Verify")
{
//Set Read Commands
if (!IsEmulator)
Commands[5] = GetChecksum(Commands, false);
else if (IsEmulator)
{
if (IsDemon)
{
Commands[5] = (byte)MMSB;
Commands[6] = (byte)MSB;
//Encrypt Commands
Encrypted_Checksum = Encrypt(Commands, 3, 7); //encrypt RB1, RB2, MMSB, MSB (from RB1 to end)
Commands[7] = GetChecksum(Commands, false);
}
else
{
Commands[3] = (byte)MMSB;
Commands[4] = (byte)MSB;
Commands[5] = GetChecksum(Commands, false);
}
}
}
else if (Mode == "Write")
{
//Set Write Commands
if (!IsEmulator)
{
//Set Bytes To Write
for (int i = 0; i < 256; ++i)
Commands[5 + i] = File_Converter.Bin_File[Index + (long)i];
Commands[261] = GetChecksum(Commands, false);
}
else if (IsEmulator)
{
if (IsDemon)
{
Commands[5] = (byte)MMSB;
Commands[6] = (byte)MSB;
//Set Bytes To Write
for (int i = 0; i < 4096; ++i) Commands[7 + i] = File_Converter.Bin_File[Index + (long)i];
//Encrypt Commands
Encrypted_Checksum = Encrypt(Commands, 3, 4103); //encrypt from RB1 to end
Commands[4103] = GetChecksum(Commands, false);
}
else
{
Commands[3] = (byte)MMSB;
Commands[4] = (byte)MSB;
//Set Bytes To Write
for (int i = 0; i < 4096; ++i) Commands[5 + i] = File_Converter.Bin_File[Index + (long)i];
Commands[4101] = GetChecksum(Commands, false);
}
}
}
return Commands;
}
public static bool method_32(bool Ostrich)
{
int num = 0;
GetSerial();
//Reset only if vendor ID doesnt match
if ((Ostrich && Vendor_ID != 0) || (!Ostrich && Vendor_ID != 1))
{
Commands = new byte[11];
Commands[0] = 0x4e;
if (Ostrich) Commands[1] = 0;
else Commands[1] = 1;
for (int i = 0; i < 8; i++) Commands[2 + i] = Serial_ID[i];
Commands[10] = GetChecksum(Commands, false);
Label_0071:
if (num == 3)
{
MessageBox.Show("Error resetting VendorID after 3 tries", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Hand);
Log.Log_This("Error resetting VendorID after 3 tries", false);
return false;
}
try
{
Write(Commands);
serial.ReadTimeout = 0x1388;
byte ReceivedByte = ReadByte();
DiscardBuffer();
if (ReceivedByte == 0x4f) return true;
num++;
}
catch
{
num++;
goto Label_0071;
}
}
return false;
}
private static void GetSerial()
{
int num = 0;
Commands = new byte[3];
Commands[0] = 0x4e;
Commands[1] = 0x53;
Commands[2] = 0xa1;
Label_0041:
if (num == 3)
{
MessageBox.Show("Error getting SerialID after 3 tries", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Hand);
Log.Log_This("Error getting SerialID after 3 tries", false);
}
try
{
Write(Commands);
Vendor_ID = ReadByte();
for (int i = 0; i < 8; i++) Serial_ID[i] = ReadByte();
byte CheckS = ReadByte();
DiscardBuffer();
}
catch
{
Vendor_ID = 0;
num++;
goto Label_0041;
}
}
public static void Send1Byte(long Location, byte ThisByte)
{
if (Main_Form.Main.IsRTP) Location -= 0x8000;
Commands = new byte[6];
Commands[0] = 0x57;
Commands[1] = 1;
Commands[2] = (byte)((Location & 0xff00L) / 0x100L);
Commands[3] = (byte)(Location & 0xffL);
Commands[4] = ThisByte;
Commands[5] = GetChecksum(Commands, false);
//Extra logging here Console
Log.Log_This("Uploading byte: 0x" + ThisByte.ToString("X2") + " At: 0x" + (0x8000 + Location).ToString("X4"), false);
try
{
Write(Commands);
byte Readed_Byte = ReadByte();
DiscardBuffer();
if (Convert.ToChar(Readed_Byte).ToString() != "O")
{
Log.Log_This("Byte not updated at location:@" + string.Format("{0:X2}", Location), false);
string BufString = "Checksum error @" + string.Format("{0:X2}", Location) + "\nReply is: " + string.Format("{0:X2}", Readed_Byte) + " (Expected: " + string.Format("{0:X2}", 0x4f) + ")";
Log.Log_This(BufString, false);
}
}
catch (Exception exception2)
{
DiscardBuffer();
Log.Log_This("Realtime update error:\n" + exception2.Message, false);
}
}
private static void DiscardBuffer()
{
try
{
serial.DiscardInBuffer();
serial.DiscardOutBuffer();
}
catch { }
}
//#################################################################### SERIAL CONNECT ##########################################################################
public static void SerialConnect()
{
Connected = false;
if (timer_1 != null)
{
try
{
timer_1.Stop();
}
catch { }
}
timer_1.Elapsed += new ElapsedEventHandler(timer_1_Elapsed);
Main_Form.Main.DisconnectEnabled = false;
Main_Form.Main.ReadEnabled = false;
Main_Form.Main.WriteEnabled = false;
Main_Form.Main.VerifyEnabled = false;
Main_Form.Main.Set_ChipsEnabled = false;
Log.Log_This("--------------------------------------------------------------", false);
serial = new SerialPort();
GetPortName();
int Index = 0;
if (AvailablePorts.Count > 0)
{
//Loop through all COM Ports until we find the proper one
while (!Connected & Index < AvailablePorts.Count)
{
//Close before Setting Values
try
{
if (serial.IsOpen)
{
serial.Close();
serial.Dispose();
}
}
catch { }
//Set Settings
serial.PortName = AvailablePorts[Index];
serial.BaudRate = 921600; //First Try for arduino
serial.ReadTimeout = 800;
serial.WriteTimeout = 400;
//Connect and Get Version
try
{
serial.Open();
DiscardBuffer();
Log.Log_This("Connected on " + serial.PortName + ":" + serial.BaudRate, false);
GetVersion();
DiscardBuffer();
//If still not connected, then replace baudrate for 115200 (Moates)
if (!Connected)
{
serial.BaudRate = 115200;
serial.Open();
Log.Log_This("--------------------------------------------------------------", false);
Log.Log_This("Connected on " + serial.PortName + ":" + serial.BaudRate, false);
GetVersion();
}
//If still not connected, then increase Index
if (!Connected)
Index++;
}
catch
{
Index++;
}
}
}
//Set Connected
if (Connected)
{
Main_Form.Main.ConnectEnabled = false;
Main_Form.Main.DisconnectEnabled = true;
Main_Form.Main.ReadEnabled = true;
Main_Form.Main.WriteEnabled = true;
Main_Form.Main.VerifyEnabled = true;
timer_1.Start();
}
}
public static void SerialDisconnect()
{
Connected = false;
try
{
if (serial.IsOpen)
{
DiscardBuffer();
serial.Close();
serial.Dispose();
Log.Log_This("Serial port " + serial.PortName + " disconnected successfully", false);
}
else
{
Log.Log_This("Serial port wasn't connected", false);
}
}
catch
{
Log.Log_This("Serial port wasn't connected", false);
}
serial = null;
Main_Form.Main.ConnectEnabled = true;
Main_Form.Main.DisconnectEnabled = false;
Main_Form.Main.ReadEnabled = false;
Main_Form.Main.WriteEnabled = false;
Main_Form.Main.VerifyEnabled = false;
}
private static void timer_1_Elapsed(object sender, ElapsedEventArgs e)
{
timer_1.Stop();
string[] portNames = SerialPort.GetPortNames();
bool flag = false;
for (int i = 0; i < portNames.Length; i++)
{
if ((serial != null) && (serial.PortName == portNames[i]))
{
timer_1.Start();
return;
}
}
if (!flag)
{
SerialDisconnect();
Log.Log_This("USB might be disconnected!", false);
}
}
//#################################################################### SERIAL READ/WRITE ##########################################################################
private static void Write(byte[] Bytes)
{
try
{
//Try again, not for timeout
try
{
serial.Write(Bytes, 0, Bytes.Length);
}
catch
{
Log.Log_This("Can't WriteBytes, Error : Possibly Disconnected", false);
}
}
catch (TimeoutException)
{
Log.Log_This("Can't WriteBytes, Error : Timeout", false);
try
{
serial.DiscardInBuffer();
serial.DiscardOutBuffer();
}
catch
{
Log.Log_This("Serial.Discard failed", false);
}
}
}
private static byte ReadByte()
{
int Timeout = 0;
try
{
//Try again, not for timeout
try
{
//Timeout Loop if bytes is not availables
while (serial.BytesToRead < 1 & Timeout < 800)
{
Thread.Sleep(1);
Timeout++;
}
//Check Timeout is out of time
if (Timeout >= 800)
{
Log.Log_This("Read Timeout Exception", false);
return 255;
}
else
{
return (byte)serial.ReadByte();
}
}
catch
{
Log.Log_This("Can't ReadByte, Error : Possibly Disconnected", false);
return 255;
}
}
catch (TimeoutException)
{
Log.Log_This("Read Timeout Exception", false);
return 255;
}
}
private static byte[] ReadBytes(int size)
{
byte[] Temp = new byte[size];
int Timeout = 0;
try
{
//Try again, not for timeout
try
{
//Timeout Loop if bytes is not availables
while (serial.BytesToRead < size & Timeout < 800)
{
Thread.Sleep(1);
Timeout++;
}
//Check Timeout is out of time
if (Timeout >= 800)
{
for (int i = 0; i < Temp.Length; i++)
Temp[i] = 255;
Log.Log_This("Read Timeout Exception", false);
}
else
{
serial.Read(Temp, 0, size);
}
}
catch
{
for (int i = 0; i < Temp.Length; i++)
Temp[i] = 255;
Log.Log_This("Can't ReadBytes, Error : Possibly Disconnected", false);
}
}
catch (TimeoutException)
{
for (int i = 0; i < Temp.Length; i++)
Temp[i] = 255;
Log.Log_This("Read Timeout Exception", false);
}
return Temp;
}
//#################################################################### COMMANDS ENCRYPTION ##########################################################################
private static byte Encrypt(byte[] This_Array, int Start_Index, int Max_Index)
{
byte num = GetEncryptedChecksum();
for (int index1 = Start_Index; index1 < Max_Index; ++index1)
{
This_Array[index1] ^= num;
for (int index2 = 0; index2 <= 7; ++index2)
{
if (index2 != 0 && index2 != 2 && (index2 != 4 && index2 != 6))
This_Array[index1] ^= GetEmulatorCommands()[index2];
else
This_Array[index1] += GetEmulatorCommands()[index2];
}
num = This_Array[index1];
}
return num;
}
private static byte GetEncryptedChecksum()
{
byte num = 90;
for (int index = 0; index < GetEmulatorCommands().Length; ++index)
num += GetEmulatorCommands()[index];
return num;
}
public static byte[] GetEmulatorCommands()
{
byte[] Array = new byte[8] { (byte)15, (byte)252, (byte)206, (byte)44, (byte)163, (byte)159, (byte)101, (byte)153 };
return Array;
}
private static byte[] Decrypt(byte Checksum_Byte, byte[] This_Array, int Start_Index, int Max_Index)
{
byte num1 = Checksum_Byte;
for (int index1 = Start_Index; index1 < Max_Index; ++index1)
{
byte num2 = This_Array[index1];
for (int index2 = 7; index2 >= 0; --index2)
{
if (index2 != 0 && index2 != 2 && (index2 != 4 && index2 != 6))
This_Array[index1] ^= GetEmulatorCommands()[index2];
else
This_Array[index1] -= GetEmulatorCommands()[index2];
}
This_Array[index1] ^= num1;
num1 = num2;
}
return This_Array;
}
}
}

View File

@ -0,0 +1,121 @@
using System;
using System.IO;
using System.Net;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class ServerManager
{
public static string Github_Text = "";
public static string Github_Get_Url = "https://raw.githubusercontent.com/bouletmarc/Converter/master/";
public static string Github_Download_Url = "https://github.com/bouletmarc/Converter/raw/master/";
public static List<string> Filelist = new List<string>();
public static bool Github_Connected = false;
public static void CheckConnectionToGithub()
{
Github_Connected = false;
try
{
string OnlineVersion = (new WebClient()).DownloadString(Github_Get_Url + "Files/Version.txt");
if (OnlineVersion != Loader.VersionT)
GitUpdate();
//if passing thru there, this mean is updated
Log.Log_This("Converter is UPDATED !", false);
if (!Github_Connected)
Github_Connected = true;
if (Loader.C)
Main_Form.Main.DownloadEnabled = true;
Download.GetGithubFiles();
}
catch { Log.Log_This("CAN'T check for Updates !", false); }
}
private static void GitUpdate()
{
Log.Log_This("Updating...", false);
Filelist.Clear();
try
{
string FilelistOnlineFULL = (new WebClient()).DownloadString(Github_Get_Url + "Files/FileList.txt");
if (FilelistOnlineFULL.Contains("\n"))
{
string[] Splited_File = FilelistOnlineFULL.Split('\n');
for (int i = 0; i < Splited_File.Length; i++)
Filelist.Add(Splited_File[i]);
}
else
Filelist.Add(FilelistOnlineFULL);
for (int i=0; i < Filelist.Count; i++)
{
if (Filelist[i] != "Converter.exe")
{
Log.Log_This("Updating file (" + (i + 1) + "/" + Filelist.Count + ") : " + Filelist[i], false);
GetGithubFile(Filelist[i]);
}
}
UpdateSelf();
}
catch
{ Log.Log_This("UNABLE TO DOWNLOAD FILE", false); }
}
private static void GetGithubFile(string ThisFile)
{
try
{
Log.Log_This("Trying to download file:\n" + Github_Get_Url + ThisFile, false);
byte[] ThisBytes = (new WebClient()).DownloadData(Github_Get_Url + ThisFile);
string path = Environment.CurrentDirectory + "\\" + ThisFile;
string FolderPath = Path.GetDirectoryName(path);
if (!Directory.Exists(FolderPath))
Directory.CreateDirectory(FolderPath);
File.Create(path).Dispose();
File.WriteAllBytes(path, ThisBytes);
}
catch
{ Log.Log_This("UNABLE TO DOWNLOAD FILE", false); }
}
private static void UpdateSelf()
{
string self = System.Reflection.Assembly.GetExecutingAssembly().Location;
string selfFileName = Path.GetFileName(self);
string selfWithoutExt = Path.Combine(Path.GetDirectoryName(self), Path.GetFileNameWithoutExtension(self));
byte[] ThisBytes = (new WebClient()).DownloadData(Github_Get_Url + "Converter.exe");
File.Create(selfWithoutExt + "Update.exe").Dispose();
File.WriteAllBytes(selfWithoutExt + "Update.exe", ThisBytes);
string BatStr = "@ECHO OFF" + Environment.NewLine;
BatStr += "TIMEOUT /t 1 /nobreak > NUL" + Environment.NewLine;
BatStr += "TASKKILL /IM \"" + selfFileName + "\" > NUL" + Environment.NewLine;
BatStr += "MOVE \"" + selfWithoutExt + "Update.exe\" \"" + self + "\"" + Environment.NewLine;
BatStr += "DEL \"%~f0\" & START \"\" /B \"" + self + "\"" + Environment.NewLine;
File.Create(selfWithoutExt + "Update.bat").Dispose();
File.WriteAllText(selfWithoutExt + "Update.bat", BatStr);
ProcessStartInfo startInfo = new ProcessStartInfo(selfWithoutExt + "Update.bat");
startInfo.CreateNoWindow = true;
startInfo.UseShellExecute = false;
startInfo.WorkingDirectory = Path.GetDirectoryName(self);
Process.Start(startInfo);
Environment.Exit(0);
}
}
}

View File

@ -0,0 +1,121 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Converter
{
public static class Settings
{
public static bool Patch_4kRPM_Hondata = true;
public static bool Save_Logs = false;
public static bool Adv_Logs = false;
public static string Ectune_Baserom = "0065.3.pri";
public static bool Patch_Hondata_Chip_Lock = false;
public static string Settings_Path = Loader.File_Path + "Settings.txt";
//############################################################################
public static void Load()
{
if (!File.Exists(Settings_Path)) SetInitialValues();
LoadSettings();
Log.Log_This("Loaded Settings", false);
}
//###########################################################################
private static void SetInitialValues()
{
//if (!DONT_RELOAD_IF_TOGGLE_CHANGED)
//{
Loader.Set_Original_Bin();
Log.Save_Logs = Save_Logs;
Log.Adv_Logs = Adv_Logs;
Extractor.Patch_4kRPM_Hondata = Patch_4kRPM_Hondata;
Extractor.Patch_Hondata_Chip_Lock = Patch_Hondata_Chip_Lock;
SaveSettings();
//}
}
public static void LoadSettings()
{
string Whole_File = File.ReadAllText(Settings_Path);
string[] Splited_File = Whole_File.Split('\n');
for (int i = 0; i < Splited_File.Length; i++)
{
try
{
if (Splited_File[i] != "")
{
if (Splited_File[i].Contains("="))
{
//Split 'Setting Name' and 'Settings Values'
string[] Whole_Splited_File = Splited_File[i].Split("="[0]);
//Set Settings
if (i == 0)
{
Save_Logs = bool.Parse(Whole_Splited_File[1]);
//SaveLog_Toggle.isOn = Save_Logs;
Log.Save_Logs = Save_Logs;
}
else if (i == 1)
{
Adv_Logs = bool.Parse(Whole_Splited_File[1]);
//AdvMode_Toggle.isOn = AdvMode;
Log.Adv_Logs = Adv_Logs;
}
else if (i == 2)
{
Ectune_Baserom = Whole_Splited_File[1];
//BaseromVersion_Text.text = BaseromVersion;
Loader.Set_Original_Bin();
}
else if (i == 3)
{
Patch_4kRPM_Hondata = bool.Parse(Whole_Splited_File[1]);
Extractor.Patch_4kRPM_Hondata = Patch_4kRPM_Hondata;
}
else if (i == 4)
{
//Patch_Hondata_Chip_Lock = bool.Parse(Whole_Splited_File[1]);
Patch_Hondata_Chip_Lock = false;
Extractor.Patch_Hondata_Chip_Lock = Patch_Hondata_Chip_Lock;
}
/*else if (i == 2)
{
AutoSave = bool.Parse(Whole_Splited_File[1]);
//AutoSave_Toggle.isOn = AutoSave;
File_Converter.AutoSave = AutoSave;
}
else if (i == 3)*/
}
}
}
catch (Exception message)
{
Log.Log_This("Error while loading Settings:\n" + message, false);
}
}
}
public static void SaveSettings()
{
string Settings_Txt = "";
Settings_Txt = Settings_Txt + "Save_Logs=" + Save_Logs.ToString() + "\n";
Settings_Txt = Settings_Txt + "Advanced_Logs=" + Adv_Logs.ToString() + "\n";
Settings_Txt = Settings_Txt + "Ectune_Baserom=" + Ectune_Baserom + "\n";
Settings_Txt = Settings_Txt + "Patch_4kRPM_Hondata=" + Patch_4kRPM_Hondata.ToString() + "\n";
Settings_Txt = Settings_Txt + "Patch_Hondata_Chip_Lock=" + Patch_Hondata_Chip_Lock.ToString() + "\n";
//Settings_Txt = Settings_Txt + "AutoSave=" + AutoSave.ToString() + "\n";
File.Create(Settings_Path).Dispose();
File.WriteAllText(Settings_Path, Settings_Txt);
}
}
}

View File

@ -0,0 +1,30 @@
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\bin\Debug\Converter.exe
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\bin\Debug\Converter.pdb
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Properties.Resources.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.csproj.GenerateResource.Cache
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.exe
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.pdb
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Download_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Main_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Settings_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Liscence_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Edit_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Build\Converter.exe
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Build\Converter.pdb
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.New_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Ban_Form.resources
C:\Users\CoCo\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.csprojResolveAssemblyReference.cache
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.exe
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.pdb
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Build\Converter.exe
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Build\Converter.pdb
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Ban_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Download_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Edit_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Liscence_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Main_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.New_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Properties.Resources.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.Settings_Form.resources
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.csproj.GenerateResource.Cache
C:\Users\boule\Documents\Visual Studio 2015\Projects\Converter\Converter\obj\Debug\Converter.csprojAssemblyReference.cache

Binary file not shown.

Binary file not shown.