mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Fix shifted timeline vfunc offset.
This commit is contained in:
parent
ff2b2be953
commit
391c9d727e
2 changed files with 2 additions and 4 deletions
|
|
@ -59,9 +59,6 @@ public class GameState : IService
|
|||
|
||||
private readonly ThreadLocal<ResolveData> _characterSoundData = new(() => ResolveData.Invalid, true);
|
||||
|
||||
public ResolveData SoundData
|
||||
=> _characterSoundData.Value;
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
|
||||
public ResolveData SetSoundData(ResolveData data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ public sealed unsafe class LoadTimelineResources : FastHook<LoadTimelineResource
|
|||
{
|
||||
if (timeline != null)
|
||||
{
|
||||
var idx = timeline->GetOwningGameObjectIndex();
|
||||
// TODO: Clientstructify
|
||||
var idx = ((delegate* unmanaged<SchedulerTimeline*, int>**)timeline)[0][29](timeline);
|
||||
if (idx >= 0 && idx < objects.TotalCount)
|
||||
{
|
||||
var obj = objects[idx];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue