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
698a6bdb
Commit
698a6bdb
authored
Aug 10, 2022
by
piratesephiroth
Browse files
simplify initialization
parent
2b384083
Changes
1
Hide whitespace changes
Inline
Side-by-side
TeconMoon's WiiVC Injector/Form2.cs
View file @
698a6bdb
...
@@ -353,22 +353,23 @@ namespace TeconMoon_s_WiiVC_Injector
...
@@ -353,22 +353,23 @@ 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
;
magicBytes
=
0x01070CF6
,
nintendontCfg
.
version
=
10
;
version
=
10
,
nintendontCfg
.
config
=
0
;
config
=
0
,
nintendontCfg
.
videoMode
=
0
;
videoMode
=
0
,
nintendontCfg
.
language
=
0
;
language
=
0
,
nintendontCfg
.
gamePath
=
new
byte
[
256
];
gamePath
=
new
byte
[
256
],
nintendontCfg
.
cheatPath
=
new
byte
[
256
];
cheatPath
=
new
byte
[
256
],
nintendontCfg
.
maxPads
=
4
;
maxPads
=
4
,
nintendontCfg
.
gameID
=
0
;
gameID
=
0
,
nintendontCfg
.
memCardBlocks
=
0
;
memCardBlocks
=
0
,
nintendontCfg
.
videoScale
=
0
;
videoScale
=
0
,
nintendontCfg
.
videoOffset
=
0
;
videoOffset
=
0
,
nintendontCfg
.
networkProfile
=
0
;
networkProfile
=
0
,
nintendontCfg
.
wiiuGamepadSlot
=
0
;
wiiuGamepadSlot
=
0
};
nintendontCfg
.
videoMode
|=
(
uint
)
ninvideomode
.
NIN_VID_PROG
;
// always required?
nintendontCfg
.
videoMode
|=
(
uint
)
ninvideomode
.
NIN_VID_PROG
;
// always required?
...
...
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