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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user