Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Sigs updated for patch 6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
PunishedPineapple committed Jan 10, 2023
1 parent 421dbaa commit 49e1f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WaymarkPresetPlugin/MemoryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetPresetAddressForSlotDelegate>( fpGetPresetAddressForSlot );
Expand Down Expand Up @@ -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.*****

Expand Down

0 comments on commit 49e1f6d

Please sign in to comment.