diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index e731ad9c64..9071c578f3 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -463,12 +463,13 @@ bool asst::AdbController::screencap(const std::string& cmd, const DecodeFunc& de auto ret = call_command(cmd, 20000, allow_reconnect, by_socket); if (!ret || ret.value().empty()) [[unlikely]] { - Log.warn("data is too small!"); + Log.warn("data is empty!"); + return false; } auto& data = ret.value(); if (m_screencap_data_general_size && data.size() < m_screencap_data_general_size * 0.1) { - Log.error("data is too small!"); - return false; + Log.warn("data is too small!"); + // return false; } bool tried_conversion = false; diff --git a/src/MaaCore/Controller/Controller.cpp b/src/MaaCore/Controller/Controller.cpp index 58cb52da7f..30467585f7 100644 --- a/src/MaaCore/Controller/Controller.cpp +++ b/src/MaaCore/Controller/Controller.cpp @@ -166,6 +166,12 @@ bool asst::Controller::connect(const std::string& adb_path, const std::string& a m_uuid = m_controller->get_uuid(); +#ifdef ASST_DEBUG + if (config == "DEBUG") { + return true; + } +#endif + // try to find the fastest way if (!screencap()) { Log.error("Cannot find a proper way to screencap!");