mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
remove ottergui from material
This commit is contained in:
parent
dcdc6d1be1
commit
e0000c9ef9
1 changed files with 4 additions and 6 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Linq;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
using Dalamud.Logging;
|
using Dalamud.Logging;
|
||||||
using Dalamud.Utility.Signatures;
|
using Dalamud.Utility.Signatures;
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||||
using OtterGui;
|
|
||||||
using Penumbra.Collections;
|
using Penumbra.Collections;
|
||||||
using Penumbra.GameData.ByteString;
|
using Penumbra.GameData.ByteString;
|
||||||
using Penumbra.GameData.Enums;
|
using Penumbra.GameData.Enums;
|
||||||
|
|
@ -97,11 +97,9 @@ public unsafe partial class PathResolver
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
||||||
#endif
|
#endif
|
||||||
IntPtr gameObjAddr = IntPtr.Zero;
|
|
||||||
if ( Dalamud.Objects.FindFirst(f => f.Name.TextValue == name, out var gameObj ) )
|
var objFromObjTable = Dalamud.Objects.FirstOrDefault( f => f.Name.TextValue == name );
|
||||||
{
|
IntPtr gameObjAddr = objFromObjTable?.Address ?? IntPtr.Zero;
|
||||||
gameObjAddr = gameObj.Address;
|
|
||||||
}
|
|
||||||
_paths.SetCollection( gameObjAddr, path, collection );
|
_paths.SetCollection( gameObjAddr, path, collection );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue