Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-09-27 04:12:54 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-09-27 04:12:54 +0300
commitfe8cd0fc4e716b1bef4aff1fc4ff7b6b5180474b (patch)
tree2c06e36bf6390f64c6771570260cdce8e54da52c /MainForm.cs
parent85bfe6e6828b52cf5b740a2d28f5b436d3d02077 (diff)
NAND dump features, some rework, new language
Diffstat (limited to 'MainForm.cs')
-rw-r--r--MainForm.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/MainForm.cs b/MainForm.cs
index f99846ef..f93b107b 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -766,6 +766,34 @@ namespace com.clusterrr.hakchi_gui
return workerForm.DialogResult == DialogResult.OK;
}
+ bool DoNandDump()
+ {
+ saveDumpFileDialog.FileName = "nand.bin";
+ saveDumpFileDialog.DefaultExt = "bin";
+ if (saveDumpFileDialog.ShowDialog() != DialogResult.OK)
+ return false;
+ var workerForm = new WorkerForm();
+ workerForm.Text = Resources.DumpingNand;
+ workerForm.Task = WorkerForm.Tasks.DumpNand;
+ workerForm.NandDump = saveDumpFileDialog.FileName;
+ workerForm.Start();
+ return workerForm.DialogResult == DialogResult.OK;
+ }
+
+ bool DoNandBDump()
+ {
+ saveDumpFileDialog.FileName = "nandb.hsqs";
+ saveDumpFileDialog.DefaultExt = "hsqs";
+ if (saveDumpFileDialog.ShowDialog() != DialogResult.OK)
+ return false;
+ var workerForm = new WorkerForm();
+ workerForm.Text = Resources.DumpingNand;
+ workerForm.Task = WorkerForm.Tasks.DumpNandB;
+ workerForm.NandDump = saveDumpFileDialog.FileName;
+ workerForm.Start();
+ return workerForm.DialogResult == DialogResult.OK;
+ }
+
bool FlashCustomKernel()
{
var workerForm = new WorkerForm();
@@ -953,6 +981,16 @@ namespace com.clusterrr.hakchi_gui
}
}
+ private void dumpTheWholeNANDToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (DoNandDump()) MessageBox.Show(Resources.NandDumped, Resources.Done, MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void dumpNANDBToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (DoNandBDump()) MessageBox.Show(Resources.NandDumped, Resources.Done, MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
private void flashCustomKernelToolStripMenuItem_Click(object sender, EventArgs e)
{
if (RequireKernelDump() == DialogResult.No) return;