I'm not entirely sure what's happening here, since the mod (in its entirety) was working completely fine for me when I was working on it over the past 2 days, but somewhere along me setting up a repo and before publishing to GameBanana it now just crashes the game. It seems to run fine the first time I build it, but subsequent launches of the game causes it to crash before loading in to the title screen.
I've isolated that the problem comes from my _cameraHook.OriginalFunction call - commenting out my custom function logic still crashes, but removing the original function call will run. The only thing I can think of would be that the registers/parameters aren't correctly defined or interacted with in my code, but I'm not sure why it was working before.
My logging statements also print to console and seem to indicate no issue at all in this section, including the memory modifications, though they don't get written to the actual log file due to the game crashing.
I took a look through the resulting assembly code through CE, and didn't identify anything clearly wrong but my assembly skills are pretty lacking, and the game crashing on launch is making debugging difficult :/ Any help would be greatly appreciated, kinda at a loss atm.
thanks a lot secrec