diff --git a/NUS Downloader/Database.cs b/NUS Downloader/Database.cs
index 617c857..b30c625 100644
--- a/NUS Downloader/Database.cs
+++ b/NUS Downloader/Database.cs
@@ -21,6 +21,9 @@ namespace NUS_Downloader
private string WwTag = "WW";
private string UpdateTag = "UPD";
+ private string DSiSystemTag = "DSISYSTEM";
+ private string DSiWareTag = "DSIWARE";
+
private string[] VcConsoles = new string[11] { "C64", "GEN", "MSX", "N64", "NEO", "NES",
"SMS", "SNES", "TG16", "TGCD", "ARC" };
@@ -619,5 +622,213 @@ namespace NUS_Downloader
return scriptCollection;
}
+
+ public ToolStripMenuItem[] LoadDSiSystemTitles()
+ {
+ if (databaseString.Length < 1)
+ {
+ throw new Exception("Load the database into a memory stream first!");
+ }
+
+ XmlDocument xDoc = new XmlDocument();
+ xDoc.LoadXml(databaseString);
+ XmlNodeList DSiSystemTitlesXMLNodes = xDoc.GetElementsByTagName(DSiSystemTag);
+ ToolStripMenuItem[] dsiSystemTitleCollection = new ToolStripMenuItem[DSiSystemTitlesXMLNodes.Count];
+
+ for (int x = 0; x < DSiSystemTitlesXMLNodes.Count; x++)
+ {
+ ToolStripMenuItem XMLToolStripItem = new ToolStripMenuItem();
+ XmlAttributeCollection XMLAttributes = DSiSystemTitlesXMLNodes[x].Attributes;
+
+ string titleID = "";
+ string descname = "";
+ bool dangerous = false;
+ bool ticket = true;
+
+ XmlNodeList ChildrenOfTheNode = DSiSystemTitlesXMLNodes[x].ChildNodes;
+
+ for (int z = 0; z < ChildrenOfTheNode.Count; z++)
+ {
+ switch (ChildrenOfTheNode[z].Name)
+ {
+ case "name":
+ descname = ChildrenOfTheNode[z].InnerText;
+ break;
+ case "titleID":
+ titleID = ChildrenOfTheNode[z].InnerText;
+ break;
+ case "version":
+ string[] versions = ChildrenOfTheNode[z].InnerText.Split(',');
+ // Add to region things?
+ if (XMLToolStripItem.DropDownItems.Count > 0)
+ {
+ for (int b = 0; b < XMLToolStripItem.DropDownItems.Count; b++)
+ {
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ ToolStripMenuItem regitem =
+ (ToolStripMenuItem)XMLToolStripItem.DropDownItems[b];
+ regitem.DropDownItems.Add("Latest Version");
+ for (int y = 0; y < versions.Length; y++)
+ {
+ regitem.DropDownItems.Add("v" + versions[y]);
+ }
+ //regitem.DropDownItemClicked += new ToolStripItemClickedEventHandler(deepitem_clicked);
+ }
+ }
+ }
+ else
+ {
+ XMLToolStripItem.DropDownItems.Add("Latest Version");
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ for (int y = 0; y < versions.Length; y++)
+ {
+ XMLToolStripItem.DropDownItems.Add("v" + versions[y]);
+ }
+ }
+ }
+ break;
+ case "region":
+ string[] regions = ChildrenOfTheNode[z].InnerText.Split(',');
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ for (int y = 0; y < regions.Length; y++)
+ {
+ XMLToolStripItem.DropDownItems.Add(RegionFromIndex(Convert.ToInt32(regions[y])));
+ }
+ }
+ break;
+ default:
+ break;
+ case "ticket":
+ ticket = Convert.ToBoolean(ChildrenOfTheNode[z].InnerText);
+ break;
+ case "danger":
+ dangerous = true;
+ XMLToolStripItem.ToolTipText = ChildrenOfTheNode[z].InnerText;
+ break;
+ }
+ XMLToolStripItem.Image = SelectItemImage(ticket, dangerous);
+
+ if (titleID != "")
+ {
+ XMLToolStripItem.Text = String.Format("{0} - {1}", titleID, descname);
+ }
+ else
+ { // Wait what?
+ XMLToolStripItem.Text = descname;
+ }
+ }
+
+ dsiSystemTitleCollection[x] = XMLToolStripItem;
+ }
+
+ return dsiSystemTitleCollection;
+ }
+
+ public ToolStripMenuItem[] LoadDsiWareTitles()
+ {
+ if (databaseString.Length < 1)
+ {
+ throw new Exception("Load the database into a memory stream first!");
+ }
+
+ XmlDocument xDoc = new XmlDocument();
+ xDoc.LoadXml(databaseString);
+ XmlNodeList DSiWareTitlesXMLNodes = xDoc.GetElementsByTagName(DSiWareTag);
+ ToolStripMenuItem[] DSiWareTitleCollection = new ToolStripMenuItem[DSiWareTitlesXMLNodes.Count];
+
+ for (int x = 0; x < DSiWareTitlesXMLNodes.Count; x++)
+ {
+ ToolStripMenuItem XMLToolStripItem = new ToolStripMenuItem();
+ XmlAttributeCollection XMLAttributes = DSiWareTitlesXMLNodes[x].Attributes;
+
+ string titleID = "";
+ string descname = "";
+ bool dangerous = false;
+ bool ticket = true;
+
+ XmlNodeList ChildrenOfTheNode = DSiWareTitlesXMLNodes[x].ChildNodes;
+
+ for (int z = 0; z < ChildrenOfTheNode.Count; z++)
+ {
+ switch (ChildrenOfTheNode[z].Name)
+ {
+ case "name":
+ descname = ChildrenOfTheNode[z].InnerText;
+ break;
+ case "titleID":
+ titleID = ChildrenOfTheNode[z].InnerText;
+ break;
+ case "version":
+ string[] versions = ChildrenOfTheNode[z].InnerText.Split(',');
+ // Add to region things?
+ if (XMLToolStripItem.DropDownItems.Count > 0)
+ {
+ for (int b = 0; b < XMLToolStripItem.DropDownItems.Count; b++)
+ {
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ ToolStripMenuItem regitem =
+ (ToolStripMenuItem)XMLToolStripItem.DropDownItems[b];
+ regitem.DropDownItems.Add("Latest Version");
+ for (int y = 0; y < versions.Length; y++)
+ {
+ regitem.DropDownItems.Add("v" + versions[y]);
+ }
+ //regitem.DropDownItemClicked += new ToolStripItemClickedEventHandler(deepitem_clicked);
+ }
+ }
+ }
+ else
+ {
+ XMLToolStripItem.DropDownItems.Add("Latest Version");
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ for (int y = 0; y < versions.Length; y++)
+ {
+ XMLToolStripItem.DropDownItems.Add("v" + versions[y]);
+ }
+ }
+ }
+ break;
+ case "region":
+ string[] regions = ChildrenOfTheNode[z].InnerText.Split(',');
+ if (ChildrenOfTheNode[z].InnerText != "")
+ {
+ for (int y = 0; y < regions.Length; y++)
+ {
+ XMLToolStripItem.DropDownItems.Add(RegionFromIndex(Convert.ToInt32(regions[y])));
+ }
+ }
+ break;
+ default:
+ break;
+ case "ticket":
+ ticket = Convert.ToBoolean(ChildrenOfTheNode[z].InnerText);
+ break;
+ case "danger":
+ dangerous = true;
+ XMLToolStripItem.ToolTipText = ChildrenOfTheNode[z].InnerText;
+ break;
+ }
+ XMLToolStripItem.Image = SelectItemImage(ticket, dangerous);
+
+ if (titleID != "")
+ {
+ XMLToolStripItem.Text = String.Format("{0} - {1}", titleID, descname);
+ }
+ else
+ { // Wait what?
+ XMLToolStripItem.Text = descname;
+ }
+ }
+
+ DSiWareTitleCollection[x] = XMLToolStripItem;
+ }
+
+ return DSiWareTitleCollection;
+ }
}
}
diff --git a/NUS Downloader/Form1.Designer.cs b/NUS Downloader/Form1.Designer.cs
index 4f1f525..a2028fd 100644
--- a/NUS Downloader/Form1.Designer.cs
+++ b/NUS Downloader/Form1.Designer.cs
@@ -44,23 +44,12 @@ namespace NUS_Downloader
this.label1 = new System.Windows.Forms.Label();
this.wadnamebox = new System.Windows.Forms.TextBox();
this.databaseStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.SystemMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.IOSMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.VCMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.C64MenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.GenesisMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.MSXMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.N64MenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.NeoGeoMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.NESMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.SegaMSMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.SNESMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.TurboGrafx16MenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.TurboGrafxCDMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.VCArcadeMenuList = new System.Windows.Forms.ToolStripMenuItem();
- this.WiiWareMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
+ this.dSiWareToolStripMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.RegionCodesList = new System.Windows.Forms.ToolStripMenuItem();
+ this.wiiRegionCodesMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.dsiRegionCodesMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.extrasStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
@@ -98,10 +87,28 @@ namespace NUS_Downloader
this.packbox = new System.Windows.Forms.CheckBox();
this.decryptbox = new System.Windows.Forms.CheckBox();
this.localuse = new System.Windows.Forms.CheckBox();
+ this.SystemMenuList = new System.Windows.Forms.ToolStripMenuItem();
this.systemFakeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.IOSMenuList = new System.Windows.Forms.ToolStripMenuItem();
this.iosFakeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.VCMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.C64MenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.GenesisMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.MSXMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.N64MenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.NeoGeoMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.NESMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.SegaMSMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.SNESMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.TurboGrafx16MenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.TurboGrafxCDMenuList = new System.Windows.Forms.ToolStripMenuItem();
+ this.VCArcadeMenuList = new System.Windows.Forms.ToolStripMenuItem();
this.vcFakeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.WiiWareMenuList = new System.Windows.Forms.ToolStripMenuItem();
this.wwFakeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.dsiSystemToolStripMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.dsiFakeSystemToolStripMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.dSiWareFakeToolStripMenu = new System.Windows.Forms.ToolStripMenuItem();
this.updateDatabaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadInfoFromTMDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.proxySettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -204,118 +211,32 @@ namespace NUS_Downloader
this.vcFakeMenuItem,
this.WiiWareMenuList,
this.wwFakeMenuItem,
+ this.toolStripSeparator5,
+ this.dsiSystemToolStripMenu,
+ this.dsiFakeSystemToolStripMenu,
+ this.dSiWareToolStripMenu,
+ this.dSiWareFakeToolStripMenu,
this.toolStripSeparator1,
this.RegionCodesList,
this.toolStripSeparator4,
this.updateDatabaseToolStripMenuItem});
this.databaseStrip.Name = "databaseStrip";
this.databaseStrip.ShowItemToolTips = false;
- this.databaseStrip.Size = new System.Drawing.Size(159, 236);
+ this.databaseStrip.Size = new System.Drawing.Size(159, 352);
this.databaseStrip.Text = "Hidden";
this.databaseStrip.Closed += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this.anyStrip_Closed);
//
- // SystemMenuList
+ // toolStripSeparator5
//
- this.SystemMenuList.AutoSize = false;
- this.SystemMenuList.Name = "SystemMenuList";
- this.SystemMenuList.Size = new System.Drawing.Size(158, 22);
- this.SystemMenuList.Text = "System";
+ this.toolStripSeparator5.Name = "toolStripSeparator5";
+ this.toolStripSeparator5.Size = new System.Drawing.Size(155, 6);
//
- // IOSMenuList
+ // dSiWareToolStripMenu
//
- this.IOSMenuList.Name = "IOSMenuList";
- this.IOSMenuList.Size = new System.Drawing.Size(158, 22);
- this.IOSMenuList.Text = "IOS";
- //
- // VCMenuList
- //
- this.VCMenuList.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.C64MenuList,
- this.GenesisMenuList,
- this.MSXMenuList,
- this.N64MenuList,
- this.NeoGeoMenuList,
- this.NESMenuList,
- this.SegaMSMenuList,
- this.SNESMenuList,
- this.TurboGrafx16MenuList,
- this.TurboGrafxCDMenuList,
- this.VCArcadeMenuList});
- this.VCMenuList.Name = "VCMenuList";
- this.VCMenuList.Size = new System.Drawing.Size(158, 22);
- this.VCMenuList.Text = "Virtual Console";
- //
- // C64MenuList
- //
- this.C64MenuList.Name = "C64MenuList";
- this.C64MenuList.Size = new System.Drawing.Size(182, 22);
- this.C64MenuList.Text = "Commodore 64";
- //
- // GenesisMenuList
- //
- this.GenesisMenuList.Name = "GenesisMenuList";
- this.GenesisMenuList.Size = new System.Drawing.Size(182, 22);
- this.GenesisMenuList.Text = "Mega Drive/Genesis";
- //
- // MSXMenuList
- //
- this.MSXMenuList.Name = "MSXMenuList";
- this.MSXMenuList.Size = new System.Drawing.Size(182, 22);
- this.MSXMenuList.Text = "MSX";
- //
- // N64MenuList
- //
- this.N64MenuList.Name = "N64MenuList";
- this.N64MenuList.Size = new System.Drawing.Size(182, 22);
- this.N64MenuList.Text = "Nintendo 64";
- //
- // NeoGeoMenuList
- //
- this.NeoGeoMenuList.Name = "NeoGeoMenuList";
- this.NeoGeoMenuList.Size = new System.Drawing.Size(182, 22);
- this.NeoGeoMenuList.Text = "NeoGeo";
- //
- // NESMenuList
- //
- this.NESMenuList.Name = "NESMenuList";
- this.NESMenuList.Size = new System.Drawing.Size(182, 22);
- this.NESMenuList.Text = "NES";
- //
- // SegaMSMenuList
- //
- this.SegaMSMenuList.Name = "SegaMSMenuList";
- this.SegaMSMenuList.Size = new System.Drawing.Size(182, 22);
- this.SegaMSMenuList.Text = "Sega Master System";
- //
- // SNESMenuList
- //
- this.SNESMenuList.Name = "SNESMenuList";
- this.SNESMenuList.Size = new System.Drawing.Size(182, 22);
- this.SNESMenuList.Text = "SNES";
- //
- // TurboGrafx16MenuList
- //
- this.TurboGrafx16MenuList.Name = "TurboGrafx16MenuList";
- this.TurboGrafx16MenuList.Size = new System.Drawing.Size(182, 22);
- this.TurboGrafx16MenuList.Text = "TruboGrafx-16";
- //
- // TurboGrafxCDMenuList
- //
- this.TurboGrafxCDMenuList.Name = "TurboGrafxCDMenuList";
- this.TurboGrafxCDMenuList.Size = new System.Drawing.Size(182, 22);
- this.TurboGrafxCDMenuList.Text = "TurboGrafx-CD";
- //
- // VCArcadeMenuList
- //
- this.VCArcadeMenuList.Name = "VCArcadeMenuList";
- this.VCArcadeMenuList.Size = new System.Drawing.Size(182, 22);
- this.VCArcadeMenuList.Text = "Virtual Console Arcade";
- //
- // WiiWareMenuList
- //
- this.WiiWareMenuList.Name = "WiiWareMenuList";
- this.WiiWareMenuList.Size = new System.Drawing.Size(158, 22);
- this.WiiWareMenuList.Text = "WiiWare";
+ this.dSiWareToolStripMenu.Image = global::NUS_Downloader.Properties.Resources.dsi16x16;
+ this.dSiWareToolStripMenu.Name = "dSiWareToolStripMenu";
+ this.dSiWareToolStripMenu.Size = new System.Drawing.Size(158, 22);
+ this.dSiWareToolStripMenu.Text = "DSiWare";
//
// toolStripSeparator1
//
@@ -324,10 +245,26 @@ namespace NUS_Downloader
//
// RegionCodesList
//
+ this.RegionCodesList.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.wiiRegionCodesMenu,
+ this.dsiRegionCodesMenu});
this.RegionCodesList.Name = "RegionCodesList";
this.RegionCodesList.Size = new System.Drawing.Size(158, 22);
this.RegionCodesList.Text = "Region Codes";
- this.RegionCodesList.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.RegionCodesList_DropDownItemClicked);
+ //
+ // wiiRegionCodesMenu
+ //
+ this.wiiRegionCodesMenu.Name = "wiiRegionCodesMenu";
+ this.wiiRegionCodesMenu.Size = new System.Drawing.Size(89, 22);
+ this.wiiRegionCodesMenu.Text = "Wii";
+ this.wiiRegionCodesMenu.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.wiiRegionCodesMenu_DropDownItemClicked);
+ //
+ // dsiRegionCodesMenu
+ //
+ this.dsiRegionCodesMenu.Name = "dsiRegionCodesMenu";
+ this.dsiRegionCodesMenu.Size = new System.Drawing.Size(89, 22);
+ this.dsiRegionCodesMenu.Text = "DSi";
+ this.dsiRegionCodesMenu.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.dsiRegionCodesMenu_DropDownItemClicked);
//
// toolStripSeparator4
//
@@ -348,7 +285,7 @@ namespace NUS_Downloader
this.donateToolStripMenuItem,
this.aboutNUSDToolStripMenuItem});
this.extrasStrip.Name = "extrasStrip";
- this.extrasStrip.Size = new System.Drawing.Size(178, 170);
+ this.extrasStrip.Size = new System.Drawing.Size(178, 148);
this.extrasStrip.Text = "Hidden";
this.extrasStrip.Closed += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this.anyStrip_Closed);
this.extrasStrip.Opening += new System.ComponentModel.CancelEventHandler(this.extrasStrip_Opening);
@@ -767,6 +704,14 @@ namespace NUS_Downloader
this.localuse.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.localuse.UseVisualStyleBackColor = true;
//
+ // SystemMenuList
+ //
+ this.SystemMenuList.AutoSize = false;
+ this.SystemMenuList.Image = global::NUS_Downloader.Properties.Resources.wii16x16_copy;
+ this.SystemMenuList.Name = "SystemMenuList";
+ this.SystemMenuList.Size = new System.Drawing.Size(158, 22);
+ this.SystemMenuList.Text = "System";
+ //
// systemFakeMenuItem
//
this.systemFakeMenuItem.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
@@ -775,6 +720,13 @@ namespace NUS_Downloader
this.systemFakeMenuItem.Text = "System";
this.systemFakeMenuItem.Visible = false;
//
+ // IOSMenuList
+ //
+ this.IOSMenuList.Image = global::NUS_Downloader.Properties.Resources.wii16x16_copy;
+ this.IOSMenuList.Name = "IOSMenuList";
+ this.IOSMenuList.Size = new System.Drawing.Size(158, 22);
+ this.IOSMenuList.Text = "IOS";
+ //
// iosFakeMenuItem
//
this.iosFakeMenuItem.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
@@ -783,6 +735,91 @@ namespace NUS_Downloader
this.iosFakeMenuItem.Text = "IOS";
this.iosFakeMenuItem.Visible = false;
//
+ // VCMenuList
+ //
+ this.VCMenuList.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.C64MenuList,
+ this.GenesisMenuList,
+ this.MSXMenuList,
+ this.N64MenuList,
+ this.NeoGeoMenuList,
+ this.NESMenuList,
+ this.SegaMSMenuList,
+ this.SNESMenuList,
+ this.TurboGrafx16MenuList,
+ this.TurboGrafxCDMenuList,
+ this.VCArcadeMenuList});
+ this.VCMenuList.Image = global::NUS_Downloader.Properties.Resources.wii16x16_copy;
+ this.VCMenuList.Name = "VCMenuList";
+ this.VCMenuList.Size = new System.Drawing.Size(158, 22);
+ this.VCMenuList.Text = "Virtual Console";
+ //
+ // C64MenuList
+ //
+ this.C64MenuList.Name = "C64MenuList";
+ this.C64MenuList.Size = new System.Drawing.Size(182, 22);
+ this.C64MenuList.Text = "Commodore 64";
+ //
+ // GenesisMenuList
+ //
+ this.GenesisMenuList.Name = "GenesisMenuList";
+ this.GenesisMenuList.Size = new System.Drawing.Size(182, 22);
+ this.GenesisMenuList.Text = "Mega Drive/Genesis";
+ //
+ // MSXMenuList
+ //
+ this.MSXMenuList.Name = "MSXMenuList";
+ this.MSXMenuList.Size = new System.Drawing.Size(182, 22);
+ this.MSXMenuList.Text = "MSX";
+ //
+ // N64MenuList
+ //
+ this.N64MenuList.Name = "N64MenuList";
+ this.N64MenuList.Size = new System.Drawing.Size(182, 22);
+ this.N64MenuList.Text = "Nintendo 64";
+ //
+ // NeoGeoMenuList
+ //
+ this.NeoGeoMenuList.Name = "NeoGeoMenuList";
+ this.NeoGeoMenuList.Size = new System.Drawing.Size(182, 22);
+ this.NeoGeoMenuList.Text = "NeoGeo";
+ //
+ // NESMenuList
+ //
+ this.NESMenuList.Name = "NESMenuList";
+ this.NESMenuList.Size = new System.Drawing.Size(182, 22);
+ this.NESMenuList.Text = "NES";
+ //
+ // SegaMSMenuList
+ //
+ this.SegaMSMenuList.Name = "SegaMSMenuList";
+ this.SegaMSMenuList.Size = new System.Drawing.Size(182, 22);
+ this.SegaMSMenuList.Text = "Sega Master System";
+ //
+ // SNESMenuList
+ //
+ this.SNESMenuList.Name = "SNESMenuList";
+ this.SNESMenuList.Size = new System.Drawing.Size(182, 22);
+ this.SNESMenuList.Text = "SNES";
+ //
+ // TurboGrafx16MenuList
+ //
+ this.TurboGrafx16MenuList.Name = "TurboGrafx16MenuList";
+ this.TurboGrafx16MenuList.Size = new System.Drawing.Size(182, 22);
+ this.TurboGrafx16MenuList.Text = "TruboGrafx-16";
+ //
+ // TurboGrafxCDMenuList
+ //
+ this.TurboGrafxCDMenuList.Name = "TurboGrafxCDMenuList";
+ this.TurboGrafxCDMenuList.Size = new System.Drawing.Size(182, 22);
+ this.TurboGrafxCDMenuList.Text = "TurboGrafx-CD";
+ //
+ // VCArcadeMenuList
+ //
+ this.VCArcadeMenuList.Name = "VCArcadeMenuList";
+ this.VCArcadeMenuList.Size = new System.Drawing.Size(182, 22);
+ this.VCArcadeMenuList.Text = "Virtual Console Arcade";
+ //
// vcFakeMenuItem
//
this.vcFakeMenuItem.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
@@ -791,6 +828,13 @@ namespace NUS_Downloader
this.vcFakeMenuItem.Text = "Virtual Console";
this.vcFakeMenuItem.Visible = false;
//
+ // WiiWareMenuList
+ //
+ this.WiiWareMenuList.Image = global::NUS_Downloader.Properties.Resources.wii16x16_copy;
+ this.WiiWareMenuList.Name = "WiiWareMenuList";
+ this.WiiWareMenuList.Size = new System.Drawing.Size(158, 22);
+ this.WiiWareMenuList.Text = "WiiWare";
+ //
// wwFakeMenuItem
//
this.wwFakeMenuItem.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
@@ -799,6 +843,29 @@ namespace NUS_Downloader
this.wwFakeMenuItem.Text = "WiiWare";
this.wwFakeMenuItem.Visible = false;
//
+ // dsiSystemToolStripMenu
+ //
+ this.dsiSystemToolStripMenu.Image = global::NUS_Downloader.Properties.Resources.dsi16x16;
+ this.dsiSystemToolStripMenu.Name = "dsiSystemToolStripMenu";
+ this.dsiSystemToolStripMenu.Size = new System.Drawing.Size(158, 22);
+ this.dsiSystemToolStripMenu.Text = "System";
+ //
+ // dsiFakeSystemToolStripMenu
+ //
+ this.dsiFakeSystemToolStripMenu.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
+ this.dsiFakeSystemToolStripMenu.Name = "dsiFakeSystemToolStripMenu";
+ this.dsiFakeSystemToolStripMenu.Size = new System.Drawing.Size(158, 22);
+ this.dsiFakeSystemToolStripMenu.Text = "System";
+ this.dsiFakeSystemToolStripMenu.Visible = false;
+ //
+ // dSiWareFakeToolStripMenu
+ //
+ this.dSiWareFakeToolStripMenu.Image = global::NUS_Downloader.Properties.Resources.arrow_ticker;
+ this.dSiWareFakeToolStripMenu.Name = "dSiWareFakeToolStripMenu";
+ this.dSiWareFakeToolStripMenu.Size = new System.Drawing.Size(158, 22);
+ this.dSiWareFakeToolStripMenu.Text = "DSiWare";
+ this.dSiWareFakeToolStripMenu.Visible = false;
+ //
// updateDatabaseToolStripMenuItem
//
this.updateDatabaseToolStripMenuItem.Image = global::NUS_Downloader.Properties.Resources.database_save;
@@ -1111,6 +1178,13 @@ namespace NUS_Downloader
private System.Windows.Forms.ToolStripMenuItem databaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem localTicketInventoryToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem donateToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
+ private System.Windows.Forms.ToolStripMenuItem dsiSystemToolStripMenu;
+ private System.Windows.Forms.ToolStripMenuItem dsiFakeSystemToolStripMenu;
+ private System.Windows.Forms.ToolStripMenuItem dSiWareToolStripMenu;
+ private System.Windows.Forms.ToolStripMenuItem dSiWareFakeToolStripMenu;
+ private System.Windows.Forms.ToolStripMenuItem wiiRegionCodesMenu;
+ private System.Windows.Forms.ToolStripMenuItem dsiRegionCodesMenu;
}
}
diff --git a/NUS Downloader/Form1.cs b/NUS Downloader/Form1.cs
index c841ad3..b7b7f95 100644
--- a/NUS Downloader/Form1.cs
+++ b/NUS Downloader/Form1.cs
@@ -50,8 +50,6 @@ namespace NUS_Downloader
private string version = "v2.0";
#endif
- private static bool dsidecrypt = false;
-
// Cross-thread Windows Formsing
private delegate void AddToolStripItemToStripCallback(
ToolStripMenuItem menulist, ToolStripMenuItem[] additionitems);
@@ -73,8 +71,9 @@ namespace NUS_Downloader
private string proxy_usr;
private string proxy_pwd;
- // Database thread
- private BackgroundWorker fds;
+ // Database threads
+ private BackgroundWorker databaseWorker;
+ private BackgroundWorker dsiDatabaseWorker;
// Scripts Thread
private BackgroundWorker scriptsWorker;
@@ -124,27 +123,7 @@ namespace NUS_Downloader
else
{
BootChecks();
- }
-
-
-
- /* Fix proxy entry.
- if (!(String.IsNullOrEmpty(proxy_url)))
- while (String.IsNullOrEmpty(proxy_pwd))
- Thread.Sleep(1000);
-
- if ((args.Length == 1) && (args[0] == "folderfix"))
- {
- // Organizing folders from past NUSD releases...
- BackgroundWorker folder_fixer = new BackgroundWorker();
- folder_fixer.DoWork += new DoWorkEventHandler(ReorganizePreviousFolderStructure);
- folder_fixer.RunWorkerCompleted += new RunWorkerCompletedEventHandler(ReorganizePreviousFolderStructure_Completed);
- Debug.WriteLine("folderfix active");
- WriteStatus("Organizing your old folder structure...");
- folder_fixer.RunWorkerAsync();
- }*/
-
-
+ }
}
private void RunCommandMode(string[] args)
@@ -249,12 +228,19 @@ namespace NUS_Downloader
WriteStatus("\r\n");
}
- // Database BGLoader
- this.fds = new BackgroundWorker();
- this.fds.DoWork += new DoWorkEventHandler(DoAllDatabaseyStuff);
- this.fds.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DoAllDatabaseyStuff_Completed);
- this.fds.ProgressChanged += new ProgressChangedEventHandler(DoAllDatabaseyStuff_ProgressChanged);
- this.fds.WorkerReportsProgress = true;
+ // Database BackgroundWorker
+ this.databaseWorker = new BackgroundWorker();
+ this.databaseWorker.DoWork += new DoWorkEventHandler(DoAllDatabaseyStuff);
+ this.databaseWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DoAllDatabaseyStuff_Completed);
+ this.databaseWorker.ProgressChanged += new ProgressChangedEventHandler(DoAllDatabaseyStuff_ProgressChanged);
+ this.databaseWorker.WorkerReportsProgress = true;
+
+ // DSi Database BackgroundWorker
+ this.dsiDatabaseWorker = new BackgroundWorker();
+ this.dsiDatabaseWorker.DoWork += new DoWorkEventHandler(DSiDatabaseWork);
+ this.dsiDatabaseWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DSiDatabaseWork_Completed);
+ this.dsiDatabaseWorker.ProgressChanged += new ProgressChangedEventHandler(DSiDatabaseWork_ProgressChanged);
+ this.dsiDatabaseWorker.WorkerReportsProgress = true;
// Scripts BGLoader
this.scriptsWorker = new BackgroundWorker();
@@ -289,20 +275,17 @@ namespace NUS_Downloader
return;
}
- // Check for DSi common key bin file...
+ /* Check for DSi common key bin file...
if (NUSDFileExists("dsikey.bin") == true)
{
WriteStatus("DSi Common Key detected.");
dsidecrypt = true;
- }
-
+ }*/
+ /*
// Check for database.xml
if (NUSDFileExists("database.xml") == false)
{
WriteStatus("Database.xml not found. Title database not usable!");
- /*databaseButton.Click -= new System.EventHandler(this.button4_Click);
- databaseButton.Click += new System.EventHandler(this.updateDatabaseToolStripMenuItem_Click);
- databaseButton.Text = "Download DB"; */
DatabaseEnabled(false);
updateDatabaseToolStripMenuItem.Enabled = true;
updateDatabaseToolStripMenuItem.Visible = true;
@@ -324,6 +307,59 @@ namespace NUS_Downloader
this.fds.RunWorkerAsync();
}
+ // Check for database.xml
+ if (NUSDFileExists("dsidatabase.xml") == false)
+ {
+ WriteStatus("DSiDatabase.xml not found. DSi database not usable!");
+ DatabaseEnabled(false);
+ updateDatabaseToolStripMenuItem.Enabled = true;
+ updateDatabaseToolStripMenuItem.Visible = true;
+ updateDatabaseToolStripMenuItem.Text = "Download Database";
+ }
+ else
+ {
+ Database db = new Database();
+ db.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "database.xml"));
+ string version = db.GetDatabaseVersion();
+ WriteStatus("Database.xml detected.");
+ WriteStatus(" - Version: " + version);
+ updateDatabaseToolStripMenuItem.Text = "Update Database";
+ //databaseButton.Enabled = false;
+ //databaseButton.Text = "DB Loading";
+ databaseButton.Text = " [ ]";
+ databaseButton.Image = Properties.Resources.arrow_ticker;
+ // Load it up...
+ this.fds.RunWorkerAsync();
+ }*/
+
+ if (NUSDFileExists("database.xml") == true)
+ {
+ Database db = new Database();
+ db.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "database.xml"));
+ string version = db.GetDatabaseVersion();
+ WriteStatus("Database.xml detected.");
+ WriteStatus(" - Version: " + version);
+ updateDatabaseToolStripMenuItem.Text = "Update Database";
+ databaseButton.Text = " [ ]";
+ databaseButton.Image = Properties.Resources.arrow_ticker;
+ // Load it up...
+ this.databaseWorker.RunWorkerAsync();
+ }
+
+ if (NUSDFileExists("dsidatabase.xml") == true)
+ {
+ Database db = new Database();
+ db.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "dsidatabase.xml"));
+ string version = db.GetDatabaseVersion();
+ WriteStatus("DSiDatabase.xml detected.");
+ WriteStatus(" - Version: " + version);
+ updateDatabaseToolStripMenuItem.Text = "Update Database";
+ databaseButton.Text = " [ ]";
+ databaseButton.Image = Properties.Resources.arrow_ticker;
+ // Load it up...
+ this.dsiDatabaseWorker.RunWorkerAsync();
+ }
+
// Load scripts (local)
RunScriptOrganizer();
@@ -818,14 +854,6 @@ namespace NUS_Downloader
// Cannot Pack WADs
packbox.Checked = false;
packbox.Enabled = false;
-
- // Can decrypt if dsikey exists...
- if (dsidecrypt == false)
- {
- decryptbox.Checked = false;
- decryptbox.Enabled = false;
- }
-
wadnamebox.Enabled = false;
wadnamebox.Text = "";
}
@@ -969,7 +997,10 @@ namespace NUS_Downloader
C64MenuList, NeoGeoMenuList, NESMenuList,
SNESMenuList, N64MenuList, TurboGrafx16MenuList,
TurboGrafxCDMenuList, MSXMenuList, SegaMSMenuList,
- GenesisMenuList, VCArcadeMenuList
+ GenesisMenuList, VCArcadeMenuList,
+
+ // DSi Entries
+ dsiSystemToolStripMenu, dSiWareToolStripMenu
};
foreach (System.Windows.Forms.ToolStripMenuItem tsmiclear in thingstoclear)
@@ -1100,6 +1131,74 @@ namespace NUS_Downloader
worker.ReportProgress(100);
}
+ ///
+ /// Fills the database strip with the local database.xml file.
+ ///
+ private void FillDSiDatabaseStrip(BackgroundWorker worker)
+ {
+ // Set fake items visible and real ones not. Only way to stop buggy enabled stuff.
+ SetPropertyThreadSafe(dsiSystemToolStripMenu, false, "Visible");
+ SetPropertyThreadSafe(dSiWareToolStripMenu, false, "Visible");
+
+ SetPropertyThreadSafe(dsiFakeSystemToolStripMenu, true, "Visible");
+ SetPropertyThreadSafe(dSiWareFakeToolStripMenu, true, "Visible");
+
+ Database databaseObj = new Database();
+ databaseObj.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "dsidatabase.xml"));
+
+ ToolStripMenuItem[] systemItems = databaseObj.LoadDSiSystemTitles();
+ for (int a = 0; a < systemItems.Length; a++)
+ {
+ systemItems[a].DropDownItemClicked += new ToolStripItemClickedEventHandler(DatabaseItem_Clicked);
+ for (int b = 0; b < systemItems[a].DropDownItems.Count; b++)
+ {
+ ToolStripMenuItem syslowerentry = (ToolStripMenuItem)systemItems[a].DropDownItems[b];
+ if (syslowerentry.DropDownItems.Count > 0)
+ {
+ syslowerentry.DropDownItemClicked += new ToolStripItemClickedEventHandler(DatabaseItem_Clicked);
+ }
+ }
+ }
+ Array.Sort(systemItems, delegate(ToolStripMenuItem tsmi1, ToolStripMenuItem tsmi2)
+ {
+ return tsmi1.Text
+ .Substring(18, tsmi1.Text.Length - 19).CompareTo(tsmi2.Text.Substring(18, tsmi2.Text.Length - 19));
+ });
+ AddToolStripItemToStrip(dsiSystemToolStripMenu, systemItems);
+
+ SetPropertyThreadSafe(dsiFakeSystemToolStripMenu, false, "Visible");
+ SetPropertyThreadSafe(dsiSystemToolStripMenu, true, "Visible");
+
+ Debug.WriteLine("Database: DSiSysTitles added");
+ worker.ReportProgress(50);
+
+ ToolStripMenuItem[] dsiWareItems = databaseObj.LoadDsiWareTitles();
+ for (int a = 0; a < dsiWareItems.Length; a++)
+ {
+ dsiWareItems[a].DropDownItemClicked += new ToolStripItemClickedEventHandler(DatabaseItem_Clicked);
+ for (int b = 0; b < dsiWareItems[a].DropDownItems.Count; b++)
+ {
+ ToolStripMenuItem lowerentry = (ToolStripMenuItem)dsiWareItems[a].DropDownItems[b];
+ if (lowerentry.DropDownItems.Count > 0)
+ {
+ lowerentry.DropDownItemClicked += new ToolStripItemClickedEventHandler(DatabaseItem_Clicked);
+ }
+
+ }
+ }
+ Array.Sort(dsiWareItems, delegate(ToolStripMenuItem tsmi1, ToolStripMenuItem tsmi2)
+ {
+ return tsmi1.Text
+ .Substring(18, tsmi1.Text.Length - 19).CompareTo(tsmi2.Text.Substring(18, tsmi2.Text.Length - 19));
+ });
+ AddToolStripItemToStrip(dSiWareToolStripMenu, dsiWareItems);
+
+ SetPropertyThreadSafe(dSiWareFakeToolStripMenu, false, "Visible");
+ SetPropertyThreadSafe(dSiWareToolStripMenu, true, "Visible");
+ Debug.WriteLine("Database: DSiWareTitles added");
+ worker.ReportProgress(100);
+ }
+
///
/// Adds the tool strip item to strip.
///
@@ -1228,6 +1327,13 @@ namespace NUS_Downloader
Regex RegionEntry = new Regex(@"[0-9A-Z][0-9A-Z] \(.*\)");
Regex VersionEntry = new Regex(@"v[0-9]*.*");
+ object[] wiiMenuLists = new object[] {
+ SystemMenuList, IOSMenuList, WiiWareMenuList, VCMenuList
+ };
+ object[] dsiMenuLists = new object[] {
+ dsiSystemToolStripMenu, dSiWareToolStripMenu
+ };
+
// This item is a Titleid - Descname entry
if (IdandTitle.IsMatch(e.ClickedItem.Text))
{
@@ -1247,6 +1353,18 @@ namespace NUS_Downloader
// Check for danger item
if ((e.ClickedItem.Image) == (Database.redgreen) || (e.ClickedItem.Image) == (Database.redorange))
WriteStatus("\n" + e.ClickedItem.ToolTipText);
+
+ // Set server selection
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in wiiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 0;
+ }
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in dsiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 1;
+ }
}
// Region ClickedItem
@@ -1271,6 +1389,18 @@ namespace NUS_Downloader
// Check for danger item
if ((e.ClickedItem.OwnerItem.Image) == (Database.redgreen) || (e.ClickedItem.OwnerItem.Image) == (Database.redorange))
WriteStatus("\n" + e.ClickedItem.OwnerItem.ToolTipText);
+
+ // Set server selection
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in wiiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 0;
+ }
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in dsiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 1;
+ }
}
// Version ClickedItem
@@ -1315,6 +1445,18 @@ namespace NUS_Downloader
// Check for danger item
if ((e.ClickedItem.OwnerItem.OwnerItem.Image) == (Database.redgreen) || (e.ClickedItem.OwnerItem.OwnerItem.Image) == (Database.redorange))
WriteStatus("\n" + e.ClickedItem.OwnerItem.OwnerItem.ToolTipText);
+
+ // Set server selection
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in wiiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 0;
+ }
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in dsiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 1;
+ }
}
else
{
@@ -1328,6 +1470,18 @@ namespace NUS_Downloader
// Check for danger item
if ((e.ClickedItem.OwnerItem.Image) == (Database.redgreen) || (e.ClickedItem.OwnerItem.Image) == (Database.redorange))
WriteStatus("\n" + e.ClickedItem.OwnerItem.ToolTipText);
+
+ // Set server selection
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in wiiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 0;
+ }
+ foreach (System.Windows.Forms.ToolStripMenuItem tsmi in dsiMenuLists)
+ {
+ if (tsmi.Name == e.ClickedItem.OwnerItem.OwnerItem.Name)
+ consoleCBox.SelectedIndex = 1;
+ }
}
}
}
@@ -1388,6 +1542,9 @@ namespace NUS_Downloader
return;
}
+ wiiRegionCodesMenu.DropDownItems.Clear();
+ dsiRegionCodesMenu.DropDownItems.Clear();
+
Database databaseObj = new Database();
databaseObj.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "database.xml"));
@@ -1396,16 +1553,21 @@ namespace NUS_Downloader
// For each child node (region node)
for (int z = 0; z < regionItems.Length; z++)
{
- RegionCodesList.DropDownItems.Add(regionItems[z].Text);
+ wiiRegionCodesMenu.DropDownItems.Add(regionItems[z].Text);
+ }
+
+ Database dsiDatabaseObj = new Database();
+ dsiDatabaseObj.LoadDatabaseToStream(Path.Combine(CURRENT_DIR, "dsidatabase.xml"));
+
+ ToolStripMenuItem[] dsiRegionItems = dsiDatabaseObj.LoadRegionCodes();
+
+ // For each child node (region node)
+ for (int z = 0; z < dsiRegionItems.Length; z++)
+ {
+ dsiRegionCodesMenu.DropDownItems.Add(dsiRegionItems[z].Text);
}
}
- private void RegionCodesList_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
- {
- if (titleidbox.Text.Length == 16)
- titleidbox.Text = titleidbox.Text.Substring(0, 14) + e.ClickedItem.Text.Substring(0, 2);
- }
-
///
/// Removes the illegal characters.
///
@@ -1671,7 +1833,7 @@ namespace NUS_Downloader
}
// Load it up...
- this.fds.RunWorkerAsync();
+ this.databaseWorker.RunWorkerAsync();
if (isCreation)
{
@@ -2755,5 +2917,45 @@ namespace NUS_Downloader
//TODO: Organize how this will work...
Process.Start("http://wb3000.atspace.name/donations.html");
}
+
+ private void DSiDatabaseWork(object sender, System.ComponentModel.DoWorkEventArgs e)
+ {
+ while (databaseWorker.IsBusy)
+ {
+ Thread.Sleep(1000);
+ }
+ BackgroundWorker worker = sender as BackgroundWorker;
+ FillDSiDatabaseStrip(worker);
+ LoadRegionCodes();
+ //FillDatabaseScripts();
+ ShowInnerToolTips(false);
+ }
+
+ private void DSiDatabaseWork_Completed(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
+ {
+ this.databaseButton.Text = "Database...";
+ this.databaseButton.Image = null;
+ }
+
+ private void DSiDatabaseWork_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
+ {
+ if (e.ProgressPercentage == 50)
+ databaseButton.Text = " [. ]";
+ else if (e.ProgressPercentage == 100)
+ databaseButton.Text = " [..]";
+
+ }
+
+ private void wiiRegionCodesMenu_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
+ {
+ if (titleidbox.Text.Length == 16)
+ titleidbox.Text = titleidbox.Text.Substring(0, 14) + e.ClickedItem.Text.Substring(0, 2);
+ }
+
+ private void dsiRegionCodesMenu_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
+ {
+ if (titleidbox.Text.Length == 16)
+ titleidbox.Text = titleidbox.Text.Substring(0, 14) + e.ClickedItem.Text.Substring(0, 2);
+ }
}
}
\ No newline at end of file
diff --git a/NUS Downloader/Latest/NUS Downloader.exe b/NUS Downloader/Latest/NUS Downloader.exe
index 37cd0e2..65d0bef 100644
Binary files a/NUS Downloader/Latest/NUS Downloader.exe and b/NUS Downloader/Latest/NUS Downloader.exe differ
diff --git a/NUS Downloader/NUS Downloader.csproj b/NUS Downloader/NUS Downloader.csproj
index 6e9fe5c..3c39912 100644
--- a/NUS Downloader/NUS Downloader.csproj
+++ b/NUS Downloader/NUS Downloader.csproj
@@ -142,6 +142,8 @@
+
+
@@ -165,6 +167,7 @@
+
diff --git a/NUS Downloader/Properties/Resources.Designer.cs b/NUS Downloader/Properties/Resources.Designer.cs
index d51253a..67f8d19 100644
--- a/NUS Downloader/Properties/Resources.Designer.cs
+++ b/NUS Downloader/Properties/Resources.Designer.cs
@@ -179,6 +179,13 @@ namespace NUS_Downloader.Properties {
}
}
+ internal static System.Drawing.Bitmap dsi16x16 {
+ get {
+ object obj = ResourceManager.GetObject("dsi16x16", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
internal static System.Drawing.Bitmap folder {
get {
object obj = ResourceManager.GetObject("folder", resourceCulture);
@@ -305,6 +312,20 @@ namespace NUS_Downloader.Properties {
}
}
+ internal static System.Drawing.Bitmap wii16x16 {
+ get {
+ object obj = ResourceManager.GetObject("wii16x16", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap wii16x16_copy {
+ get {
+ object obj = ResourceManager.GetObject("wii16x16 copy", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
internal static System.Drawing.Bitmap wrench {
get {
object obj = ResourceManager.GetObject("wrench", resourceCulture);
diff --git a/NUS Downloader/Properties/Resources.resx b/NUS Downloader/Properties/Resources.resx
index c89a012..dc45ffe 100644
--- a/NUS Downloader/Properties/Resources.resx
+++ b/NUS Downloader/Properties/Resources.resx
@@ -121,9 +121,15 @@
..\Resources\server_connect.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\package_delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\wii16x16 copy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\bullet_redgreen.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +139,8 @@
..\Resources\script_go.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\bullet_green-blue.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\package_green.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -145,8 +151,8 @@
..\Resources\page_white_magnify.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\box.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\money.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\script_code_red.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -181,50 +187,53 @@
..\Resources\package.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\folder_table.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\database_save.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\wii16x16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\bullet_green.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\script_code.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\bullet_orange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\folder_table.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\box.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\picture_empty.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\package_green.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\bullet_green-blue.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\bug_add.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\bullet_orange-blue.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\wrench.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\package_delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\script_code.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\drive_disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\bullet_orange-blue.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\package_add.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\drive_disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\information.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\money.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\dsi16x16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file