mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
Misc
This commit is contained in:
parent
55b8c8f0d4
commit
b9fd3d0433
1 changed files with 6 additions and 1 deletions
|
@ -110,7 +110,12 @@ internal sealed class Startup {
|
|||
continue;
|
||||
}
|
||||
|
||||
string physicalPath = Path.IsPathRooted(plugin.PhysicalPath) ? plugin.PhysicalPath : Path.Combine(Path.GetDirectoryName(plugin.GetType().Assembly.Location)!, plugin.PhysicalPath);
|
||||
string physicalPath = plugin.PhysicalPath;
|
||||
|
||||
if (!Path.IsPathRooted(physicalPath)) {
|
||||
// Relative path
|
||||
physicalPath = Path.Combine(Path.GetDirectoryName(plugin.GetType().Assembly.Location)!, plugin.PhysicalPath);
|
||||
}
|
||||
|
||||
if (!Directory.Exists(physicalPath)) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue