From 49e1f6d56abb89bbe2c454b43e7591edd4992ec7 Mon Sep 17 00:00:00 2001 From: PunishedPineapple <50609717+PunishedPineapple@users.noreply.github.com> Date: Tue, 10 Jan 2023 02:08:41 -0600 Subject: [PATCH] Sigs updated for patch 6.3. --- WaymarkPresetPlugin/MemoryHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WaymarkPresetPlugin/MemoryHandler.cs b/WaymarkPresetPlugin/MemoryHandler.cs index 9c9d6e3..b78d308 100644 --- a/WaymarkPresetPlugin/MemoryHandler.cs +++ b/WaymarkPresetPlugin/MemoryHandler.cs @@ -46,7 +46,7 @@ public static void Init( SigScanner sigScanner, ClientState clientState, Conditi PluginLog.LogInformation( $"FMARKER.DAT address: 0x{mdGetUISAVESectionAddress.Invoke( IntPtr.Zero, mFMARKERDATIndex ):X}" ); } - IntPtr fpGetPresetAddressForSlot = sigScanner.ScanText( "4C 8B C9 85 D2 78 0A 83 FA 08 73 05" ); + IntPtr fpGetPresetAddressForSlot = sigScanner.ScanText( "4C 8B C9 85 D2 78 0A 83 FA 1E 73 05" ); // DON'T wildcard this; we WANT it to fail if slots change at all (can't take the slot num in the function at face value, as in the past is hasn't matched the UI). if( fpGetPresetAddressForSlot != IntPtr.Zero ) { mdGetPresetAddressForSlot = Marshal.GetDelegateForFunctionPointer( fpGetPresetAddressForSlot ); @@ -296,7 +296,7 @@ private static void PlacePreset_ClientSide( GamePreset preset ) } // Magic Numbers - public static readonly int MaxPresetSlotNum = 5; + public static readonly int MaxPresetSlotNum = 30; private static readonly byte mFMARKERDATIndex = 0x11; private static IntPtr mClientSideWaymarksOffset = new( 0x1B0 ); //*****TODO: Feels bad initializing this with a magic number. Not sure best thing to do.*****