mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Rename some collection stuff.
This commit is contained in:
parent
f264725c45
commit
8aefdbd948
9 changed files with 51 additions and 35 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Metadata;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
|
|
@ -161,7 +162,9 @@ public unsafe partial class ResourceLoader
|
|||
return ret == null ? null : ret->Value;
|
||||
}
|
||||
|
||||
public delegate void ExtMapAction( ResourceCategory category, StdMap< uint, Pointer< StdMap< uint, Pointer< ResourceHandle > > > >* graph, int idx );
|
||||
public delegate void ExtMapAction( ResourceCategory category, StdMap< uint, Pointer< StdMap< uint, Pointer< ResourceHandle > > > >* graph,
|
||||
int idx );
|
||||
|
||||
public delegate void ResourceMapAction( uint ext, StdMap< uint, Pointer< ResourceHandle > >* graph );
|
||||
public delegate void ResourceAction( uint crc32, ResourceHandle* graph );
|
||||
|
||||
|
|
@ -223,9 +226,14 @@ public unsafe partial class ResourceLoader
|
|||
// Prevent resource management weirdness.
|
||||
private byte ResourceHandleDecRefDetour( ResourceHandle* handle )
|
||||
{
|
||||
if( handle == null )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if( handle->RefCount != 0 )
|
||||
{
|
||||
return _decRefHook!.Original( handle );
|
||||
return _decRefHook.Original( handle );
|
||||
}
|
||||
|
||||
PluginLog.Error( $"Caught decrease of Reference Counter for {handle->FileName} at 0x{( ulong )handle:X} below 0." );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue