mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix -- texture prefixing in ResourceTree
This commit is contained in:
parent
895e70555d
commit
22cb33e49e
1 changed files with 2 additions and 1 deletions
|
|
@ -48,8 +48,9 @@ internal record class ResolveContext(Configuration Config, IObjectIdentifier Ide
|
|||
prefixed[lastDirectorySeparator + 1] = (byte)'-';
|
||||
prefixed[lastDirectorySeparator + 2] = (byte)'-';
|
||||
gamePath.Span[(lastDirectorySeparator + 1)..].CopyTo(prefixed[(lastDirectorySeparator + 3)..]);
|
||||
prefixed[^1] = 0;
|
||||
|
||||
if (!Utf8GamePath.FromSpan(prefixed, out var tmp))
|
||||
if (!Utf8GamePath.FromSpan(prefixed[..^1], out var tmp))
|
||||
return null;
|
||||
|
||||
gamePath = tmp.Path.Clone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue