MirisWisdom / OpenSauce

The immaculate mirror of all well-known OpenSauce repositories.
https://bitbucket.org/KornnerStudios/opensauce-release
15 stars 6 forks source link

Memory operations done by Open Sauce can cause issues with other mods. #10

Open BinToss opened 4 years ago

BinToss commented 4 years ago

Memory Protection? The exact issue needs to be re-researched.

BinToss commented 4 years ago

https://github.com/yumiris/OpenSauce/wiki/Doc_Halo1_CheApeIntegration

Before anything happens, CheApe sets the virtual memory of the host EXE (eg, OS_guerilla.exe) to be all writable and executable. The memory is left this way until the program closes. An ugly hack, yes, but at the time it was more desired than wrapping direct writes to the .text or .rdata in some fancy setup that changed the virtual memory permissions, performed the change, then reverted back the permissions.