re-add from here https://github.com/Polyfrost/CrashPatch/commit/00358fd08d6234521a487f456a1291294142d9f0