Skip to content

Commit 95bbc97

Browse files
committed
fix steam path export
1 parent 671dcc2 commit 95bbc97

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

PegasusExportPlugin/frmPegasusExport.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ public frmPegasusExport()
3434

3535
public string GetRelativePath(string relativeTo, string path)
3636
{
37-
path = Path.GetFullPath(path);
37+
try
38+
{
39+
path = Path.GetFullPath(path);
40+
}
41+
catch(Exception)
42+
{
43+
return path;
44+
}
45+
3846
if (!relativeTo.EndsWith(Path.DirectorySeparatorChar))
3947
{
4048
relativeTo += Path.DirectorySeparatorChar;
@@ -80,7 +88,6 @@ private async void BtnExport_Click(object sender, EventArgs e)
8088
}
8189

8290
btnExport.Enabled = false;
83-
8491
try
8592
{
8693
bool exportAssetsChecked = chkAssets.Checked;

0 commit comments

Comments
 (0)