From 2eea1c5b38b55f59db86beead2e047ab649804a3 Mon Sep 17 00:00:00 2001 From: SuperHackio Date: Sun, 9 May 2021 13:24:59 -0700 Subject: [PATCH] Finished the scripting language --- WiiExplorer/MainForm.en.resx | 98 +++++++++++----------- WiiExplorer/MainForm.resx | 152 +++++++++++++++++------------------ WiiExplorer/Program.cs | 56 +++++++++++-- 3 files changed, 175 insertions(+), 131 deletions(-) diff --git a/WiiExplorer/MainForm.en.resx b/WiiExplorer/MainForm.en.resx index 7a253e5..8af5a03 100644 --- a/WiiExplorer/MainForm.en.resx +++ b/WiiExplorer/MainForm.en.resx @@ -122,7 +122,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABS - DgAAAk1TRnQBSQFMAgEBAwEAAbgBAwG4AQMBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA + DgAAAk1TRnQBSQFMAgEBAwEAAcABAwHAAQMBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA AwABEAMAAQEBAAEgBgABEJoAAwwEEAEWAxABFgMQARYDEAEWAxABFgMQARYDEAEWAxABFgMQARYDEAEW AxABFgMEAQVLAAEBAwYBCAMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DBwEK AwMBBAsAAQEDBgEIAwoBDQMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DBwEKAwMBBBQAA18B8wKu @@ -130,57 +130,57 @@ Aa0B/wMQARZEAAMEAQUDJAE2A0QBeQNKAYsDSgGLA0oBiwNKAYsDSgGLA0oBiwNK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BwEAAQ8BwAEP AwABfwEAA/8CAAs= diff --git a/WiiExplorer/MainForm.resx b/WiiExplorer/MainForm.resx index 345e916..51ab74f 100644 --- a/WiiExplorer/MainForm.resx +++ b/WiiExplorer/MainForm.resx @@ -125,11 +125,8 @@ False - - 243, 22 - - - 0 + + 0, 27 ImportFolderToolStripMenuItem @@ -140,8 +137,11 @@ Export All - - False + + Save As + + + OpenToolStripMenuItem KeepIDsSyncedCheckBox @@ -149,17 +149,20 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 243, 22 + + Auto-Calculate File IDs 243, 22 + + Ctrl+Shift+R + ContextReplaceSelectedToolStripMenuItem - - Ctrl+Shift+R + + 0 240, 22 @@ -170,6 +173,9 @@ Export All + + False + ContextExportSelectToolStripMenuItem @@ -204,6 +210,9 @@ Yes + + Alt+R + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -213,8 +222,8 @@ Alt+S - - System.Windows.Forms.StatusStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + MainFormMenuStrip 243, 22 @@ -252,21 +261,21 @@ 0 - - Import Folder - 243, 22 Root Name: + + Open + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABS - DgAAAk1TRnQBSQFMAgEBAwEAAYQBAwGkAQMBEAEAARABAAT/ASEBEAj/AUIBTQE2BwABNgMAASgDAAFA + DgAAAk1TRnQBSQFMAgEBAwEAAYQBAwGoAQMBEAEAARABAAT/ASEBEAj/AUIBTQE2BwABNgMAASgDAAFA AwABEAMAAQEBAAEgBgABEJoAAwwEEAEWAxABFgMQARYDEAEWAxABFgMQARYDEAEWAxABFgMQARYDEAEW AxABFgMEAQVLAAEBAwYBCAMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DBwEK AwMBBAsAAQEDBgEIAwoBDQMKAQ0DCgENAwoBDQMKAQ0DCgENAwoBDQMKAQ0DBwEKAwMBBBQAA18B8wKu @@ -366,9 +375,6 @@ Ctrl+R - - MainFormStatusStrip - MiddleLeft @@ -387,17 +393,17 @@ 0, 47 - - 64, 0 - 243, 22 Right - - 347, 17 + + EditToolStripMenuItem + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System.Windows.Forms.ToolStripComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -405,9 +411,6 @@ Add Empty Folder - - $this - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -450,14 +453,17 @@ 4 + + 243, 22 + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 MainForm - - RootNameLabel + + AddFolderToolStripMenuItem ArchiveTreeView @@ -468,9 +474,6 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Add File(s) - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -513,8 +516,8 @@ No File Loaded. - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 244, 180 NoControl @@ -522,8 +525,8 @@ ContextAddFolderToolStripMenuItem - - Auto-Calculate File IDs + + System.Windows.Forms.StatusStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 RootPanel @@ -534,9 +537,6 @@ Ctrl+Shift+R - - File Properties - Compression Settings If set to Yaz0 Strong, the saved archive will be @@ -556,8 +556,8 @@ Yaz0 Strong is Default False - - Save As + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 64, 13 @@ -571,6 +571,9 @@ Yaz0 Strong is Default Off + + MainToolStripProgressBar + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -583,8 +586,8 @@ Yaz0 Strong is Default False - - MainFormMenuStrip + + 347, 17 0, 0 @@ -655,15 +658,15 @@ Yaz0 Strong is Default True - - 0, 27 - Ctrl+Shift+A 243, 22 + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Export Selected @@ -673,8 +676,11 @@ Yaz0 Strong is Default SwitchThemeToolStripMenuItem - - System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + False + + + ContextRenameToolStripMenuItem False @@ -688,15 +694,12 @@ Yaz0 Strong is Default Alt+Shift+S - - EditToolStripMenuItem + + 243, 22 System.Windows.Forms.ToolStripProgressBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 464, 282 @@ -809,8 +812,8 @@ Yaz0 Strong is Default SaveToolStripMenuItem - - ContextRenameToolStripMenuItem + + 243, 22 331, 0 @@ -821,14 +824,11 @@ Yaz0 Strong is Default System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - AddFolderToolStripMenuItem - - - 243, 22 + + Add File(s) - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -864,7 +864,7 @@ Yaz0 Strong is Default 37, 23 - WiiExplorer.ColourTextBox, WiiExplorer, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null + WiiExplorer.ColourTextBox, WiiExplorer, Version=1.4.5.0, Culture=neutral, PublicKeyToken=null False @@ -878,17 +878,17 @@ Yaz0 Strong is Default System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - MainToolStripProgressBar + + 64, 0 133, 20 - - False + + Import Folder - - Alt+R + + MainFormStatusStrip Left @@ -926,8 +926,8 @@ Yaz0 Strong is Default System.Windows.Forms.ToolStripStatusLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Open + + File Properties $this @@ -935,11 +935,11 @@ Yaz0 Strong is Default 243, 22 - - OpenToolStripMenuItem + + RootNameLabel - - 244, 180 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 RenameSelectedToolStripMenuItem diff --git a/WiiExplorer/Program.cs b/WiiExplorer/Program.cs index 5d54627..2f5270c 100644 --- a/WiiExplorer/Program.cs +++ b/WiiExplorer/Program.cs @@ -174,10 +174,12 @@ static void RunScript(string Filename, string[] parameters) Console.WriteLine("Compress complete!"); break; + case "replace": case "add": //add + string func = Params[0].Equals("replace") ? "replaced" : "added"; if (Params.Length < 3) { - ErrorMessage = string.Format("Incomplete Syntax - Expected\nadd "); + ErrorMessage = string.Format("Incomplete Syntax - Expected\n{0} ", Params[0]); goto Error; } if (CurrentArchive is null) @@ -192,18 +194,25 @@ static void RunScript(string Filename, string[] parameters) } if (CurrentArchive.ItemExists(Params[1])) { - ErrorMessage = string.Format("An item already exists at {0}", Params[1]); - goto Error; + if (Params[0].Equals("replace")) + { + CurrentArchive[Params[1]] = null; + } + else + { + ErrorMessage = string.Format("An item already exists at {0}", Params[1]); + goto Error; + } } if (File.GetAttributes(Params[1]) == FileAttributes.Directory) { CurrentArchive[Params[2]] = new RARC.Directory(Params[1], CurrentArchive); - Console.WriteLine("Folder {0} imported successfully", Params[1]); + Console.WriteLine("Folder {0} {1} successfully", Params[1], func); } else { CurrentArchive[Params[2]] = new RARC.File(Params[1]); - Console.WriteLine("File {0} added successfully", Params[1]); + Console.WriteLine("File {0} {1} successfully", Params[1], func); } break; @@ -230,7 +239,7 @@ static void RunScript(string Filename, string[] parameters) case "rename": case "move": //move - string func = Params[0].Equals("rename") ? "Renamed" : "Moved"; + func = Params[0].Equals("rename") ? "Renamed" : "Moved"; if (Params.Length < 3) { ErrorMessage = string.Format("Incomplete Syntax - Expected\n{0} ", Params[0]); @@ -256,6 +265,41 @@ static void RunScript(string Filename, string[] parameters) Console.WriteLine("{2} {0} to {1} successfully", Params[1], Params[2], func); break; + case "extract": //extract [-o] + if (Params.Length < 3) + { + ErrorMessage = string.Format("Incomplete Syntax - Expected\nextract "); + goto Error; + } + if (CurrentArchive is null) + { + ErrorMessage = string.Format("Extract failed! No archive loaded"); + goto Error; + } + if (!CurrentArchive.ItemExists(Params[1])) + { + ErrorMessage = string.Format("Can't extract the non-existant item {0}", Params[1]); + goto Error; + } + if (CurrentArchive[Params[1]] is RARC.File efile) + { + if (File.Exists(Params[2]) && !Params.Contains("-o")) + { + ErrorMessage = string.Format("There is already a file on your system at {0}, consider adding the -o parameter if you want to overwrite it", Params[2]); + goto Error; + } + efile.Save(Params[2]); + } + else if (CurrentArchive[Params[1]] is RARC.Directory edir) + { + if (Directory.Exists(Params[2]) && !Params.Contains("-o")) + { + ErrorMessage = string.Format("There is already a file on your system at {0}, consider adding the -o parameter if you want to overwrite it", Params[2]); + goto Error; + } + edir.Export(Params[2]); + } + break; case "edit": //edit if (Params.Length < 3) {