mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 15:49:25 +08:00
fix: lack of need pause flag
This commit is contained in:
@@ -743,8 +743,8 @@ void Cracker::print_value(std::vector<std::string>& path) {
|
||||
}
|
||||
}
|
||||
|
||||
void Cracker::better_global_speedup_pause(bool is_need) {
|
||||
m_better_global_speedup_need_pause.store(is_need);
|
||||
void Cracker::better_global_speedup_pause(bool need_pause) {
|
||||
m_better_global_speedup_need_pause.store(need_pause);
|
||||
}
|
||||
|
||||
void Cracker::load_lua_resources() {
|
||||
|
||||
@@ -277,7 +277,7 @@ public:
|
||||
void print_table_field(std::vector<std::string>& path);
|
||||
void print_value(std::vector<std::string>& path);
|
||||
|
||||
void better_global_speedup_pause(bool is_need);
|
||||
void better_global_speedup_pause(bool need_pause);
|
||||
|
||||
Config get_config();
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ CrackerServer::CrackerServer() {
|
||||
ins.better_global_speedup_pause(true);
|
||||
ins.skip_battle_celebrate_pause(true);
|
||||
ins.fast_stage_move_pause(true);
|
||||
ins.no_emotion_warning_pause(true);
|
||||
ins.skip_enter_battle_pause(true);
|
||||
ins.disable_all();
|
||||
} catch (std::exception& e) {
|
||||
@@ -35,6 +36,7 @@ CrackerServer::CrackerServer() {
|
||||
ins.better_global_speedup_pause(false);
|
||||
ins.skip_battle_celebrate_pause(false);
|
||||
ins.fast_stage_move_pause(false);
|
||||
ins.no_emotion_warning_pause(false);
|
||||
ins.skip_enter_battle_pause(false);
|
||||
ins.disable_all();
|
||||
} catch (std::exception& e) {
|
||||
@@ -374,7 +376,7 @@ CrackerServer::CrackerServer() {
|
||||
|
||||
Post("/enable_no_emotion_warning_without_pause", [](const httplib::Request& req, httplib::Response& res) {
|
||||
try {
|
||||
auto& ins = Cracker::Instance();
|
||||
auto& ins = Cracker::Instance(false);
|
||||
ins.no_emotion_warning_pause(false);
|
||||
ins.enable_no_emotion_warning();
|
||||
} catch (std::exception& e) {
|
||||
@@ -387,7 +389,7 @@ CrackerServer::CrackerServer() {
|
||||
|
||||
Post("/disable_no_emotion_warning_without_pause", [](const httplib::Request& req, httplib::Response& res) {
|
||||
try {
|
||||
auto& ins = Cracker::Instance();
|
||||
auto& ins = Cracker::Instance(false);
|
||||
ins.no_emotion_warning_pause(false);
|
||||
ins.disable_no_emotion_warning();
|
||||
} catch (std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user