|
|
|
@ -818,6 +818,8 @@ public partial class MainForm : Form
|
|
|
|
string desktopFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop, Environment.SpecialFolderOption.Create);
|
|
|
|
string desktopFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop, Environment.SpecialFolderOption.Create);
|
|
|
|
string shortcutFile = "";
|
|
|
|
string shortcutFile = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
if (OS.IsWindows)
|
|
|
|
if (OS.IsWindows)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//TODO: implement this
|
|
|
|
//TODO: implement this
|
|
|
|
@ -869,6 +871,15 @@ public partial class MainForm : Form
|
|
|
|
|
|
|
|
|
|
|
|
CrossPlatformOperations.OpenFolderAndSelectFile(shortcutFile);
|
|
|
|
CrossPlatformOperations.OpenFolderAndSelectFile(shortcutFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We only care about io exceptions (file not readable, drive not available etc.) The rest should throw normally
|
|
|
|
|
|
|
|
catch (IOException exception)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Application.Instance.Invoke(() =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MessageBox.Show(exception.Message, Text.UnhandledException, MessageBoxType.Error);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// This opens the game files directory for the current profile.
|
|
|
|
/// This opens the game files directory for the current profile.
|
|
|
|
|