Commit a35d8d4a authored by piratesephiroth's avatar piratesephiroth
Browse files

Add setting for Wii U Gamepad Slot

parent 497f605c
TeconMoon's WiiVC Injector/bin/*
TeconMoon's WiiVC Injector/obj/*
.vs/*
\ No newline at end of file
...@@ -48,14 +48,18 @@ ...@@ -48,14 +48,18 @@
this.MemcardMulti = new System.Windows.Forms.CheckBox(); this.MemcardMulti = new System.Windows.Forms.CheckBox();
this.NintendontOptions = new System.Windows.Forms.CheckedListBox(); this.NintendontOptions = new System.Windows.Forms.CheckedListBox();
this.Format = new System.Windows.Forms.LinkLabel(); this.Format = new System.Windows.Forms.LinkLabel();
this.gamepadSlotLabel = new System.Windows.Forms.Label();
this.wiiUGamepadSlotBox = new System.Windows.Forms.ComboBox();
this.nintendontConfigGroupBox = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.VideoWidth)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.VideoWidth)).BeginInit();
this.nintendontConfigGroupBox.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// DriveBox // DriveBox
// //
this.DriveBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.DriveBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DriveBox.FormattingEnabled = true; this.DriveBox.FormattingEnabled = true;
this.DriveBox.Location = new System.Drawing.Point(15, 29); this.DriveBox.Location = new System.Drawing.Point(14, 29);
this.DriveBox.Name = "DriveBox"; this.DriveBox.Name = "DriveBox";
this.DriveBox.Size = new System.Drawing.Size(253, 21); this.DriveBox.Size = new System.Drawing.Size(253, 21);
this.DriveBox.TabIndex = 0; this.DriveBox.TabIndex = 0;
...@@ -63,7 +67,7 @@ ...@@ -63,7 +67,7 @@
// //
// SDCardText // SDCardText
// //
this.SDCardText.Location = new System.Drawing.Point(12, 9); this.SDCardText.Location = new System.Drawing.Point(11, 9);
this.SDCardText.Name = "SDCardText"; this.SDCardText.Name = "SDCardText";
this.SDCardText.Size = new System.Drawing.Size(145, 17); this.SDCardText.Size = new System.Drawing.Size(145, 17);
this.SDCardText.TabIndex = 1; this.SDCardText.TabIndex = 1;
...@@ -73,10 +77,10 @@ ...@@ -73,10 +77,10 @@
// //
this.ReloadDrives.AutoSize = true; this.ReloadDrives.AutoSize = true;
this.ReloadDrives.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ReloadDrives.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ReloadDrives.Location = new System.Drawing.Point(15, 56); this.ReloadDrives.Location = new System.Drawing.Point(14, 56);
this.ReloadDrives.Name = "ReloadDrives"; this.ReloadDrives.Name = "ReloadDrives";
this.ReloadDrives.Size = new System.Drawing.Size(98, 23); this.ReloadDrives.Size = new System.Drawing.Size(98, 23);
this.ReloadDrives.TabIndex = 2; this.ReloadDrives.TabIndex = 1;
this.ReloadDrives.Text = "Reload Drive List"; this.ReloadDrives.Text = "Reload Drive List";
this.ReloadDrives.UseVisualStyleBackColor = true; this.ReloadDrives.UseVisualStyleBackColor = true;
this.ReloadDrives.Click += new System.EventHandler(this.ReloadDrives_Click); this.ReloadDrives.Click += new System.EventHandler(this.ReloadDrives_Click);
...@@ -84,17 +88,17 @@ ...@@ -84,17 +88,17 @@
// NintendontUpdate // NintendontUpdate
// //
this.NintendontUpdate.AutoSize = true; this.NintendontUpdate.AutoSize = true;
this.NintendontUpdate.Location = new System.Drawing.Point(15, 105); this.NintendontUpdate.Location = new System.Drawing.Point(14, 103);
this.NintendontUpdate.Name = "NintendontUpdate"; this.NintendontUpdate.Name = "NintendontUpdate";
this.NintendontUpdate.Size = new System.Drawing.Size(253, 28); this.NintendontUpdate.Size = new System.Drawing.Size(253, 28);
this.NintendontUpdate.TabIndex = 4; this.NintendontUpdate.TabIndex = 3;
this.NintendontUpdate.Text = "Download Latest Nintendont from GitHub"; this.NintendontUpdate.Text = "Download Latest Nintendont from GitHub";
this.NintendontUpdate.UseVisualStyleBackColor = true; this.NintendontUpdate.UseVisualStyleBackColor = true;
this.NintendontUpdate.Click += new System.EventHandler(this.NintendontUpdate_Click); this.NintendontUpdate.Click += new System.EventHandler(this.NintendontUpdate_Click);
// //
// ActionStatus // ActionStatus
// //
this.ActionStatus.Location = new System.Drawing.Point(15, 82); this.ActionStatus.Location = new System.Drawing.Point(5, 82);
this.ActionStatus.Name = "ActionStatus"; this.ActionStatus.Name = "ActionStatus";
this.ActionStatus.Size = new System.Drawing.Size(253, 20); this.ActionStatus.Size = new System.Drawing.Size(253, 20);
this.ActionStatus.TabIndex = 5; this.ActionStatus.TabIndex = 5;
...@@ -103,10 +107,10 @@ ...@@ -103,10 +107,10 @@
// GenerateConfig // GenerateConfig
// //
this.GenerateConfig.AutoSize = true; this.GenerateConfig.AutoSize = true;
this.GenerateConfig.Location = new System.Drawing.Point(15, 139); this.GenerateConfig.Location = new System.Drawing.Point(4, 323);
this.GenerateConfig.Name = "GenerateConfig"; this.GenerateConfig.Name = "GenerateConfig";
this.GenerateConfig.Size = new System.Drawing.Size(253, 28); this.GenerateConfig.Size = new System.Drawing.Size(253, 28);
this.GenerateConfig.TabIndex = 7; this.GenerateConfig.TabIndex = 12;
this.GenerateConfig.Text = "Generate Nintendont Config File (nincfg.bin)"; this.GenerateConfig.Text = "Generate Nintendont Config File (nincfg.bin)";
this.GenerateConfig.UseVisualStyleBackColor = true; this.GenerateConfig.UseVisualStyleBackColor = true;
this.GenerateConfig.Click += new System.EventHandler(this.GenerateConfig_Click); this.GenerateConfig.Click += new System.EventHandler(this.GenerateConfig_Click);
...@@ -123,28 +127,28 @@ ...@@ -123,28 +127,28 @@
"Spanish", "Spanish",
"Italian", "Italian",
"Dutch"}); "Dutch"});
this.LanguageBox.Location = new System.Drawing.Point(15, 385); this.LanguageBox.Location = new System.Drawing.Point(6, 236);
this.LanguageBox.Name = "LanguageBox"; this.LanguageBox.Name = "LanguageBox";
this.LanguageBox.Size = new System.Drawing.Size(124, 21); this.LanguageBox.Size = new System.Drawing.Size(124, 21);
this.LanguageBox.TabIndex = 8; this.LanguageBox.TabIndex = 9;
// //
// LanguageText // LanguageText
// //
this.LanguageText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.LanguageText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.LanguageText.Location = new System.Drawing.Point(15, 362); this.LanguageText.Location = new System.Drawing.Point(6, 213);
this.LanguageText.Name = "LanguageText"; this.LanguageText.Name = "LanguageText";
this.LanguageText.Size = new System.Drawing.Size(124, 18); this.LanguageText.Size = new System.Drawing.Size(124, 18);
this.LanguageText.TabIndex = 9; this.LanguageText.TabIndex = 16;
this.LanguageText.Text = "Language"; this.LanguageText.Text = "Language";
this.LanguageText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.LanguageText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// VideoText // VideoText
// //
this.VideoText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.VideoText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.VideoText.Location = new System.Drawing.Point(144, 285); this.VideoText.Location = new System.Drawing.Point(135, 136);
this.VideoText.Name = "VideoText"; this.VideoText.Name = "VideoText";
this.VideoText.Size = new System.Drawing.Size(124, 18); this.VideoText.Size = new System.Drawing.Size(124, 18);
this.VideoText.TabIndex = 11; this.VideoText.TabIndex = 15;
this.VideoText.Text = "Video Mode"; this.VideoText.Text = "Video Mode";
this.VideoText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.VideoText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
...@@ -157,10 +161,10 @@ ...@@ -157,10 +161,10 @@
"Force", "Force",
"Force (Deflicker)", "Force (Deflicker)",
"None"}); "None"});
this.VideoForceMode.Location = new System.Drawing.Point(145, 306); this.VideoForceMode.Location = new System.Drawing.Point(136, 157);
this.VideoForceMode.Name = "VideoForceMode"; this.VideoForceMode.Name = "VideoForceMode";
this.VideoForceMode.Size = new System.Drawing.Size(123, 21); this.VideoForceMode.Size = new System.Drawing.Size(123, 21);
this.VideoForceMode.TabIndex = 10; this.VideoForceMode.TabIndex = 6;
this.VideoForceMode.SelectedIndexChanged += new System.EventHandler(this.VideoForceMode_SelectedIndexChanged); this.VideoForceMode.SelectedIndexChanged += new System.EventHandler(this.VideoForceMode_SelectedIndexChanged);
// //
// VideoTypeMode // VideoTypeMode
...@@ -173,10 +177,10 @@ ...@@ -173,10 +177,10 @@
"MPAL", "MPAL",
"PAL50", "PAL50",
"PAL60"}); "PAL60"});
this.VideoTypeMode.Location = new System.Drawing.Point(145, 333); this.VideoTypeMode.Location = new System.Drawing.Point(136, 184);
this.VideoTypeMode.Name = "VideoTypeMode"; this.VideoTypeMode.Name = "VideoTypeMode";
this.VideoTypeMode.Size = new System.Drawing.Size(123, 21); this.VideoTypeMode.Size = new System.Drawing.Size(123, 21);
this.VideoTypeMode.TabIndex = 12; this.VideoTypeMode.TabIndex = 7;
this.VideoTypeMode.SelectedIndexChanged += new System.EventHandler(this.VideoTypeMode_SelectedIndexChanged); this.VideoTypeMode.SelectedIndexChanged += new System.EventHandler(this.VideoTypeMode_SelectedIndexChanged);
// //
// VideoWidth // VideoWidth
...@@ -185,13 +189,13 @@ ...@@ -185,13 +189,13 @@
this.VideoWidth.BackColor = System.Drawing.SystemColors.Control; this.VideoWidth.BackColor = System.Drawing.SystemColors.Control;
this.VideoWidth.Enabled = false; this.VideoWidth.Enabled = false;
this.VideoWidth.LargeChange = 10; this.VideoWidth.LargeChange = 10;
this.VideoWidth.Location = new System.Drawing.Point(145, 383); this.VideoWidth.Location = new System.Drawing.Point(136, 234);
this.VideoWidth.Maximum = 720; this.VideoWidth.Maximum = 720;
this.VideoWidth.Minimum = 640; this.VideoWidth.Minimum = 640;
this.VideoWidth.Name = "VideoWidth"; this.VideoWidth.Name = "VideoWidth";
this.VideoWidth.Size = new System.Drawing.Size(123, 26); this.VideoWidth.Size = new System.Drawing.Size(123, 26);
this.VideoWidth.SmallChange = 2; this.VideoWidth.SmallChange = 2;
this.VideoWidth.TabIndex = 13; this.VideoWidth.TabIndex = 10;
this.VideoWidth.TickFrequency = 2; this.VideoWidth.TickFrequency = 2;
this.VideoWidth.Value = 640; this.VideoWidth.Value = 640;
this.VideoWidth.Scroll += new System.EventHandler(this.VideoWidth_Scroll); this.VideoWidth.Scroll += new System.EventHandler(this.VideoWidth_Scroll);
...@@ -200,16 +204,16 @@ ...@@ -200,16 +204,16 @@
// //
this.VideoWidthText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.VideoWidthText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.VideoWidthText.Enabled = false; this.VideoWidthText.Enabled = false;
this.VideoWidthText.Location = new System.Drawing.Point(145, 362); this.VideoWidthText.Location = new System.Drawing.Point(136, 213);
this.VideoWidthText.Name = "VideoWidthText"; this.VideoWidthText.Name = "VideoWidthText";
this.VideoWidthText.Size = new System.Drawing.Size(123, 18); this.VideoWidthText.Size = new System.Drawing.Size(123, 18);
this.VideoWidthText.TabIndex = 14; this.VideoWidthText.TabIndex = 17;
this.VideoWidthText.Text = "Video Width"; this.VideoWidthText.Text = "Video Width";
this.VideoWidthText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.VideoWidthText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// WidthNumber // WidthNumber
// //
this.WidthNumber.Location = new System.Drawing.Point(141, 378); this.WidthNumber.Location = new System.Drawing.Point(132, 229);
this.WidthNumber.Name = "WidthNumber"; this.WidthNumber.Name = "WidthNumber";
this.WidthNumber.Size = new System.Drawing.Size(127, 14); this.WidthNumber.Size = new System.Drawing.Size(127, 14);
this.WidthNumber.TabIndex = 15; this.WidthNumber.TabIndex = 15;
...@@ -219,10 +223,10 @@ ...@@ -219,10 +223,10 @@
// MemcardText // MemcardText
// //
this.MemcardText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.MemcardText.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.MemcardText.Location = new System.Drawing.Point(15, 285); this.MemcardText.Location = new System.Drawing.Point(6, 136);
this.MemcardText.Name = "MemcardText"; this.MemcardText.Name = "MemcardText";
this.MemcardText.Size = new System.Drawing.Size(124, 18); this.MemcardText.Size = new System.Drawing.Size(124, 18);
this.MemcardText.TabIndex = 16; this.MemcardText.TabIndex = 14;
this.MemcardText.Text = "Memcard Blocks"; this.MemcardText.Text = "Memcard Blocks";
this.MemcardText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.MemcardText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
...@@ -237,17 +241,17 @@ ...@@ -237,17 +241,17 @@
"507 (Unstable)", "507 (Unstable)",
"1019 (Unstable)", "1019 (Unstable)",
"2043 (Unstable)"}); "2043 (Unstable)"});
this.MemcardBlocks.Location = new System.Drawing.Point(15, 306); this.MemcardBlocks.Location = new System.Drawing.Point(6, 157);
this.MemcardBlocks.Name = "MemcardBlocks"; this.MemcardBlocks.Name = "MemcardBlocks";
this.MemcardBlocks.Size = new System.Drawing.Size(124, 21); this.MemcardBlocks.Size = new System.Drawing.Size(124, 21);
this.MemcardBlocks.TabIndex = 17; this.MemcardBlocks.TabIndex = 5;
// //
// MemcardMulti // MemcardMulti
// //
this.MemcardMulti.Location = new System.Drawing.Point(15, 333); this.MemcardMulti.Location = new System.Drawing.Point(6, 184);
this.MemcardMulti.Name = "MemcardMulti"; this.MemcardMulti.Name = "MemcardMulti";
this.MemcardMulti.Size = new System.Drawing.Size(124, 26); this.MemcardMulti.Size = new System.Drawing.Size(124, 26);
this.MemcardMulti.TabIndex = 18; this.MemcardMulti.TabIndex = 8;
this.MemcardMulti.Text = "Memcard Multi"; this.MemcardMulti.Text = "Memcard Multi";
this.MemcardMulti.UseVisualStyleBackColor = false; this.MemcardMulti.UseVisualStyleBackColor = false;
// //
...@@ -270,43 +274,80 @@ ...@@ -270,43 +274,80 @@
"Skip IPL", "Skip IPL",
"OSReport", "OSReport",
"Log"}); "Log"});
this.NintendontOptions.Location = new System.Drawing.Point(15, 173); this.NintendontOptions.Location = new System.Drawing.Point(6, 19);
this.NintendontOptions.MultiColumn = true; this.NintendontOptions.MultiColumn = true;
this.NintendontOptions.Name = "NintendontOptions"; this.NintendontOptions.Name = "NintendontOptions";
this.NintendontOptions.Size = new System.Drawing.Size(253, 109); this.NintendontOptions.Size = new System.Drawing.Size(253, 109);
this.NintendontOptions.TabIndex = 6; this.NintendontOptions.TabIndex = 4;
this.NintendontOptions.SelectedIndexChanged += new System.EventHandler(this.NintendontOptions_SelectedIndexChanged); this.NintendontOptions.SelectedIndexChanged += new System.EventHandler(this.NintendontOptions_SelectedIndexChanged);
this.NintendontOptions.DoubleClick += new System.EventHandler(this.NintendontOptions_DoubleClick); this.NintendontOptions.DoubleClick += new System.EventHandler(this.NintendontOptions_DoubleClick);
// //
// Format // Format
// //
this.Format.AutoSize = true; this.Format.AutoSize = true;
this.Format.Location = new System.Drawing.Point(119, 61); this.Format.Location = new System.Drawing.Point(118, 61);
this.Format.Name = "Format"; this.Format.Name = "Format";
this.Format.Size = new System.Drawing.Size(155, 13); this.Format.Size = new System.Drawing.Size(155, 13);
this.Format.TabIndex = 19; this.Format.TabIndex = 2;
this.Format.TabStop = true; this.Format.TabStop = true;
this.Format.Text = "Use this to format your SD Card"; this.Format.Text = "Use this to format your SD Card";
this.Format.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Format_LinkClicked); this.Format.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Format_LinkClicked);
// //
// gamepadSlotLabel
//
this.gamepadSlotLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.gamepadSlotLabel.Location = new System.Drawing.Point(6, 267);
this.gamepadSlotLabel.Name = "gamepadSlotLabel";
this.gamepadSlotLabel.Size = new System.Drawing.Size(124, 18);
this.gamepadSlotLabel.TabIndex = 18;
this.gamepadSlotLabel.Text = "Wii U Gamepad Slot";
this.gamepadSlotLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// wiiUGamepadSlotBox
//
this.wiiUGamepadSlotBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.wiiUGamepadSlotBox.FormattingEnabled = true;
this.wiiUGamepadSlotBox.Items.AddRange(new object[] {
"1",
"2",
"3",
"4"});
this.wiiUGamepadSlotBox.Location = new System.Drawing.Point(6, 290);
this.wiiUGamepadSlotBox.Name = "wiiUGamepadSlotBox";
this.wiiUGamepadSlotBox.Size = new System.Drawing.Size(124, 21);
this.wiiUGamepadSlotBox.TabIndex = 11;
//
// nintendontConfigGroupBox
//
this.nintendontConfigGroupBox.Controls.Add(this.NintendontOptions);
this.nintendontConfigGroupBox.Controls.Add(this.wiiUGamepadSlotBox);
this.nintendontConfigGroupBox.Controls.Add(this.GenerateConfig);
this.nintendontConfigGroupBox.Controls.Add(this.gamepadSlotLabel);
this.nintendontConfigGroupBox.Controls.Add(this.LanguageBox);
this.nintendontConfigGroupBox.Controls.Add(this.LanguageText);
this.nintendontConfigGroupBox.Controls.Add(this.MemcardMulti);
this.nintendontConfigGroupBox.Controls.Add(this.VideoForceMode);
this.nintendontConfigGroupBox.Controls.Add(this.MemcardBlocks);
this.nintendontConfigGroupBox.Controls.Add(this.VideoText);
this.nintendontConfigGroupBox.Controls.Add(this.MemcardText);
this.nintendontConfigGroupBox.Controls.Add(this.VideoTypeMode);
this.nintendontConfigGroupBox.Controls.Add(this.WidthNumber);
this.nintendontConfigGroupBox.Controls.Add(this.VideoWidth);
this.nintendontConfigGroupBox.Controls.Add(this.VideoWidthText);
this.nintendontConfigGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.nintendontConfigGroupBox.Location = new System.Drawing.Point(8, 139);
this.nintendontConfigGroupBox.Name = "nintendontConfigGroupBox";
this.nintendontConfigGroupBox.Size = new System.Drawing.Size(265, 361);
this.nintendontConfigGroupBox.TabIndex = 13;
this.nintendontConfigGroupBox.TabStop = false;
this.nintendontConfigGroupBox.Text = "Nintendont Configuration";
//
// SDCardMenu // SDCardMenu
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(280, 417); this.ClientSize = new System.Drawing.Size(280, 512);
this.Controls.Add(this.nintendontConfigGroupBox);
this.Controls.Add(this.Format); this.Controls.Add(this.Format);
this.Controls.Add(this.MemcardMulti);
this.Controls.Add(this.MemcardBlocks);
this.Controls.Add(this.MemcardText);
this.Controls.Add(this.WidthNumber);
this.Controls.Add(this.VideoWidthText);
this.Controls.Add(this.VideoWidth);
this.Controls.Add(this.VideoTypeMode);
this.Controls.Add(this.VideoText);
this.Controls.Add(this.VideoForceMode);
this.Controls.Add(this.LanguageText);
this.Controls.Add(this.LanguageBox);
this.Controls.Add(this.GenerateConfig);
this.Controls.Add(this.NintendontOptions);
this.Controls.Add(this.ActionStatus); this.Controls.Add(this.ActionStatus);
this.Controls.Add(this.NintendontUpdate); this.Controls.Add(this.NintendontUpdate);
this.Controls.Add(this.ReloadDrives); this.Controls.Add(this.ReloadDrives);
...@@ -322,6 +363,8 @@ ...@@ -322,6 +363,8 @@
this.Text = "Nintendont SD Card Menu..."; this.Text = "Nintendont SD Card Menu...";
this.Load += new System.EventHandler(this.SDCardMenu_Load); this.Load += new System.EventHandler(this.SDCardMenu_Load);
((System.ComponentModel.ISupportInitialize)(this.VideoWidth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.VideoWidth)).EndInit();
this.nintendontConfigGroupBox.ResumeLayout(false);
this.nintendontConfigGroupBox.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -348,5 +391,8 @@ ...@@ -348,5 +391,8 @@
private System.Windows.Forms.CheckBox MemcardMulti; private System.Windows.Forms.CheckBox MemcardMulti;
private System.Windows.Forms.CheckedListBox NintendontOptions; private System.Windows.Forms.CheckedListBox NintendontOptions;
private System.Windows.Forms.LinkLabel Format; private System.Windows.Forms.LinkLabel Format;
private System.Windows.Forms.Label gamepadSlotLabel;
private System.Windows.Forms.ComboBox wiiUGamepadSlotBox;
private System.Windows.Forms.GroupBox nintendontConfigGroupBox;
} }
} }
\ No newline at end of file
...@@ -32,6 +32,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -32,6 +32,7 @@ namespace TeconMoon_s_WiiVC_Injector
VideoForceMode.SelectedIndex = 0; VideoForceMode.SelectedIndex = 0;
VideoTypeMode.SelectedIndex = 0; VideoTypeMode.SelectedIndex = 0;
LanguageBox.SelectedIndex = 0; LanguageBox.SelectedIndex = 0;
wiiUGamepadSlotBox.SelectedIndex = 0;
NintendontOptions.SetItemChecked(0, true); NintendontOptions.SetItemChecked(0, true);
NintendontOptions.SetItemChecked(7, true); NintendontOptions.SetItemChecked(7, true);
} }
...@@ -289,6 +290,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -289,6 +290,7 @@ namespace TeconMoon_s_WiiVC_Injector
public sbyte videoScale; public sbyte videoScale;
public sbyte videoOffset; public sbyte videoOffset;
public byte networkProfile; // wii only public byte networkProfile; // wii only
public uint wiiuGamepadSlot;
} }
public enum ninconfig public enum ninconfig
...@@ -351,22 +353,22 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -351,22 +353,22 @@ namespace TeconMoon_s_WiiVC_Injector
private void GenerateConfig_Click(object sender, EventArgs e) private void GenerateConfig_Click(object sender, EventArgs e)
{ {
ConfigFile nintendontCfg = new ConfigFile(); ConfigFile nintendontCfg = new ConfigFile();
nintendontCfg.magicBytes = 0x01070CF6; nintendontCfg.magicBytes = 0x01070CF6;
nintendontCfg.version = 9; nintendontCfg.version = 10;
nintendontCfg.config = 0; nintendontCfg.config = 0;
nintendontCfg.videoMode = 0; nintendontCfg.videoMode = 0;
nintendontCfg.language = 0; nintendontCfg.language = 0;
nintendontCfg.gamePath = new byte[256]; nintendontCfg.gamePath = new byte[256];
nintendontCfg.cheatPath = new byte[256]; nintendontCfg.cheatPath = new byte[256];
nintendontCfg.maxPads = 0; nintendontCfg.maxPads = 4;
nintendontCfg.gameID = 0; nintendontCfg.gameID = 0;
nintendontCfg.memCardBlocks = 0; nintendontCfg.memCardBlocks = 0;
nintendontCfg.videoScale = 0; nintendontCfg.videoScale = 0;
nintendontCfg.videoOffset = 0; nintendontCfg.videoOffset = 0;
nintendontCfg.networkProfile = 0; nintendontCfg.networkProfile = 0;
nintendontCfg.wiiuGamepadSlot = 0;
nintendontCfg.videoMode |= (uint)ninvideomode.NIN_VID_PROG; // always required? nintendontCfg.videoMode |= (uint)ninvideomode.NIN_VID_PROG; // always required?
...@@ -530,14 +532,17 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -530,14 +532,17 @@ namespace TeconMoon_s_WiiVC_Injector
nintendontCfg.videoScale = (sbyte)(VideoWidth.Value - 600); nintendontCfg.videoScale = (sbyte)(VideoWidth.Value - 600);
} }
// WII U GAMEPAD SLOT
nintendontCfg.wiiuGamepadSlot = (uint)(wiiUGamepadSlotBox.SelectedIndex + 1);
//
// SAVING THE FILE // SAVING THE FILE
string savePath = SelectedDriveLetter + "nincfg.bin"; string savePath = SelectedDriveLetter + "nincfg.bin";
// if removable drive isdn't specified, save file manually // if removable drive isdn't specified, save file manually
if (DriveSpecified == false) if (DriveSpecified == false)
{ {
DialogResult dialogResult = MessageBox.Show("SD not specified.\nDo you wish to save the file somewhere else?" DialogResult dialogResult = MessageBox.Show("SD card not specified.\nDo you wish to save the file somewhere else?"
, "Drive not specified" , "Drive not specified"
, MessageBoxButtons.YesNo , MessageBoxButtons.YesNo
, MessageBoxIcon.Question , MessageBoxIcon.Question
...@@ -586,6 +591,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -586,6 +591,7 @@ namespace TeconMoon_s_WiiVC_Injector
byte[] language = BitConverter.GetBytes(nintendontCfg.language); byte[] language = BitConverter.GetBytes(nintendontCfg.language);
byte[] maxPads = BitConverter.GetBytes(nintendontCfg.maxPads); byte[] maxPads = BitConverter.GetBytes(nintendontCfg.maxPads);
byte[] gameID = BitConverter.GetBytes(nintendontCfg.gameID); byte[] gameID = BitConverter.GetBytes(nintendontCfg.gameID);
byte[] wiiuGamepadSlot = BitConverter.GetBytes(nintendontCfg.wiiuGamepadSlot);
if (BitConverter.IsLittleEndian) if (BitConverter.IsLittleEndian)
...@@ -597,6 +603,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -597,6 +603,7 @@ namespace TeconMoon_s_WiiVC_Injector
Array.Reverse(language, 0, language.Length); Array.Reverse(language, 0, language.Length);
Array.Reverse(maxPads, 0, maxPads.Length); Array.Reverse(maxPads, 0, maxPads.Length);
Array.Reverse(gameID, 0, gameID.Length); Array.Reverse(gameID, 0, gameID.Length);
Array.Reverse(wiiuGamepadSlot, 0, wiiuGamepadSlot.Length);
} }
cfgFile.Write(magicBytes); cfgFile.Write(magicBytes);
...@@ -612,6 +619,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -612,6 +619,7 @@ namespace TeconMoon_s_WiiVC_Injector
cfgFile.Write(nintendontCfg.videoScale); cfgFile.Write(nintendontCfg.videoScale);
cfgFile.Write(nintendontCfg.videoOffset); cfgFile.Write(nintendontCfg.videoOffset);
cfgFile.Write(nintendontCfg.networkProfile); cfgFile.Write(nintendontCfg.networkProfile);
cfgFile.Write(wiiuGamepadSlot);
} }
......
...@@ -117,63 +117,6 @@ ...@@ -117,63 +117,6 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="DriveBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SDCardText.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ReloadDrives.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NintendontUpdate.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ActionStatus.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="GenerateConfig.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LanguageBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LanguageText.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VideoText.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VideoForceMode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VideoTypeMode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VideoWidth.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VideoWidthText.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="WidthNumber.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MemcardText.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MemcardBlocks.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MemcardMulti.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NintendontOptions.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment