Added handling of normal compression for patching xex files
This looks like it works and is mostly mimiced from xenia canary. Haven't completely tested it as I need to redo all the switch table definitions but patched file that is generated looks good, xenia canary works with it, and xenon analyse passes it as an unencrypted/uncompressed file
I'll also add functionality to xenon analyse when I get round to it
XenonAnalyse now generates switch tables for normal compression xex files
It works with XenonRecomp too I imagine?
Yeah just ran XenonAnalyse and XenonRecomp using the encrypted/compressed xex and seems to work correctly. The switch file generated by XenonAnalyse is the same as with the xextool uncompressed xex. Same with XenonRecomp and the PPC files that are generated
I have only tested it with Army of Two and it's relevant title update though and it's difficult for me to judge if the patch has worked correctly or written to places in ways I'm not aware of
After doing all the switch function declarations, it seems to be fine and I'm pretty confident it works correctly. A quick 5 minutes on xenia canary ran fine and the Army of Two recomp now reaches NtAllocateVirtualMemory instead of spinning in NtEnterCriticalSection on launch
Nice! I'll look into merging this when I have the chance, it seems good to me from a quick look.
Added the changes, apologies it took a while