Skip to content

Instantly share code, notes, and snippets.

@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
diff --git a/OpenCL/inc_hash_sha1.cl b/OpenCL/inc_hash_sha1.cl
index 58a9ef0f4..c7b849320 100644
--- a/OpenCL/inc_hash_sha1.cl
+++ b/OpenCL/inc_hash_sha1.cl
@@ -22,8 +22,6 @@ DECLSPEC void sha1_transform (const u32 *w0, const u32 *w1, const u32 *w2, const
u32 d = digest[3];
u32 e = digest[4];
- #ifdef IS_CPU
-