Commit 698a6bdb authored by piratesephiroth's avatar piratesephiroth
Browse files

simplify initialization

parent 2b384083
...@@ -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?
......
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