Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Universal THCRAP Launcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1444,13 +1444,14 @@ private void StartThcrap()
{
_displayNameToThxxDictionary.TryGetValue(gameListBox.SelectedItem.ToString().Replace("★", "").Trim(), out string s1);
_gamesDictionary.TryGetValue(s1 ?? throw new InvalidOperationException(), out string game);
String gameDirectory = game.Substring(0, game.LastIndexOf('/'));
id = s1;
if (game == null)
{
ErrorAndExit(I18N.LangResource.errors.oops?.ToString());
return;
}
process = new Process { StartInfo = { FileName = game, RedirectStandardOutput = true, UseShellExecute = false } };
process = new Process { StartInfo = { FileName = game, WorkingDirectory = gameDirectory, RedirectStandardOutput = true, UseShellExecute = false } };
process.OutputDataReceived += Process_OutputDataReceived;
log.WriteLine($"Game {game} started without thcrap.");
}
Expand Down