diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-14 15:58:04 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-14 15:58:04 +0300 |
commit | 9c2ef235f166989d96903d196dfe30fe47461f52 (patch) | |
tree | 2fafcdc2d29a897d20c153fca121769b2df1ae82 /MainForm.cs | |
parent | d5715b0a62d59b6ab05c44ff7b286b3b60375de1 (diff) |
NAND-C partition dump feature, autoupdate moved2.21d
Diffstat (limited to 'MainForm.cs')
-rw-r--r-- | MainForm.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MainForm.cs b/MainForm.cs index e96dd007..48afef65 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -926,6 +926,20 @@ namespace com.clusterrr.hakchi_gui return workerForm.DialogResult == DialogResult.OK;
}
+ bool DoNandCDump()
+ {
+ saveDumpFileDialog.FileName = "nandc.hsqs";
+ saveDumpFileDialog.DefaultExt = "hsqs";
+ if (saveDumpFileDialog.ShowDialog() != DialogResult.OK)
+ return false;
+ var workerForm = new WorkerForm(this);
+ workerForm.Text = Resources.DumpingNand;
+ workerForm.Task = WorkerForm.Tasks.DumpNandC;
+ workerForm.NandDump = saveDumpFileDialog.FileName;
+ workerForm.Start();
+ return workerForm.DialogResult == DialogResult.OK;
+ }
+
bool FlashCustomKernel()
{
var workerForm = new WorkerForm(this);
@@ -1122,6 +1136,12 @@ namespace com.clusterrr.hakchi_gui if (DoNandBDump()) MessageBox.Show(Resources.NandDumped, Resources.Done, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
+ private void dumpNANDCPartitionToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (RequirePatchedKernel() == DialogResult.No) return;
+ if (DoNandCDump()) MessageBox.Show(Resources.NandDumped, Resources.Done, MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
private void flashCustomKernelToolStripMenuItem_Click(object sender, EventArgs e)
{
if (MessageBox.Show(Resources.CustomKernelQ, Resources.AreYouSure, MessageBoxButtons.YesNo, MessageBoxIcon.Warning)
|