mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-21 15:27:51 +01:00
Add option to clear non-ascii symbols from paths again.
This commit is contained in:
parent
b14cd26e4e
commit
59ea1f2dd6
13 changed files with 56 additions and 62 deletions
|
|
@ -877,7 +877,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
|||
public PenumbraApiEc CreateNamedTemporaryCollection(string name)
|
||||
{
|
||||
CheckInitialized();
|
||||
if (name.Length == 0 || ModCreator.ReplaceBadXivSymbols(name) != name || name.Contains('|'))
|
||||
if (name.Length == 0 || ModCreator.ReplaceBadXivSymbols(name, _config.ReplaceNonAsciiOnImport) != name || name.Contains('|'))
|
||||
return PenumbraApiEc.InvalidArgument;
|
||||
|
||||
return _tempCollections.CreateTemporaryCollection(name).Length > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue