Grasscutters / Cultivation

A custom launcher designed to make it as easy as possible to proxy anime game traffic to private servers.
Apache License 2.0
968 stars 160 forks source link

Add trigger for unpatching on SIGTERM and SIGKILL #85

Open HKunogi opened 1 year ago

HKunogi commented 1 year ago

Currently if you cultivation gets closed by any abrupt way, the patching isn't undone, leading to the proxying to stay activate, leading to many problems on internet usage (like certificate validation). To solve that, one has to reopen cultivation and then launch the game from it, it will fail to patch, but then when closing the game properly, it will unpatch it. Adding triggers for abrupt interruptions and unpatching at that time would solve that issue.