Skip to content

Commit d269c6e

Browse files
authored
Switch to Xenia tab after Xenia OpenFileDialog
1 parent 0ae7e7f commit d269c6e

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

Sonic '06 Mod Manager/ModManager.cs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -854,22 +854,9 @@ private void LaunchXenia()
854854
xeniaBox.Text = xeniaPath;
855855
Properties.Settings.Default.xeniaPath = xeniaPath;
856856
Properties.Settings.Default.Save();
857-
}
858-
859-
string args;
860-
if (File.Exists($"{s06Path}\\default.xex")) { args = $"\"{s06Path}\\default.xex\""; }
861-
else { args = string.Empty; }
862857

863-
Console.WriteLine("\nStarting Xenia.\n");
864-
ProcessStartInfo xeniaExec;
865-
xeniaExec = new ProcessStartInfo(xeniaPath)
866-
{
867-
WorkingDirectory = Path.GetDirectoryName(xeniaPath),
868-
Arguments = args
869-
};
870-
var xenia = Process.Start(xeniaExec);
871-
xenia.WaitForExit();
872-
CleanUpMods();
858+
tab_Section.SelectedIndex = 1;
859+
}
873860
}
874861
}
875862

0 commit comments

Comments
 (0)