Skip to content

Instantly share code, notes, and snippets.

View adamkittelson's full-sized avatar

Adam Kittelson adamkittelson

  • Adobe
  • Madison, WI
  • 23:45 (UTC -06:00)
View GitHub Profile
@nt153133
nt153133 / Cutscene.cs
Created March 5, 2021 02:08
Get Skip Cutscene Setting
//48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 8B F2 48 8D B9 ? ? ? ?
public unsafe delegate IntPtr MyGetSetting(IntPtr a1, uint a2);
private IntPtr GetCutsceneSettingPtr()
{
var ffxivBase = Process.GetCurrentProcess().MainModule.BaseAddress;
var settingFunction = Marshal.GetDelegateForFunctionPointer<MyGetSetting>(ffxivBase + 0x68F80);
IntPtr g_Framework_2 = ffxivBase + 0x1D68238; //This should be part of Dalamud somewhere
IntPtr intPtr= Marshal.ReadIntPtr(g_Framework_2) + 0x10;
uint settingID = 0xC2; //This settings ID