Update: So I got the matches working, another problem arises though...
I'm still learning PolyHook2 so upgrading the code to the new version has been a pain. hooking an X64 function causes the ASI to fail to load and I don't know what I'm doing wrong.
[2022-12-02 14:33:49] DBG 0x7A70 script.cpp (line 308): Executing hookX64Function(pGetRenderTimeBase, &Detour_GetRenderTimeBase, hkGetRenderTimeBase);
I don't know how to get PolyHook2's logging to work with the original author's logging function so I'm kind of stuck, any help would be appreciated.