mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +01:00
With explicit null-termination, maybe?
This commit is contained in:
parent
eb0e7e2f5f
commit
793ed4f0a7
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ public sealed unsafe class ResolvePathHooksBase : IDisposable
|
||||||
if (model == 0 || variant == 0 || vfxId == 0)
|
if (model == 0 || variant == 0 || vfxId == 0)
|
||||||
return ResolveVfx(drawObject, pathBuffer, pathBufferSize, slotIndex, unkOutParam);
|
return ResolveVfx(drawObject, pathBuffer, pathBufferSize, slotIndex, unkOutParam);
|
||||||
|
|
||||||
if (!Utf8.TryWrite(new Span<byte>((void*)pathBuffer, (int)pathBufferSize), $"chara/accessory/a{model:D4}/vfx/eff/va{vfxId:D4}.avfx",
|
if (!Utf8.TryWrite(new Span<byte>((void*)pathBuffer, (int)pathBufferSize), $"chara/accessory/a{model:D4}/vfx/eff/va{vfxId:D4}.avfx\0",
|
||||||
out _))
|
out _))
|
||||||
return ResolveVfx(drawObject, pathBuffer, pathBufferSize, slotIndex, unkOutParam);
|
return ResolveVfx(drawObject, pathBuffer, pathBufferSize, slotIndex, unkOutParam);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue