Unpatch when exiting disabled GUI

This commit is contained in:
Thoronium
2023-04-22 16:56:59 -06:00
parent 0f08bb5fbf
commit 361737c00d

View File

@@ -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(());