mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
Unpatch when exiting disabled GUI
This commit is contained in:
@@ -171,6 +171,7 @@ fn main() -> Result<(), ArgsError> {
|
||||
// For disabled GUI
|
||||
ctrlc::set_handler(|| {
|
||||
disconnect();
|
||||
block_on(patch::unpatch_game());
|
||||
std::process::exit(0);
|
||||
})
|
||||
.unwrap_or(());
|
||||
|
||||
Reference in New Issue
Block a user