Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
WiiVC Injector
Commits
a35d8d4a
Commit
a35d8d4a
authored
May 20, 2021
by
piratesephiroth
Browse files
Add setting for Wii U Gamepad Slot
parent
497f605c
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
a35d8d4a
TeconMoon's WiiVC Injector/bin/*
TeconMoon's WiiVC Injector/obj/*
.vs/*
\ No newline at end of file
TeconMoon's WiiVC Injector/Form2.Designer.cs
View file @
a35d8d4a
...
...
@@ -48,14 +48,18 @@
this
.
MemcardMulti
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
NintendontOptions
=
new
System
.
Windows
.
Forms
.
CheckedListBox
();
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
();
this
.
nintendontConfigGroupBox
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// DriveBox
//
this
.
DriveBox
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
DriveBox
.
FormattingEnabled
=
true
;
this
.
DriveBox
.
Location
=
new
System
.
Drawing
.
Point
(
1
5
,
29
);
this
.
DriveBox
.
Location
=
new
System
.
Drawing
.
Point
(
1
4
,
29
);
this
.
DriveBox
.
Name
=
"DriveBox"
;
this
.
DriveBox
.
Size
=
new
System
.
Drawing
.
Size
(
253
,
21
);
this
.
DriveBox
.
TabIndex
=
0
;
...
...
@@ -63,7 +67,7 @@
//
// SDCardText
//
this
.
SDCardText
.
Location
=
new
System
.
Drawing
.
Point
(
1
2
,
9
);
this
.
SDCardText
.
Location
=
new
System
.
Drawing
.
Point
(
1
1
,
9
);
this
.
SDCardText
.
Name
=
"SDCardText"
;
this
.
SDCardText
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
17
);
this
.
SDCardText
.
TabIndex
=
1
;
...
...
@@ -73,10 +77,10 @@
//
this
.
ReloadDrives
.
AutoSize
=
true
;
this
.
ReloadDrives
.
AutoSizeMode
=
System
.
Windows
.
Forms
.
AutoSizeMode
.
GrowAndShrink
;
this
.
ReloadDrives
.
Location
=
new
System
.
Drawing
.
Point
(
1
5
,
56
);
this
.
ReloadDrives
.
Location
=
new
System
.
Drawing
.
Point
(
1
4
,
56
);
this
.
ReloadDrives
.
Name
=
"ReloadDrives"
;
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
.
UseVisualStyleBackColor
=
true
;
this
.
ReloadDrives
.
Click
+=
new
System
.
EventHandler
(
this
.
ReloadDrives_Click
);
...
...
@@ -84,17 +88,17 @@
// NintendontUpdate
//
this
.
NintendontUpdate
.
AutoSize
=
true
;
this
.
NintendontUpdate
.
Location
=
new
System
.
Drawing
.
Point
(
1
5
,
10
5
);
this
.
NintendontUpdate
.
Location
=
new
System
.
Drawing
.
Point
(
1
4
,
10
3
);
this
.
NintendontUpdate
.
Name
=
"NintendontUpdate"
;
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
.
UseVisualStyleBackColor
=
true
;
this
.
NintendontUpdate
.
Click
+=
new
System
.
EventHandler
(
this
.
NintendontUpdate_Click
);
//
// ActionStatus
//
this
.
ActionStatus
.
Location
=
new
System
.
Drawing
.
Point
(
1
5
,
82
);
this
.
ActionStatus
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
82
);
this
.
ActionStatus
.
Name
=
"ActionStatus"
;
this
.
ActionStatus
.
Size
=
new
System
.
Drawing
.
Size
(
253
,
20
);
this
.
ActionStatus
.
TabIndex
=
5
;
...
...
@@ -103,10 +107,10 @@
// GenerateConfig
//
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
.
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
.
UseVisualStyleBackColor
=
true
;
this
.
GenerateConfig
.
Click
+=
new
System
.
EventHandler
(
this
.
GenerateConfig_Click
);
...
...
@@ -123,28 +127,28 @@
"Spanish"
,
"Italian"
,
"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
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
21
);
this
.
LanguageBox
.
TabIndex
=
8
;
this
.
LanguageBox
.
TabIndex
=
9
;
//
// LanguageText
//
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
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
18
);
this
.
LanguageText
.
TabIndex
=
9
;
this
.
LanguageText
.
TabIndex
=
16
;
this
.
LanguageText
.
Text
=
"Language"
;
this
.
LanguageText
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// VideoText
//
this
.
VideoText
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
Fixed3D
;
this
.
VideoText
.
Location
=
new
System
.
Drawing
.
Point
(
1
44
,
285
);
this
.
VideoText
.
Location
=
new
System
.
Drawing
.
Point
(
1
35
,
136
);
this
.
VideoText
.
Name
=
"VideoText"
;
this
.
VideoText
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
18
);
this
.
VideoText
.
TabIndex
=
1
1
;
this
.
VideoText
.
TabIndex
=
1
5
;
this
.
VideoText
.
Text
=
"Video Mode"
;
this
.
VideoText
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
...
...
@@ -157,10 +161,10 @@
"Force"
,
"Force (Deflicker)"
,
"None"
});
this
.
VideoForceMode
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
306
);
this
.
VideoForceMode
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
157
);
this
.
VideoForceMode
.
Name
=
"VideoForceMode"
;
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
);
//
// VideoTypeMode
...
...
@@ -173,10 +177,10 @@
"MPAL"
,
"PAL50"
,
"PAL60"
});
this
.
VideoTypeMode
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
333
);
this
.
VideoTypeMode
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
184
);
this
.
VideoTypeMode
.
Name
=
"VideoTypeMode"
;
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
);
//
// VideoWidth
...
...
@@ -185,13 +189,13 @@
this
.
VideoWidth
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
VideoWidth
.
Enabled
=
false
;
this
.
VideoWidth
.
LargeChange
=
10
;
this
.
VideoWidth
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
383
);
this
.
VideoWidth
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
234
);
this
.
VideoWidth
.
Maximum
=
720
;
this
.
VideoWidth
.
Minimum
=
640
;
this
.
VideoWidth
.
Name
=
"VideoWidth"
;
this
.
VideoWidth
.
Size
=
new
System
.
Drawing
.
Size
(
123
,
26
);
this
.
VideoWidth
.
SmallChange
=
2
;
this
.
VideoWidth
.
TabIndex
=
1
3
;
this
.
VideoWidth
.
TabIndex
=
1
0
;
this
.
VideoWidth
.
TickFrequency
=
2
;
this
.
VideoWidth
.
Value
=
640
;
this
.
VideoWidth
.
Scroll
+=
new
System
.
EventHandler
(
this
.
VideoWidth_Scroll
);
...
...
@@ -200,16 +204,16 @@
//
this
.
VideoWidthText
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
Fixed3D
;
this
.
VideoWidthText
.
Enabled
=
false
;
this
.
VideoWidthText
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
362
);
this
.
VideoWidthText
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
213
);
this
.
VideoWidthText
.
Name
=
"VideoWidthText"
;
this
.
VideoWidthText
.
Size
=
new
System
.
Drawing
.
Size
(
123
,
18
);
this
.
VideoWidthText
.
TabIndex
=
1
4
;
this
.
VideoWidthText
.
TabIndex
=
1
7
;
this
.
VideoWidthText
.
Text
=
"Video Width"
;
this
.
VideoWidthText
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// WidthNumber
//
this
.
WidthNumber
.
Location
=
new
System
.
Drawing
.
Point
(
1
41
,
378
);
this
.
WidthNumber
.
Location
=
new
System
.
Drawing
.
Point
(
1
32
,
229
);
this
.
WidthNumber
.
Name
=
"WidthNumber"
;
this
.
WidthNumber
.
Size
=
new
System
.
Drawing
.
Size
(
127
,
14
);
this
.
WidthNumber
.
TabIndex
=
15
;
...
...
@@ -219,10 +223,10 @@
// MemcardText
//
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
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
18
);
this
.
MemcardText
.
TabIndex
=
1
6
;
this
.
MemcardText
.
TabIndex
=
1
4
;
this
.
MemcardText
.
Text
=
"Memcard Blocks"
;
this
.
MemcardText
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
...
...
@@ -237,17 +241,17 @@
"507 (Unstable)"
,
"1019 (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
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
21
);
this
.
MemcardBlocks
.
TabIndex
=
17
;
this
.
MemcardBlocks
.
TabIndex
=
5
;
//
// 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
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
26
);
this
.
MemcardMulti
.
TabIndex
=
1
8
;
this
.
MemcardMulti
.
TabIndex
=
8
;
this
.
MemcardMulti
.
Text
=
"Memcard Multi"
;
this
.
MemcardMulti
.
UseVisualStyleBackColor
=
false
;
//
...
...
@@ -270,43 +274,80 @@
"Skip IPL"
,
"OSReport"
,
"Log"
});
this
.
NintendontOptions
.
Location
=
new
System
.
Drawing
.
Point
(
15
,
1
73
);
this
.
NintendontOptions
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
1
9
);
this
.
NintendontOptions
.
MultiColumn
=
true
;
this
.
NintendontOptions
.
Name
=
"NintendontOptions"
;
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
.
DoubleClick
+=
new
System
.
EventHandler
(
this
.
NintendontOptions_DoubleClick
);
//
// Format
//
this
.
Format
.
AutoSize
=
true
;
this
.
Format
.
Location
=
new
System
.
Drawing
.
Point
(
11
9
,
61
);
this
.
Format
.
Location
=
new
System
.
Drawing
.
Point
(
11
8
,
61
);
this
.
Format
.
Name
=
"Format"
;
this
.
Format
.
Size
=
new
System
.
Drawing
.
Size
(
155
,
13
);
this
.
Format
.
TabIndex
=
19
;
this
.
Format
.
TabIndex
=
2
;
this
.
Format
.
TabStop
=
true
;
this
.
Format
.
Text
=
"Use this to format your SD Card"
;
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
//
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
.
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
.
NintendontUpdate
);
this
.
Controls
.
Add
(
this
.
ReloadDrives
);
...
...
@@ -322,6 +363,8 @@
this
.
Text
=
"Nintendont SD Card Menu..."
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
SDCardMenu_Load
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
VideoWidth
)).
EndInit
();
this
.
nintendontConfigGroupBox
.
ResumeLayout
(
false
);
this
.
nintendontConfigGroupBox
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -348,5 +391,8 @@
private
System
.
Windows
.
Forms
.
CheckBox
MemcardMulti
;
private
System
.
Windows
.
Forms
.
CheckedListBox
NintendontOptions
;
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
TeconMoon's WiiVC Injector/Form2.cs
View file @
a35d8d4a
...
...
@@ -32,6 +32,7 @@ namespace TeconMoon_s_WiiVC_Injector
VideoForceMode
.
SelectedIndex
=
0
;
VideoTypeMode
.
SelectedIndex
=
0
;
LanguageBox
.
SelectedIndex
=
0
;
wiiUGamepadSlotBox
.
SelectedIndex
=
0
;
NintendontOptions
.
SetItemChecked
(
0
,
true
);
NintendontOptions
.
SetItemChecked
(
7
,
true
);
}
...
...
@@ -289,6 +290,7 @@ namespace TeconMoon_s_WiiVC_Injector
public
sbyte
videoScale
;
public
sbyte
videoOffset
;
public
byte
networkProfile
;
// wii only
public
uint
wiiuGamepadSlot
;
}
public
enum
ninconfig
...
...
@@ -351,22 +353,22 @@ namespace TeconMoon_s_WiiVC_Injector
private
void
GenerateConfig_Click
(
object
sender
,
EventArgs
e
)
{
ConfigFile
nintendontCfg
=
new
ConfigFile
();
nintendontCfg
.
magicBytes
=
0x01070CF6
;
nintendontCfg
.
version
=
9
;
nintendontCfg
.
version
=
10
;
nintendontCfg
.
config
=
0
;
nintendontCfg
.
videoMode
=
0
;
nintendontCfg
.
language
=
0
;
nintendontCfg
.
gamePath
=
new
byte
[
256
];
nintendontCfg
.
cheatPath
=
new
byte
[
256
];
nintendontCfg
.
maxPads
=
0
;
nintendontCfg
.
maxPads
=
4
;
nintendontCfg
.
gameID
=
0
;
nintendontCfg
.
memCardBlocks
=
0
;
nintendontCfg
.
videoScale
=
0
;
nintendontCfg
.
videoOffset
=
0
;
nintendontCfg
.
networkProfile
=
0
;
nintendontCfg
.
wiiuGamepadSlot
=
0
;
nintendontCfg
.
videoMode
|=
(
uint
)
ninvideomode
.
NIN_VID_PROG
;
// always required?
...
...
@@ -530,14 +532,17 @@ namespace TeconMoon_s_WiiVC_Injector
nintendontCfg
.
videoScale
=
(
sbyte
)(
VideoWidth
.
Value
-
600
);
}
// WII U GAMEPAD SLOT
nintendontCfg
.
wiiuGamepadSlot
=
(
uint
)(
wiiUGamepadSlotBox
.
SelectedIndex
+
1
);
//
// SAVING THE FILE
string
savePath
=
SelectedDriveLetter
+
"nincfg.bin"
;
// if removable drive isdn't specified, save file manually
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"
,
MessageBoxButtons
.
YesNo
,
MessageBoxIcon
.
Question
...
...
@@ -586,6 +591,7 @@ namespace TeconMoon_s_WiiVC_Injector
byte
[]
language
=
BitConverter
.
GetBytes
(
nintendontCfg
.
language
);
byte
[]
maxPads
=
BitConverter
.
GetBytes
(
nintendontCfg
.
maxPads
);
byte
[]
gameID
=
BitConverter
.
GetBytes
(
nintendontCfg
.
gameID
);
byte
[]
wiiuGamepadSlot
=
BitConverter
.
GetBytes
(
nintendontCfg
.
wiiuGamepadSlot
);
if
(
BitConverter
.
IsLittleEndian
)
...
...
@@ -597,6 +603,7 @@ namespace TeconMoon_s_WiiVC_Injector
Array
.
Reverse
(
language
,
0
,
language
.
Length
);
Array
.
Reverse
(
maxPads
,
0
,
maxPads
.
Length
);
Array
.
Reverse
(
gameID
,
0
,
gameID
.
Length
);
Array
.
Reverse
(
wiiuGamepadSlot
,
0
,
wiiuGamepadSlot
.
Length
);
}
cfgFile
.
Write
(
magicBytes
);
...
...
@@ -612,6 +619,7 @@ namespace TeconMoon_s_WiiVC_Injector
cfgFile
.
Write
(
nintendontCfg
.
videoScale
);
cfgFile
.
Write
(
nintendontCfg
.
videoOffset
);
cfgFile
.
Write
(
nintendontCfg
.
networkProfile
);
cfgFile
.
Write
(
wiiuGamepadSlot
);
}
...
...
TeconMoon's WiiVC Injector/Form2.resx
View file @
a35d8d4a
...
...
@@ -117,63 +117,6 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</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"
/>
<data
name=
"$this.Icon"
type=
"System.Drawing.Icon, System.Drawing"
mimetype=
"application/x-microsoft.net.object.bytearray.base64"
>
<value>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment