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