mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Use collection prefix for TMBs.
This commit is contained in:
parent
654978dd64
commit
b50564f741
1 changed files with 3 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ public unsafe class SubfileHelper : IDisposable, IReadOnlyCollection<KeyValuePai
|
|||
return false;
|
||||
}
|
||||
|
||||
/// <summary> Materials and AVFX need to be set per collection so they can load their textures independently from each other. </summary>
|
||||
/// <summary> Materials, TMB, and AVFX need to be set per collection so they can load their sub files independently from each other. </summary>
|
||||
public static void HandleCollection(ResolveData resolveData, ByteString path, bool nonDefault, ResourceType type, FullPath? resolved,
|
||||
out (FullPath?, ResolveData) data)
|
||||
{
|
||||
|
|
@ -94,6 +94,7 @@ public unsafe class SubfileHelper : IDisposable, IReadOnlyCollection<KeyValuePai
|
|||
{
|
||||
case ResourceType.Mtrl:
|
||||
case ResourceType.Avfx:
|
||||
case ResourceType.Tmb:
|
||||
var fullPath = new FullPath($"|{resolveData.ModCollection.Name}_{resolveData.ModCollection.ChangeCounter}|{path}");
|
||||
data = (fullPath, resolveData);
|
||||
return;
|
||||
|
|
@ -117,7 +118,7 @@ public unsafe class SubfileHelper : IDisposable, IReadOnlyCollection<KeyValuePai
|
|||
switch (handle->FileType)
|
||||
{
|
||||
case ResourceType.Mtrl:
|
||||
case ResourceType.Avfx:
|
||||
case ResourceType.Avfx:
|
||||
if (handle->FileSize == 0)
|
||||
_subFileCollection[(nint)handle] = resolveData;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue