1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 13:29:25 +08:00

fix: set pause when disable all crack

This commit is contained in:
0O0o0oOoO00
2025-11-23 15:11:13 +08:00
parent 547fcccd9c
commit 1515e14bd4

View File

@@ -15,7 +15,11 @@
CrackerServer::CrackerServer() {
Post("/disable_all", [](const httplib::Request& req, httplib::Response& res) {
try {
Cracker::Instance().disable_all();
auto& ins = Cracker::Instance();
ins.better_global_speedup_pause(true);
ins.skip_battle_celebrate_pause(true);
ins.fast_stage_move_pause(true);
ins.disable_all();
} catch (std::exception& e) {
SPDLOG_ERROR("Disable all failed: {}", e.what());
res.status = 500;