michael-fadely / sa2-battle-network

Online multiplayer for Sonic Adventure 2 PC
MIT License
31 stars 1 forks source link

Only use trampolines when connected #18

Closed michael-fadely closed 8 years ago

michael-fadely commented 8 years ago

Particularly in cases where detour functions are checking if a connection has been established, the associated trampolines shouldn't have even been initialized until a connection has been established. Code changes can then be restored after disconnecting. Trampolines will need to be updated to actually restore code on destruct though.