mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Change path comparison for AddMod.
This commit is contained in:
parent
f51fc2cafd
commit
f6b35497c5
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ public class ModsApi : IPenumbraApiMods, IApiService, IDisposable
|
|||
if (!dir.Exists)
|
||||
return ApiHelpers.Return(PenumbraApiEc.FileMissing, args);
|
||||
|
||||
if (_modManager.BasePath.FullName != dir.Parent?.FullName)
|
||||
if (dir.Parent == null || Path.GetFullPath(_modManager.BasePath.FullName) != Path.GetFullPath(dir.Parent.FullName))
|
||||
return ApiHelpers.Return(PenumbraApiEc.InvalidArgument, args);
|
||||
|
||||
_modManager.AddMod(dir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue