Fixed Checksum Calculation
This commit is contained in:
parent
49828256d2
commit
54052ec533
File diff suppressed because it is too large
Load Diff
|
@ -1450,7 +1450,7 @@ internal class ClassEditor
|
|||
Editortable_0.GForm_Main_0.method_1("Definitions loaded!");
|
||||
|
||||
//HERE
|
||||
if (IsFileGenerated) DarkMessageBox.Show("This Definitions file as been generated to get the ROM Locations.\nThe ROM Locations can possibly be wrong and\nthe tables can display corrupted values!");
|
||||
//if (IsFileGenerated) DarkMessageBox.Show("This Definitions file as been generated to get the ROM Locations.\nThe ROM Locations can possibly be wrong and\nthe tables can display corrupted values!");
|
||||
return;
|
||||
}
|
||||
//}
|
||||
|
|
|
@ -20,17 +20,18 @@ public class Class_Checksums
|
|||
GForm_Main_0 = GForm_Main_1;
|
||||
}
|
||||
|
||||
public byte GetNegativeChecksumArea(byte[] byte_1, int Start, int ChecksumLocation)
|
||||
public byte GetChecksumArea(byte[] byte_1, int Start, int ChecksumLocation)
|
||||
{
|
||||
byte b = 0;
|
||||
int BB = 0;
|
||||
for (int i = Start; i < byte_1.Length; i++)
|
||||
{
|
||||
if (i != ChecksumLocation)
|
||||
{
|
||||
b -= byte_1[i];
|
||||
BB -= byte_1[i];
|
||||
if (BB < 0) BB += 255;
|
||||
}
|
||||
}
|
||||
return b;
|
||||
return (byte) BB;
|
||||
}
|
||||
|
||||
public int GetChecksumLocationThisECU(string ThisECU)
|
||||
|
@ -104,7 +105,7 @@ public class Class_Checksums
|
|||
}
|
||||
|
||||
byte num = BufferBytes[CheckLocation];
|
||||
byte num2 = GetNegativeChecksumArea(BufferBytes, 0, CheckLocation);
|
||||
byte num2 = GetChecksumArea(BufferBytes, 0, CheckLocation);
|
||||
if (num != num2)
|
||||
{
|
||||
GForm_Main_0.method_1("Checksum miss match.");
|
||||
|
@ -156,22 +157,26 @@ public class Class_Checksums
|
|||
}
|
||||
|
||||
byte num = Class_RWD.BootloaderSum;
|
||||
byte num2 = Class_RWD.GetNegativeChecksumFWBin(BufferBytesForChecking, CheckLocation);
|
||||
byte ThisSum = num;
|
||||
ThisSum -= num2;
|
||||
byte num2 = Class_RWD.GetChecksumFWBin(BufferBytesForChecking, CheckLocation);
|
||||
|
||||
int ThisSum = num;
|
||||
ThisSum += num2;
|
||||
if (ThisSum >= 256) ThisSum -= 255;
|
||||
|
||||
byte chk = BufferBytes[CheckLocationInBIN];
|
||||
//Console.WriteLine("Bootsum: " + num.ToString("X"));
|
||||
//Console.WriteLine("ThisSum: " + ThisSum.ToString("X"));
|
||||
//Console.WriteLine("ThisCheck: " + chk.ToString("X"));
|
||||
if (chk != ThisSum)
|
||||
/*Console.WriteLine("Bootsum: " + num.ToString("X"));
|
||||
Console.WriteLine("FileSum: " + num2.ToString("X"));
|
||||
Console.WriteLine("ThisSum: " + ThisSum.ToString("X"));
|
||||
Console.WriteLine("ThisCheck: " + chk.ToString("X"));*/
|
||||
if (chk != (byte) ThisSum)
|
||||
{
|
||||
GForm_Main_0.method_1("Checksum miss match.");
|
||||
BufferBytes[CheckLocationInBIN] = ThisSum;
|
||||
GForm_Main_0.method_1("Checksum fixed at 0x" + CheckLocation.ToString("X") + " | Checksum: 0x" + num2.ToString("X2"));
|
||||
BufferBytes[CheckLocationInBIN] = (byte) ThisSum;
|
||||
GForm_Main_0.method_1("Checksum fixed at 0x" + CheckLocation.ToString("X") + " | Checksum: 0x" + ThisSum.ToString("X2"));
|
||||
}
|
||||
else
|
||||
{
|
||||
GForm_Main_0.method_1("Checksum good at 0x" + CheckLocation.ToString("X") + " | Checksum: 0x" + num2.ToString("X2"));
|
||||
GForm_Main_0.method_1("Checksum good at 0x" + CheckLocation.ToString("X") + " | Checksum: 0x" + ThisSum.ToString("X2"));
|
||||
}
|
||||
return BufferBytes;
|
||||
}
|
||||
|
|
|
@ -1649,46 +1649,60 @@ public class Class_DefinitionMaker
|
|||
for (int i = 0; i < GForm_Main_0.Editortable_0.ClassEditor_0.Ecus_Definitions_Compatible.Count; i++) //Check within all ecus that has a definitions file
|
||||
{
|
||||
string ThisEcu = GForm_Main_0.Editortable_0.ClassEditor_0.Ecus_Definitions_Compatible[i];
|
||||
string ThisEcuReducedName2 = "?????";
|
||||
if (ThisEcu.Length >= 12) ThisEcuReducedName2 = ThisEcu.Substring(0, 12);
|
||||
|
||||
//Console.WriteLine("DEEEEE: " + ThisEcu);
|
||||
//if (ThisEcu != "37805-RWC-A620") continue;
|
||||
|
||||
bool RWDFileFound = false;
|
||||
for (int k = 0; k < AllFiles.Length; k++) //check within all RWD files
|
||||
{
|
||||
/*bool MatchingInside = false;
|
||||
if (AllFiles[k].Contains(ThisEcuReducedName2))
|
||||
{
|
||||
Class_RWD.LoadRWD(AllFiles[k], false, false, false, false);
|
||||
for (int m = 0; m < Class_RWD.SuppportedVersions.Length; m++)
|
||||
{
|
||||
if (Class_RWD.SuppportedVersions[m] == ThisEcu) MatchingInside = true;
|
||||
}
|
||||
}*/
|
||||
Application.DoEvents();
|
||||
|
||||
if (AllFiles[k].Contains(ThisEcu))
|
||||
//if (AllFiles[k].Contains(ThisEcu) || MatchingInside)
|
||||
{
|
||||
RWDFileFound = true;
|
||||
//Console.WriteLine("DOING: " + ThisEcu);
|
||||
Console.WriteLine("DOING: " + ThisEcu);
|
||||
GForm_Main_0.ClearLogs();
|
||||
|
||||
//Decrypt firmware file and get needed variable (Decryption byte)
|
||||
Class_RWD.LoadRWD(AllFiles[k], true, false, false, true);
|
||||
|
||||
byte BootSumByte = 0;
|
||||
for (int m = 0; m < Class_RWD.SuppportedVersions.Length; m++)
|
||||
{
|
||||
if (Class_RWD.SuppportedVersions[m] == ThisEcu) //Matching ecu definition and RWD file
|
||||
{
|
||||
//Console.WriteLine("MATCHING!");
|
||||
byte[] AllBytes = Class_RWD.firmware_candidates[m];
|
||||
byte BootLoaderSumByte = Class_RWD.BootloaderSum;
|
||||
|
||||
if (BootLoaderSumByte == 0)
|
||||
{
|
||||
Console.WriteLine("ERROR BOOTSUM FOR: " + ThisEcu);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
AllFileNames.Add(ThisEcu);
|
||||
AllBootLoaderSumBytes.Add(BootLoaderSumByte);
|
||||
}
|
||||
BootSumByte = Class_RWD.BootloaderSum;
|
||||
if (BootSumByte == 0) Console.WriteLine("ERROR BOOTSUM FOR: " + ThisEcu);
|
||||
|
||||
m = Class_RWD.SuppportedVersions.Length;
|
||||
//k = AllFiles.Length;
|
||||
}
|
||||
}
|
||||
|
||||
if (BootSumByte != 0)
|
||||
{
|
||||
for (int m = 0; m < Class_RWD.SuppportedVersions.Length; m++)
|
||||
{
|
||||
AllFileNames.Add(Class_RWD.SuppportedVersions[m]);
|
||||
AllBootLoaderSumBytes.Add(BootSumByte);
|
||||
}
|
||||
}
|
||||
|
||||
k = AllFiles.Length;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!RWDFileFound) Console.WriteLine("RWD NOT FOUND FOR: " + ThisEcu);
|
||||
}
|
||||
|
||||
|
|
44
Class_RWD.cs
44
Class_RWD.cs
|
@ -457,16 +457,16 @@ static class Class_RWD
|
|||
if (fc.Length - 1 == 0xF7FFF) CheckLocation -= 0x8000;
|
||||
if (fc.Length - 1 == 0x1EFFFF || fc.Length - 1 == 0x26FFFF) CheckLocation -= 0x10000;
|
||||
byte num = GetBootloaderSum(fc, CheckLocation);
|
||||
byte num2 = GetNegativeChecksumFWBin(fc, CheckLocation);
|
||||
byte num2 = GetChecksumFWBin(fc, CheckLocation);
|
||||
int ThisSumInt = num;
|
||||
ThisSumInt -= num2;
|
||||
if (ThisSumInt < 0) ThisSumInt += 255;
|
||||
ThisSumInt += num2;
|
||||
if (ThisSumInt >= 256) ThisSumInt -= 255;
|
||||
byte ThisSum = (byte)ThisSumInt;
|
||||
byte chk = fc[CheckLocation];
|
||||
//Console.WriteLine("chk: " + chk.ToString("X2"));
|
||||
//Console.WriteLine("num2: " + num2.ToString("X2"));
|
||||
//Console.WriteLine("num: " + num.ToString("X2"));
|
||||
//Console.WriteLine("ThisSum: " + ThisSum.ToString("X2"));
|
||||
Console.WriteLine("chk: " + chk.ToString("X2"));
|
||||
Console.WriteLine("num: " + num.ToString("X2"));
|
||||
Console.WriteLine("num2: " + num2.ToString("X2"));
|
||||
Console.WriteLine("ThisSum: " + ThisSum.ToString("X2"));
|
||||
if (chk == ThisSum)
|
||||
{
|
||||
GForm_Main_0.method_1("checksums good!");
|
||||
|
@ -562,14 +562,32 @@ static class Class_RWD
|
|||
//Get Checksum (sum)
|
||||
byte[] BufferBytes = FWFileBytes;
|
||||
byte num = BufferBytes[CheckLocation];
|
||||
byte num2 = GetNegativeChecksumFWBin(BufferBytes, CheckLocation);
|
||||
byte num2 = GetChecksumFWBin(BufferBytes, CheckLocation);
|
||||
//Console.WriteLine("Val1: " + num.ToString("X"));
|
||||
//Console.WriteLine("Val2: " + num2.ToString("X"));
|
||||
int BTSum = num;
|
||||
BTSum += num2;
|
||||
if (BTSum > 255) BTSum -= 255;
|
||||
BTSum -= num2;
|
||||
if (BTSum < 0) BTSum += 255;
|
||||
return (byte) BTSum;
|
||||
}
|
||||
|
||||
public static byte GetNegativeChecksumFWBin(byte[] byte_1, int CheckLocation)
|
||||
//#############################################################################################
|
||||
//#############################################################################################
|
||||
/*public static byte GetChecksumFWBin(byte[] byte_1, int CheckLocation)
|
||||
{
|
||||
int b = 0;
|
||||
for (int i = 0; i < byte_1.Length; i++)
|
||||
{
|
||||
if (i != CheckLocation)
|
||||
{
|
||||
b += byte_1[i];
|
||||
if (b >= 256) b -= 255;
|
||||
}
|
||||
}
|
||||
return (byte) b;
|
||||
}*/
|
||||
|
||||
public static byte GetChecksumFWBin(byte[] byte_1, int CheckLocation)
|
||||
{
|
||||
int b = 0;
|
||||
for (int i = 0; i < byte_1.Length; i++)
|
||||
|
@ -580,8 +598,10 @@ static class Class_RWD
|
|||
if (b < 0) b += 255;
|
||||
}
|
||||
}
|
||||
return (byte) b;
|
||||
return (byte)b;
|
||||
}
|
||||
//#############################################################################################
|
||||
//#############################################################################################
|
||||
|
||||
public static byte[] Push(byte[] bArray, byte[] newBytes)
|
||||
{
|
||||
|
|
|
@ -46,14 +46,14 @@ public class Editortable : DarkForm
|
|||
private DarkTextBox darkTextBox_0;
|
||||
private ToolStripDropDownButton toolStripDropDownButton3;
|
||||
private ToolStripMenuItem developpersToolsToolStripMenuItem;
|
||||
private ToolStripMenuItem generateDefinitionsFilesToolStripMenuItem;
|
||||
public ToolStripMenuItem generateDefinitionsFilesToolStripMenuItem;
|
||||
private ToolStripMenuItem getDifferencesInAllFirmwaresFilesToolStripMenuItem;
|
||||
private ToolStripMenuItem extractAllBootloadersumByteFromAllFirmwaresFilesToolStripMenuItem;
|
||||
private ToolStripMenuItem extractDefinitionToolStripMenuItem;
|
||||
private FolderBrowserDialog folderBrowserDialog1;
|
||||
private ToolStripMenuItem removeBootloaderInbinToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator3;
|
||||
private ToolStripMenuItem generateDefinitionFileFromExtractedDefinitionToolStripMenuItem;
|
||||
public ToolStripMenuItem generateDefinitionFileFromExtractedDefinitionToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator4;
|
||||
private ToolStripMenuItem extractbinFileFromFPMToolStripMenuItem;
|
||||
private ToolStripMenuItem convertrwdTobinToolStripMenuItem;
|
||||
|
@ -116,9 +116,9 @@ public class Editortable : DarkForm
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Editortable));
|
||||
this.treeView1 = new DarkUI.Controls.DarkTreeView();
|
||||
this.groupBox1 = new DarkUI.Controls.DarkGroupBox();
|
||||
|
@ -155,9 +155,9 @@ public class Editortable : DarkForm
|
|||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.darkTextBox_0 = new DarkUI.Controls.DarkTextBox();
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.clearLogsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_0)).BeginInit();
|
||||
this.darkToolStrip1.SuspendLayout();
|
||||
|
@ -212,37 +212,37 @@ public class Editortable : DarkForm
|
|||
this.dataGridView_0.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_0.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
this.dataGridView_0.BackgroundColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView_0.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView_0.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.dataGridView_0.ColumnHeadersHeight = 20;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.ControlLight;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView_0.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.ControlLight;
|
||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView_0.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.dataGridView_0.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView_0.EnableHeadersVisualStyles = false;
|
||||
this.dataGridView_0.GridColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
this.dataGridView_0.Location = new System.Drawing.Point(2, 15);
|
||||
this.dataGridView_0.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.dataGridView_0.Name = "dataGridView_0";
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView_0.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.ControlDarkDark;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView_0.RowHeadersDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dataGridView_0.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
|
||||
this.dataGridView_0.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridView_0.RowTemplate.Height = 31;
|
||||
|
@ -488,6 +488,7 @@ public class Editortable : DarkForm
|
|||
this.generateDefinitionsFilesToolStripMenuItem.Name = "generateDefinitionsFilesToolStripMenuItem";
|
||||
this.generateDefinitionsFilesToolStripMenuItem.Size = new System.Drawing.Size(367, 22);
|
||||
this.generateDefinitionsFilesToolStripMenuItem.Text = "Generate Definitions files from all firmwares files";
|
||||
this.generateDefinitionsFilesToolStripMenuItem.Visible = false;
|
||||
this.generateDefinitionsFilesToolStripMenuItem.Click += new System.EventHandler(this.generateDefinitionsFilesToolStripMenuItem_Click);
|
||||
//
|
||||
// getDifferencesInAllFirmwaresFilesToolStripMenuItem
|
||||
|
@ -541,6 +542,7 @@ public class Editortable : DarkForm
|
|||
this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Name = "generateDefinitionFileFromExtractedDefinitionToolStripMenuItem";
|
||||
this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Size = new System.Drawing.Size(367, 22);
|
||||
this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Text = "Generate Definition file from Extracted Definition";
|
||||
this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Visible = false;
|
||||
this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Click += new System.EventHandler(this.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem_Click);
|
||||
//
|
||||
// splitContainer1
|
||||
|
@ -589,19 +591,19 @@ public class Editortable : DarkForm
|
|||
this.darkTextBox_0.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.darkTextBox_0.Size = new System.Drawing.Size(799, 152);
|
||||
this.darkTextBox_0.TabIndex = 56;
|
||||
this.darkTextBox_0.Text = "Honda CANBUS Tools";
|
||||
this.darkTextBox_0.Text = "Honda ROM Editor Tools";
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.clearLogsToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(130, 26);
|
||||
//
|
||||
// clearLogsToolStripMenuItem
|
||||
//
|
||||
this.clearLogsToolStripMenuItem.Name = "clearLogsToolStripMenuItem";
|
||||
this.clearLogsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.clearLogsToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
|
||||
this.clearLogsToolStripMenuItem.Text = "Clear Logs";
|
||||
this.clearLogsToolStripMenuItem.Click += new System.EventHandler(this.clearLogsToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -1279,6 +1281,7 @@ public class Editortable : DarkForm
|
|||
{
|
||||
GForm_Main_0.Class_DefinitionMaker_0.FirmwareFolder = folderBrowserDialog1.SelectedPath;
|
||||
GForm_Main_0.Class_DefinitionMaker_0.CreateDefinitionsFiles();
|
||||
GForm_Main_0.Class_DefinitionMaker_0.SetHondaAcuraCodesToDefinitionsFiles();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -129,6 +129,9 @@ public class GForm_Main : DarkForm
|
|||
darkComboBoxUnlockMode.SelectedIndex = 0;
|
||||
LoadSettings();
|
||||
|
||||
//Editortable_0.generateDefinitionsFilesToolStripMenuItem.Visible = true; //ONLY FOR DEVELOPPER
|
||||
//Editortable_0.generateDefinitionFileFromExtractedDefinitionToolStripMenuItem.Visible = true; //ONLY FOR DEVELOPPER
|
||||
|
||||
//Class_DefinitionMaker_0.ExtracHondaAcuraECUCodesList();
|
||||
//Class_DefinitionMaker_0.SetHondaAcuraCodesToDefinitionsFiles();
|
||||
|
||||
|
@ -2030,9 +2033,9 @@ public class GForm_Main : DarkForm
|
|||
this.darkLabel_0.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||
this.darkLabel_0.Location = new System.Drawing.Point(218, 13);
|
||||
this.darkLabel_0.Name = "darkLabel_0";
|
||||
this.darkLabel_0.Size = new System.Drawing.Size(62, 13);
|
||||
this.darkLabel_0.Size = new System.Drawing.Size(68, 13);
|
||||
this.darkLabel_0.TabIndex = 57;
|
||||
this.darkLabel_0.Text = "Vin Number";
|
||||
this.darkLabel_0.Text = "Vin Number: ";
|
||||
//
|
||||
// darkLabel_1
|
||||
//
|
||||
|
@ -2040,9 +2043,9 @@ public class GForm_Main : DarkForm
|
|||
this.darkLabel_1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||
this.darkLabel_1.Location = new System.Drawing.Point(218, 39);
|
||||
this.darkLabel_1.Name = "darkLabel_1";
|
||||
this.darkLabel_1.Size = new System.Drawing.Size(70, 13);
|
||||
this.darkLabel_1.Size = new System.Drawing.Size(76, 13);
|
||||
this.darkLabel_1.TabIndex = 58;
|
||||
this.darkLabel_1.Text = "Calibration ID";
|
||||
this.darkLabel_1.Text = "Calibration ID: ";
|
||||
//
|
||||
// darkLabel_4
|
||||
//
|
||||
|
@ -2163,9 +2166,9 @@ public class GForm_Main : DarkForm
|
|||
this.darkLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||
this.darkLabel1.Location = new System.Drawing.Point(218, 446);
|
||||
this.darkLabel1.Name = "darkLabel1";
|
||||
this.darkLabel1.Size = new System.Drawing.Size(89, 13);
|
||||
this.darkLabel1.Size = new System.Drawing.Size(92, 13);
|
||||
this.darkLabel1.TabIndex = 71;
|
||||
this.darkLabel1.Text = "J2534 Command:";
|
||||
this.darkLabel1.Text = "J2534 Command: ";
|
||||
//
|
||||
// darkButtonJ2534Command
|
||||
//
|
||||
|
@ -2196,12 +2199,12 @@ public class GForm_Main : DarkForm
|
|||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.clearLogsToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(130, 26);
|
||||
//
|
||||
// clearLogsToolStripMenuItem
|
||||
//
|
||||
this.clearLogsToolStripMenuItem.Name = "clearLogsToolStripMenuItem";
|
||||
this.clearLogsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.clearLogsToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
|
||||
this.clearLogsToolStripMenuItem.Text = "Clear Logs";
|
||||
this.clearLogsToolStripMenuItem.Click += new System.EventHandler(this.clearLogsToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -2413,7 +2416,7 @@ public class GForm_Main : DarkForm
|
|||
{
|
||||
try
|
||||
{
|
||||
this.gform0_0.darkLabel_7.Text = this.string_0;
|
||||
this.gform0_0.darkLabel_7.Text = this.string_0 + " ";
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
@ -2493,7 +2496,7 @@ public class GForm_Main : DarkForm
|
|||
internal void method_0()
|
||||
{
|
||||
double RatePerSecond = (this.double_0 / TotalSeconds_0) / 100;
|
||||
this.gform0_0.darkLabel_5.Text = "Download Rate: " + RatePerSecond.ToString("0") + " bytes/s";
|
||||
this.gform0_0.darkLabel_5.Text = "Download Rate: " + RatePerSecond.ToString("0") + " bytes/s ";
|
||||
}
|
||||
public GForm_Main gform0_0;
|
||||
public double double_0;
|
||||
|
@ -2509,7 +2512,7 @@ public class GForm_Main : DarkForm
|
|||
internal void method_0()
|
||||
{
|
||||
double RatePerSecond = (this.double_0 / TotalSeconds_0) / 100;
|
||||
this.gform0_0.darkLabel_5.Text = "Upload Rate: " + RatePerSecond.ToString("0") + " bytes/s";
|
||||
this.gform0_0.darkLabel_5.Text = "Upload Rate: " + RatePerSecond.ToString("0") + " bytes/s ";
|
||||
}
|
||||
public GForm_Main gform0_0;
|
||||
public double double_0;
|
||||
|
@ -2524,7 +2527,7 @@ public class GForm_Main : DarkForm
|
|||
}
|
||||
internal void method_0()
|
||||
{
|
||||
this.gform0_0.darkLabel_5.Text = ThisText;
|
||||
this.gform0_0.darkLabel_5.Text = ThisText + " ";
|
||||
}
|
||||
public GForm_Main gform0_0;
|
||||
public string ThisText;
|
||||
|
@ -2538,7 +2541,7 @@ public class GForm_Main : DarkForm
|
|||
}
|
||||
internal void method_0()
|
||||
{
|
||||
this.gform0_0.darkLabel_8.Text = ThisText;
|
||||
this.gform0_0.darkLabel_8.Text = ThisText + " ";
|
||||
}
|
||||
public GForm_Main gform0_0;
|
||||
public string ThisText;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue