mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
refactor: 重构 Resource 类
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1541
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "PackageTask.h"
|
||||
|
||||
#include "GeneralConfiger.h"
|
||||
#include "Logger.hpp"
|
||||
#include "Resource.h"
|
||||
|
||||
bool asst::PackageTask::run()
|
||||
{
|
||||
@@ -11,7 +11,7 @@ bool asst::PackageTask::run()
|
||||
}
|
||||
m_running = true;
|
||||
|
||||
const auto task_delay = Resrc.cfg().get_options().task_delay;
|
||||
const auto task_delay = GeneralConfiger::get_instance().get_options().task_delay;
|
||||
|
||||
for (size_t i = 0; i != m_subtasks.size(); ++i) {
|
||||
if (need_exit()) {
|
||||
|
||||
Reference in New Issue
Block a user