From 97b010e8ec5492ef07811d428a920232b5237dda Mon Sep 17 00:00:00 2001 From: givememystuffplease Date: Sun, 4 Jul 2010 22:46:40 +0000 Subject: [PATCH] Small script changes --- NUS Downloader/Form1.cs | 16 ++++++++++++++++ NUS Downloader/TODO | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/NUS Downloader/Form1.cs b/NUS Downloader/Form1.cs index e470b18..41e86cd 100644 --- a/NUS Downloader/Form1.cs +++ b/NUS Downloader/Form1.cs @@ -3129,6 +3129,7 @@ namespace NUS_Downloader //throw new NotImplementedException(); try { + // Add directories w/ scripts in \scripts\ foreach (string directory in Directory.GetDirectories(Path.Combine(CURRENT_DIR, "scripts"), "*", SearchOption.TopDirectoryOnly)) { if (Directory.GetFiles(directory, "*.nus", SearchOption.TopDirectoryOnly).Length > 0) @@ -3146,11 +3147,26 @@ namespace NUS_Downloader nus_script_item.Text = finfo.Name; nus_script_item.Image = Properties.Resources.script_go; folder_item.DropDownItems.Add(nus_script_item); + + // TODO: OnItemClicked... } scriptsLocalMenuEntry.DropDownItems.Add(folder_item); } } + + // Add scripts in \scripts\ + foreach (string nusscript in Directory.GetFiles(Path.Combine(CURRENT_DIR, "scripts"), "*.nus", SearchOption.TopDirectoryOnly)) + { + FileInfo finfo = new FileInfo(nusscript); + ToolStripMenuItem nus_script_item = new ToolStripMenuItem(); + nus_script_item.Text = finfo.Name; + nus_script_item.Image = Properties.Resources.script_go; + scriptsLocalMenuEntry.DropDownItems.Add(nus_script_item); + + // TODO: OnItemClicked... + } + } catch (DirectoryNotFoundException) { diff --git a/NUS Downloader/TODO b/NUS Downloader/TODO index 8417a7e..8dbef8d 100644 --- a/NUS Downloader/TODO +++ b/NUS Downloader/TODO @@ -1,2 +1,5 @@ Make more compatible with mono. -Finish scripting improvements. \ No newline at end of file +Finish scripting improvements. + +Routine: +Verify version number before releases! \ No newline at end of file