Fix shifted timeline vfunc offset.

This commit is contained in:
Ottermandias 2025-08-09 12:51:39 +02:00
parent ff2b2be953
commit 391c9d727e
2 changed files with 2 additions and 4 deletions

View file

@ -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)
{

View file

@ -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];