Some fixes regarding Forward-Slashes in ModNames.

This commit is contained in:
Ottermandias 2021-07-24 20:32:51 +02:00
parent 03a722b92f
commit d6bb45f33c
8 changed files with 72 additions and 21 deletions

View file

@ -39,9 +39,10 @@ namespace Penumbra.Mods
return false;
}
if( newSortOrder == string.Empty || newSortOrder == mod.Meta.Name )
var modName = mod.Meta.Name.Replace( '/', '\\' );
if( newSortOrder == string.Empty || newSortOrder == modName )
{
mod.SortOrder = mod.Meta.Name;
mod.SortOrder = modName;
manager.Config.ModSortOrder.Remove( mod.BasePath.Name );
}
else