V1.1.0 - More Definitions added
This commit is contained in:
parent
1f3439e1a8
commit
81e5d6ec45
|
@ -341,9 +341,10 @@ internal class ClassEditor
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check if table size have more than 1x roms (or 1column if inverted) ... aka if it's a 3D table
|
//Check if table size have more than 1x roms (or 1column if inverted) ... aka if it's a 3D table
|
||||||
bool IsMultiTable = false;
|
bool IsMultiTable = true;
|
||||||
|
/*bool IsMultiTable = false;
|
||||||
if (TableSize[1] > 1 && !IsInverted) IsMultiTable = true;
|
if (TableSize[1] > 1 && !IsInverted) IsMultiTable = true;
|
||||||
if (TableSize[0] > 1 && IsInverted) IsMultiTable = true;
|
if (TableSize[0] > 1 && IsInverted) IsMultiTable = true;*/
|
||||||
|
|
||||||
if (IsMultiTable)
|
if (IsMultiTable)
|
||||||
{
|
{
|
||||||
|
@ -354,6 +355,8 @@ internal class ClassEditor
|
||||||
if (IsInverted)
|
if (IsInverted)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < TableSize[1]; i++)
|
for (int i = 0; i < TableSize[1]; i++)
|
||||||
|
{
|
||||||
|
if (ROMLocationX != 0)
|
||||||
{
|
{
|
||||||
double num = 0;
|
double num = 0;
|
||||||
if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + i);
|
if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + i);
|
||||||
|
@ -364,6 +367,11 @@ internal class ClassEditor
|
||||||
if (ThisFormatX == "") HeaderStr = DoMath(num, ThisMathX, false).ToString();
|
if (ThisFormatX == "") HeaderStr = DoMath(num, ThisMathX, false).ToString();
|
||||||
Editortable_0.dataGridView_0.Columns.Add(HeaderStr, HeaderStr);
|
Editortable_0.dataGridView_0.Columns.Add(HeaderStr, HeaderStr);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Editortable_0.dataGridView_0.Columns.Add(RowHeaderString, RowHeaderString);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -393,9 +401,13 @@ internal class ClassEditor
|
||||||
//Rows(X) Math
|
//Rows(X) Math
|
||||||
if (IsInverted)
|
if (IsInverted)
|
||||||
{
|
{
|
||||||
Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = HeaderStringList[num10];
|
string ThisHeaderVal = HeaderStringList[num10];
|
||||||
|
if (ThisHeaderVal == "") ThisHeaderVal = RowHeaderString;
|
||||||
|
Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = ThisHeaderVal;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (ROMLocationX != 0)
|
||||||
{
|
{
|
||||||
double num = 0;
|
double num = 0;
|
||||||
if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + num10);
|
if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + num10);
|
||||||
|
@ -403,6 +415,11 @@ internal class ClassEditor
|
||||||
if (ThisFormatX != "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(ThisFormatX);
|
if (ThisFormatX != "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(ThisFormatX);
|
||||||
if (ThisFormatX == "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString();
|
if (ThisFormatX == "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = RowHeaderString;
|
||||||
|
}
|
||||||
|
}
|
||||||
num10++;
|
num10++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -442,7 +459,7 @@ internal class ClassEditor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//##############################################
|
//##############################################
|
||||||
else
|
/*else
|
||||||
{
|
{
|
||||||
//Normal 'single' table
|
//Normal 'single' table
|
||||||
if (IsInverted)
|
if (IsInverted)
|
||||||
|
@ -493,7 +510,7 @@ internal class ClassEditor
|
||||||
}
|
}
|
||||||
Editortable_0.dataGridView_0.Rows[0].HeaderCell.Value = RowHeaderString;
|
Editortable_0.dataGridView_0.Rows[0].HeaderCell.Value = RowHeaderString;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
foreach (object obj in Editortable_0.dataGridView_0.Columns)
|
foreach (object obj in Editortable_0.dataGridView_0.Columns)
|
||||||
{
|
{
|
||||||
DataGridViewColumn dataGridViewColumn = (DataGridViewColumn)obj;
|
DataGridViewColumn dataGridViewColumn = (DataGridViewColumn)obj;
|
||||||
|
@ -934,7 +951,7 @@ internal class ClassEditor
|
||||||
string Folderpath = Application.StartupPath + @"\Definitions";
|
string Folderpath = Application.StartupPath + @"\Definitions";
|
||||||
if (Directory.Exists(Folderpath))
|
if (Directory.Exists(Folderpath))
|
||||||
{
|
{
|
||||||
string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt");
|
string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt", SearchOption.AllDirectories);
|
||||||
|
|
||||||
Editortable_0.GForm_Main_0.method_1("Loading definitions files...");
|
Editortable_0.GForm_Main_0.method_1("Loading definitions files...");
|
||||||
foreach (string ThisFilePath in AllDefinitionFiles)
|
foreach (string ThisFilePath in AllDefinitionFiles)
|
||||||
|
@ -979,7 +996,7 @@ internal class ClassEditor
|
||||||
string Folderpath = Application.StartupPath + @"\Definitions";
|
string Folderpath = Application.StartupPath + @"\Definitions";
|
||||||
if (Directory.Exists(Folderpath))
|
if (Directory.Exists(Folderpath))
|
||||||
{
|
{
|
||||||
string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt");
|
string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt", SearchOption.AllDirectories);
|
||||||
|
|
||||||
DefinitionsLocationsX = new List<string>();
|
DefinitionsLocationsX = new List<string>();
|
||||||
DefinitionsLocationsY = new List<string>();
|
DefinitionsLocationsY = new List<string>();
|
||||||
|
|
|
@ -0,0 +1,214 @@
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
class Class_DefinitionMaker
|
||||||
|
{
|
||||||
|
List<string> AllECUS = new List<string>();
|
||||||
|
List<string> AllFoundFunctions = new List<string>();
|
||||||
|
List<int> AllFoundAddress = new List<int>();
|
||||||
|
|
||||||
|
public void CreateDefinitionsFiles()
|
||||||
|
{
|
||||||
|
//##########################################################################################################################
|
||||||
|
//string FirmwareFolder = Application.StartupPath + @"\Firmwares";
|
||||||
|
string FirmwareFolder = @"C:\Users\boule\Documents\Visual Studio 2019\Projects\RWD_2_BIN\bin\Debug\Firmwares";
|
||||||
|
//##########################################################################################################################
|
||||||
|
|
||||||
|
string[] AllFiles = Directory.GetFiles(FirmwareFolder, "*.bin");
|
||||||
|
foreach (string ThisFile in AllFiles)
|
||||||
|
{
|
||||||
|
byte[] AllBytes = File.ReadAllBytes(ThisFile);
|
||||||
|
|
||||||
|
//Create a fake bootloader section
|
||||||
|
byte[] BufferBytes = new byte[0x8000 + AllBytes.Length];
|
||||||
|
for (int i = 0; i < 0x8000; i++) BufferBytes[i] = 0xff;
|
||||||
|
for (int i = 0; i < AllBytes.Length; i++) BufferBytes[0x8000 + i] = AllBytes[i];
|
||||||
|
AllBytes = BufferBytes;
|
||||||
|
|
||||||
|
int ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 0A 00 0A 00 C8 00"), 16);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "VTEC Engagement", ThisAddr);
|
||||||
|
|
||||||
|
ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("FA 01 2C FF FF 40"), 71);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Revlimiter", ThisAddr);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 1", ThisAddr + 8);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 2", ThisAddr + 16);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 3", ThisAddr + 24);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 4", ThisAddr + 32);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 5", ThisAddr + 36);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 6", ThisAddr + 52);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 7", ThisAddr + 60);
|
||||||
|
|
||||||
|
ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 32 00 1E 01 2C 00 00 08 66 66 00 00"), -2);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Speedlimiter", ThisAddr);
|
||||||
|
|
||||||
|
ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("0C 80 0F A0 12 C0 19 00"), 8);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Injector Voltage Compensation", ThisAddr);
|
||||||
|
|
||||||
|
//ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 1E 00 00 00 03 00 05 00 C8"), -8);
|
||||||
|
ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 1E 00 00 00 03 00 05 00"), -8);
|
||||||
|
if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "MAF Load Limit", ThisAddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
GenerateDefinitions();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GenerateDefinitions()
|
||||||
|
{
|
||||||
|
string BufECUName = "";
|
||||||
|
|
||||||
|
string AllStringFile = "";
|
||||||
|
for (int i = 0; i < AllECUS.Count; i++)
|
||||||
|
{
|
||||||
|
if (BufECUName != AllECUS[i])
|
||||||
|
{
|
||||||
|
if (BufECUName != "") CreateFile(AllStringFile, BufECUName);
|
||||||
|
BufECUName = AllECUS[i];
|
||||||
|
AllStringFile = GenerateNewHeader(BufECUName);
|
||||||
|
//Console.WriteLine(AllECUS[i] + " | 0x" + AllFoundAddress[i].ToString("X") + " | " + AllFoundFunctions[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
string FoundFunc = AllFoundFunctions[i];
|
||||||
|
int FoundAddr = AllFoundAddress[i];
|
||||||
|
|
||||||
|
if (FoundFunc == "VTEC Engagement")
|
||||||
|
{
|
||||||
|
AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit2:RPM" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "TableSize:4x1" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMin:-10000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMax:30000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ChangeAmount:10" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Headers:Enable Low,Disable Low,Enable High,Disable High" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "#############################" + Environment.NewLine;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FoundFunc == "Revlimiter" || FoundFunc == "--Revlimiter 1" || FoundFunc == "--Revlimiter 2"
|
||||||
|
|| FoundFunc == "--Revlimiter 3" || FoundFunc == "--Revlimiter 4" || FoundFunc == "--Revlimiter 5"
|
||||||
|
|| FoundFunc == "--Revlimiter 6" || FoundFunc == "--Revlimiter 7")
|
||||||
|
{
|
||||||
|
AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit2:RPM" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "TableSize:2x1" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMax:10000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ChangeAmount:50" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "#############################" + Environment.NewLine;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FoundFunc == "Speedlimiter")
|
||||||
|
{
|
||||||
|
AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit2:KPH" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "TableSize:1x1" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMax:255" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "# MathTable:X/1.609" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "#############################" + Environment.NewLine;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FoundFunc == "Injector Voltage Compensation")
|
||||||
|
{
|
||||||
|
AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit1:Volts" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit2:ms" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "TableSize:5x1" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "MathTable:X*0.002" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "FormatTable:0.00" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMin:-1000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMax:3000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Headers:6.00,8.00,12.00,14.00,16.00" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "#############################" + Environment.NewLine;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FoundFunc == "MAF Load Limit")
|
||||||
|
{
|
||||||
|
AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "Unit1:Mg/Stroke" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "TableSize:4x1" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMin:-1000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ValueMax:4000" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "ChangeAmount:50" + Environment.NewLine;
|
||||||
|
AllStringFile = AllStringFile + "#############################" + Environment.NewLine;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFile(AllStringFile, BufECUName);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CreateFile(string AllString, string ThisFile)
|
||||||
|
{
|
||||||
|
string DirectoryPath = Application.StartupPath + @"\Definitions\Generated";
|
||||||
|
|
||||||
|
if (!Directory.Exists(DirectoryPath)) Directory.CreateDirectory(DirectoryPath);
|
||||||
|
|
||||||
|
File.Create(DirectoryPath + @"\" + ThisFile + ".txt").Dispose();
|
||||||
|
File.WriteAllText(DirectoryPath + @"\" + ThisFile + ".txt", AllString);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GenerateNewHeader(string ThisEECU)
|
||||||
|
{
|
||||||
|
string ReturnStr = "";
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "# THIS FILE AS BEEN GENERATED AUTOMATICLY, ROM LOCATIONS CAN BE WRONG" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "# Supported ECU:" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + ThisEECU + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "# ROM Parameters Definitions:" + Environment.NewLine;
|
||||||
|
ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine;
|
||||||
|
|
||||||
|
return ReturnStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddToList(string ThisECUName, string ThisFunction, int ThisAddr)
|
||||||
|
{
|
||||||
|
AllECUS.Add(ThisECUName);
|
||||||
|
AllFoundFunctions.Add(ThisFunction);
|
||||||
|
AllFoundAddress.Add(ThisAddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] StringToByteArray(string hex)
|
||||||
|
{
|
||||||
|
hex = hex.Replace(" ", "");
|
||||||
|
return Enumerable.Range(0, hex.Length)
|
||||||
|
.Where(x => x % 2 == 0)
|
||||||
|
.Select(x => Convert.ToByte(hex.Substring(x, 2), 16))
|
||||||
|
.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
private int CheckForBytesAndGetAddress(byte[] ThisFileBytes, byte[] CheckThisBytes, int AddressOffset)
|
||||||
|
{
|
||||||
|
for (int i=0; i < ThisFileBytes.Length; i++)
|
||||||
|
{
|
||||||
|
bool FoundSameBytes = true;
|
||||||
|
for (int i2 = 0; i2 < CheckThisBytes.Length; i2++)
|
||||||
|
{
|
||||||
|
if (ThisFileBytes[i + i2] != CheckThisBytes[i2])
|
||||||
|
{
|
||||||
|
FoundSameBytes = false;
|
||||||
|
i2 = CheckThisBytes.Length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FoundSameBytes)
|
||||||
|
{
|
||||||
|
return i + AddressOffset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
|
@ -727,6 +727,7 @@ public class Editortable : DarkForm
|
||||||
File.WriteAllBytes(Paath + @"\37805_RRB_A140.txt", FlashToolTest.Properties.Resources._37805_RRB_A140);
|
File.WriteAllBytes(Paath + @"\37805_RRB_A140.txt", FlashToolTest.Properties.Resources._37805_RRB_A140);
|
||||||
File.WriteAllBytes(Paath + @"\37805_RWC_A620.txt", FlashToolTest.Properties.Resources._37805_RWC_A620);
|
File.WriteAllBytes(Paath + @"\37805_RWC_A620.txt", FlashToolTest.Properties.Resources._37805_RWC_A620);
|
||||||
File.WriteAllBytes(Paath + @"\37805_S2K.txt", FlashToolTest.Properties.Resources._37805_S2K);
|
File.WriteAllBytes(Paath + @"\37805_S2K.txt", FlashToolTest.Properties.Resources._37805_S2K);
|
||||||
|
File.WriteAllBytes(Paath + @"\DefinitionsGuide.txt", FlashToolTest.Properties.Resources.DefinitionsGuide);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
<Compile Include="ClassListView.cs">
|
<Compile Include="ClassListView.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Class_DefinitionMaker.cs" />
|
||||||
<Compile Include="Class_ODB.cs" />
|
<Compile Include="Class_ODB.cs" />
|
||||||
<Compile Include="Class_ECUS.cs" />
|
<Compile Include="Class_ECUS.cs" />
|
||||||
<Compile Include="Class_Cypher.cs" />
|
<Compile Include="Class_Cypher.cs" />
|
||||||
|
@ -156,6 +157,7 @@
|
||||||
<None Include="bin\Debug\Definitions\37805-RRB-A140.txt" />
|
<None Include="bin\Debug\Definitions\37805-RRB-A140.txt" />
|
||||||
<None Include="bin\Debug\Definitions\37805-RWC-A620.txt" />
|
<None Include="bin\Debug\Definitions\37805-RWC-A620.txt" />
|
||||||
<None Include="bin\Debug\Definitions\37805-S2K.txt" />
|
<None Include="bin\Debug\Definitions\37805-S2K.txt" />
|
||||||
|
<None Include="bin\Debug\Definitions\DefinitionsGuide.txt" />
|
||||||
<Content Include="ECUS_KEYS.txt">
|
<Content Include="ECUS_KEYS.txt">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class GForm_Main : DarkForm
|
||||||
private DarkButton darkButton6;
|
private DarkButton darkButton6;
|
||||||
private DarkButton darkButton3;
|
private DarkButton darkButton3;
|
||||||
public Editortable Editortable_0;
|
public Editortable Editortable_0;
|
||||||
public string Version = "v1.0.9";
|
public string Version = "v1.1.0";
|
||||||
|
|
||||||
public GForm_Main()
|
public GForm_Main()
|
||||||
{
|
{
|
||||||
|
@ -48,6 +48,9 @@ public class GForm_Main : DarkForm
|
||||||
Class_RWD.Load(ref GForm_Main_0);
|
Class_RWD.Load(ref GForm_Main_0);
|
||||||
|
|
||||||
this.Text = this.Text + " (" + Version + ")";
|
this.Text = this.Text + " (" + Version + ")";
|
||||||
|
|
||||||
|
Class_DefinitionMaker Class_DefinitionMaker_0 = new Class_DefinitionMaker();
|
||||||
|
Class_DefinitionMaker_0.CreateDefinitionsFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1603,8 +1606,8 @@ public class GForm_Main : DarkForm
|
||||||
this.darkLabel_8 = new DarkUI.Controls.DarkLabel();
|
this.darkLabel_8 = new DarkUI.Controls.DarkLabel();
|
||||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.DarkgroupBox1 = new DarkUI.Controls.DarkGroupBox();
|
this.DarkgroupBox1 = new DarkUI.Controls.DarkGroupBox();
|
||||||
this.darkButton4 = new DarkUI.Controls.DarkButton();
|
|
||||||
this.darkButton6 = new DarkUI.Controls.DarkButton();
|
this.darkButton6 = new DarkUI.Controls.DarkButton();
|
||||||
|
this.darkButton4 = new DarkUI.Controls.DarkButton();
|
||||||
this.darkGroupBox_0.SuspendLayout();
|
this.darkGroupBox_0.SuspendLayout();
|
||||||
this.DarkgroupBox1.SuspendLayout();
|
this.DarkgroupBox1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
|
@ -1614,7 +1617,7 @@ public class GForm_Main : DarkForm
|
||||||
this.darkTextBox_0.Location = new System.Drawing.Point(218, 63);
|
this.darkTextBox_0.Location = new System.Drawing.Point(218, 63);
|
||||||
this.darkTextBox_0.Multiline = true;
|
this.darkTextBox_0.Multiline = true;
|
||||||
this.darkTextBox_0.Name = "darkTextBox_0";
|
this.darkTextBox_0.Name = "darkTextBox_0";
|
||||||
this.darkTextBox_0.Size = new System.Drawing.Size(461, 443);
|
this.darkTextBox_0.Size = new System.Drawing.Size(399, 443);
|
||||||
this.darkTextBox_0.TabIndex = 55;
|
this.darkTextBox_0.TabIndex = 55;
|
||||||
this.darkTextBox_0.Text = "Honda CANBUS Tools";
|
this.darkTextBox_0.Text = "Honda CANBUS Tools";
|
||||||
//
|
//
|
||||||
|
@ -1852,7 +1855,7 @@ public class GForm_Main : DarkForm
|
||||||
this.darkLabel_4.AutoSize = true;
|
this.darkLabel_4.AutoSize = true;
|
||||||
this.darkLabel_4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.darkLabel_4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.darkLabel_4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
this.darkLabel_4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||||
this.darkLabel_4.Location = new System.Drawing.Point(596, 509);
|
this.darkLabel_4.Location = new System.Drawing.Point(536, 509);
|
||||||
this.darkLabel_4.Name = "darkLabel_4";
|
this.darkLabel_4.Name = "darkLabel_4";
|
||||||
this.darkLabel_4.Size = new System.Drawing.Size(80, 25);
|
this.darkLabel_4.Size = new System.Drawing.Size(80, 25);
|
||||||
this.darkLabel_4.TabIndex = 61;
|
this.darkLabel_4.TabIndex = 61;
|
||||||
|
@ -1874,7 +1877,7 @@ public class GForm_Main : DarkForm
|
||||||
this.darkTextBox_1.Location = new System.Drawing.Point(294, 11);
|
this.darkTextBox_1.Location = new System.Drawing.Point(294, 11);
|
||||||
this.darkTextBox_1.Name = "darkTextBox_1";
|
this.darkTextBox_1.Name = "darkTextBox_1";
|
||||||
this.darkTextBox_1.ReadOnly = true;
|
this.darkTextBox_1.ReadOnly = true;
|
||||||
this.darkTextBox_1.Size = new System.Drawing.Size(385, 20);
|
this.darkTextBox_1.Size = new System.Drawing.Size(323, 20);
|
||||||
this.darkTextBox_1.TabIndex = 63;
|
this.darkTextBox_1.TabIndex = 63;
|
||||||
//
|
//
|
||||||
// darkTextBox_2
|
// darkTextBox_2
|
||||||
|
@ -1882,14 +1885,14 @@ public class GForm_Main : DarkForm
|
||||||
this.darkTextBox_2.Location = new System.Drawing.Point(294, 37);
|
this.darkTextBox_2.Location = new System.Drawing.Point(294, 37);
|
||||||
this.darkTextBox_2.Name = "darkTextBox_2";
|
this.darkTextBox_2.Name = "darkTextBox_2";
|
||||||
this.darkTextBox_2.ReadOnly = true;
|
this.darkTextBox_2.ReadOnly = true;
|
||||||
this.darkTextBox_2.Size = new System.Drawing.Size(385, 20);
|
this.darkTextBox_2.Size = new System.Drawing.Size(323, 20);
|
||||||
this.darkTextBox_2.TabIndex = 64;
|
this.darkTextBox_2.TabIndex = 64;
|
||||||
//
|
//
|
||||||
// darkProgressBar_0
|
// darkProgressBar_0
|
||||||
//
|
//
|
||||||
this.darkProgressBar_0.Location = new System.Drawing.Point(98, 537);
|
this.darkProgressBar_0.Location = new System.Drawing.Point(98, 537);
|
||||||
this.darkProgressBar_0.Name = "darkProgressBar_0";
|
this.darkProgressBar_0.Name = "darkProgressBar_0";
|
||||||
this.darkProgressBar_0.Size = new System.Drawing.Size(581, 23);
|
this.darkProgressBar_0.Size = new System.Drawing.Size(519, 23);
|
||||||
this.darkProgressBar_0.TabIndex = 67;
|
this.darkProgressBar_0.TabIndex = 67;
|
||||||
//
|
//
|
||||||
// darkLabel_7
|
// darkLabel_7
|
||||||
|
@ -1931,16 +1934,6 @@ public class GForm_Main : DarkForm
|
||||||
this.DarkgroupBox1.TabStop = false;
|
this.DarkgroupBox1.TabStop = false;
|
||||||
this.DarkgroupBox1.Text = "File Controls";
|
this.DarkgroupBox1.Text = "File Controls";
|
||||||
//
|
//
|
||||||
// darkButton4
|
|
||||||
//
|
|
||||||
this.darkButton4.Checked = false;
|
|
||||||
this.darkButton4.Location = new System.Drawing.Point(6, 77);
|
|
||||||
this.darkButton4.Name = "darkButton4";
|
|
||||||
this.darkButton4.Size = new System.Drawing.Size(192, 23);
|
|
||||||
this.darkButton4.TabIndex = 68;
|
|
||||||
this.darkButton4.Text = "Fix Checksums";
|
|
||||||
this.darkButton4.Click += new System.EventHandler(this.darkButton4_Click);
|
|
||||||
//
|
|
||||||
// darkButton6
|
// darkButton6
|
||||||
//
|
//
|
||||||
this.darkButton6.Checked = false;
|
this.darkButton6.Checked = false;
|
||||||
|
@ -1951,11 +1944,21 @@ public class GForm_Main : DarkForm
|
||||||
this.darkButton6.Text = "Open ROM Editor";
|
this.darkButton6.Text = "Open ROM Editor";
|
||||||
this.darkButton6.Click += new System.EventHandler(this.darkButton6_Click);
|
this.darkButton6.Click += new System.EventHandler(this.darkButton6_Click);
|
||||||
//
|
//
|
||||||
|
// darkButton4
|
||||||
|
//
|
||||||
|
this.darkButton4.Checked = false;
|
||||||
|
this.darkButton4.Location = new System.Drawing.Point(6, 77);
|
||||||
|
this.darkButton4.Name = "darkButton4";
|
||||||
|
this.darkButton4.Size = new System.Drawing.Size(192, 23);
|
||||||
|
this.darkButton4.TabIndex = 68;
|
||||||
|
this.darkButton4.Text = "Fix Checksums";
|
||||||
|
this.darkButton4.Click += new System.EventHandler(this.darkButton4_Click);
|
||||||
|
//
|
||||||
// GForm_Main
|
// GForm_Main
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(694, 571);
|
this.ClientSize = new System.Drawing.Size(629, 571);
|
||||||
this.Controls.Add(this.DarkgroupBox1);
|
this.Controls.Add(this.DarkgroupBox1);
|
||||||
this.Controls.Add(this.darkLabel_8);
|
this.Controls.Add(this.darkLabel_8);
|
||||||
this.Controls.Add(this.darkLabel_7);
|
this.Controls.Add(this.darkLabel_7);
|
||||||
|
@ -1975,7 +1978,8 @@ public class GForm_Main : DarkForm
|
||||||
this.Controls.Add(this.darkLabel_2);
|
this.Controls.Add(this.darkLabel_2);
|
||||||
this.Controls.Add(this.darkButton_0);
|
this.Controls.Add(this.darkButton_0);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MinimumSize = new System.Drawing.Size(710, 573);
|
this.MaximizeBox = false;
|
||||||
|
this.MinimumSize = new System.Drawing.Size(645, 610);
|
||||||
this.Name = "GForm_Main";
|
this.Name = "GForm_Main";
|
||||||
this.Text = "Honda CANBUS Tools";
|
this.Text = "Honda CANBUS Tools";
|
||||||
this.Load += new System.EventHandler(this.GForm_Main_Load);
|
this.Load += new System.EventHandler(this.GForm_Main_Load);
|
||||||
|
|
|
@ -89,5 +89,15 @@ namespace FlashToolTest.Properties {
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Recherche une ressource localisée de type System.Byte[].
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] DefinitionsGuide {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("DefinitionsGuide", resourceCulture);
|
||||||
|
return ((byte[])(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,6 +118,9 @@
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="DefinitionsGuide" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\bin\Debug\Definitions\DefinitionsGuide.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
<data name="_37805_RRB_A140" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="_37805_RRB_A140" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\bin\Debug\Definitions\37805-RRB-A140.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>..\bin\Debug\Definitions\37805-RRB-A140.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
Loading…
Reference in New Issue