mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Do not force avfx files to load synchronously.
This commit is contained in:
parent
2dda954806
commit
0b7b63a3a9
1 changed files with 15 additions and 12 deletions
|
|
@ -133,24 +133,27 @@ public unsafe partial class PathResolver
|
||||||
|
|
||||||
// We need to set the correct collection for the actual material path that is loaded
|
// We need to set the correct collection for the actual material path that is loaded
|
||||||
// before actually loading the file.
|
// before actually loading the file.
|
||||||
public bool SubfileLoadHandler( ByteString split, ByteString path, ResourceManager* resourceManager,
|
public static bool SubfileLoadHandler( ByteString split, ByteString path, ResourceManager* resourceManager,
|
||||||
SeFileDescriptor* fileDescriptor, int priority, bool isSync, out byte ret )
|
SeFileDescriptor* fileDescriptor, int priority, bool isSync, out byte ret )
|
||||||
{
|
{
|
||||||
ret = 0;
|
|
||||||
switch( fileDescriptor->ResourceHandle->FileType )
|
switch( fileDescriptor->ResourceHandle->FileType )
|
||||||
{
|
{
|
||||||
case ResourceType.Mtrl:
|
case ResourceType.Mtrl:
|
||||||
case ResourceType.Avfx:
|
|
||||||
break;
|
|
||||||
default: return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Force isSync = true for this call. I don't really understand why,
|
// Force isSync = true for this call. I don't really understand why,
|
||||||
// or where the difference even comes from.
|
// or where the difference even comes from.
|
||||||
// Was called with True on my client and with false on other peoples clients,
|
// Was called with True on my client and with false on other peoples clients,
|
||||||
// which caused problems.
|
// which caused problems.
|
||||||
ret = Penumbra.ResourceLoader.DefaultLoadResource( path, resourceManager, fileDescriptor, priority, true );
|
ret = Penumbra.ResourceLoader.DefaultLoadResource( path, resourceManager, fileDescriptor, priority, true );
|
||||||
return true;
|
return true;
|
||||||
|
case ResourceType.Avfx:
|
||||||
|
// Do nothing special right now.
|
||||||
|
ret = Penumbra.ResourceLoader.DefaultLoadResource( path, resourceManager, fileDescriptor, priority, isSync );
|
||||||
|
return true;
|
||||||
|
|
||||||
|
default:
|
||||||
|
ret = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private delegate byte LoadMtrlFilesDelegate( IntPtr mtrlResourceHandle );
|
private delegate byte LoadMtrlFilesDelegate( IntPtr mtrlResourceHandle );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue