Skip to content

Commit cfe2f15

Browse files
committed
Support for relative script source paths
1 parent 8135744 commit cfe2f15

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

LuaDkmDebuggerComponent/LocalComponent.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,22 @@ string CheckConfigPaths(string winSourcePath)
522522
}
523523
}
524524

525+
// Check 'empty' path
526+
if (processData.workingDirectory != null)
527+
{
528+
string test = Path.GetFullPath(Path.Combine(processData.workingDirectory, winSourcePath));
529+
530+
if (File.Exists(test))
531+
return test;
532+
}
533+
534+
{
535+
string test = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(process.Path), winSourcePath));
536+
537+
if (File.Exists(test))
538+
return test;
539+
}
540+
525541
return null;
526542
}
527543

0 commit comments

Comments
 (0)