| 6 | #include "MaaUtils/Time.hpp" |
| 7 | |
| 8 | MAA_CTRL_UNIT_NS_BEGIN |
| 9 | |
| 10 | bool ScreencapEncodeToFileAndPull::parse(const json::value& config) |
| 11 | { |
| 12 | static const json::array kDefaultScreencapEncodeToFileArgv = { |
| 13 | "{ADB}", "-s", "{ADB_SERIAL}", "shell", "screencap -p > \"/data/local/tmp/{TEMP_FILE}\"", |
| 14 | }; |
| 15 | static const json::array kDefaultPullFileArgv = { "{ADB}", "-s", "{ADB_SERIAL}", "pull", "/data/local/tmp/{TEMP_FILE}", "{DST_PATH}" }; |
| 16 | |
| 17 | return parse_command("ScreencapEncodeToFile", config, kDefaultScreencapEncodeToFileArgv, screencap_encode_to_file_argv_) |
| 18 | && parse_command("PullFile", config, kDefaultPullFileArgv, pull_file_argv_); |
| 19 | } |
| 20 | |
| 21 | bool ScreencapEncodeToFileAndPull::init() |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected