aledlb8/atas ? reverse-engineered prompt
Reverse engineered prompt
I want a small Python tool that takes the original OFT.Platform.Core.dll and patches it into OFT.Platform.Core.patched.dll for ATAS X, not ATAS Platform.
Please make it work from the command line with a simple default run, plus optional input, output, and dry run modes. It should read the DLL, apply the known patch points, and write the patched file without needing me to do anything manual. The script should also verify whether the DLL is already patched, and print a clear summary like how many spots are already patched, how many still need patching, and whether anything needs attention.
It also needs to clear the ReadyToRun managed native header so the runtime uses the patched IL instead of old native code. If the file layout or method locations have changed, I want the script to tell me that the fingerprints or RVAs need updating instead of silently failing. Keep it simple and dependable, and use current docs online if you need to check anything.