naked functions do not contain the necessary prologue and epilogue to handle exceptions properly (precisely because they are naked). As a result, it appears all our naked functions border on undefined behavior if an exception is raised by the game while there is a trampoline on the stack.
Update the generation of the trampolines to include a forwarding SEH handler that naturally propagates the exception to the next frame.
naked functions do not contain the necessary prologue and epilogue to handle exceptions properly (precisely because they are naked). As a result, it appears all our naked functions border on undefined behavior if an exception is raised by the game while there is a trampoline on the stack.
Update the generation of the trampolines to include a forwarding SEH handler that naturally propagates the exception to the next frame.