Skip to content

Commit

Permalink
perf: adb invoke app abilist
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Nov 30, 2023
1 parent 5cd4cc9 commit ced0426
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions source/MaaAdbControlUnit/Invoke/InvokeApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,7 @@ std::optional<std::vector<std::string>> InvokeApp::abilist()
return std::nullopt;
}

auto abils = cmd_ret.value();
std::vector<std::string> res;

while (abils.length() > 0) {
auto pos = abils.find(',');
res.push_back(abils.substr(0, pos));
abils = abils.substr(pos + 1);
if (pos == std::string::npos) {
break;
}
}

return res;
return string_split(*cmd_ret, ',');
}

std::optional<int> InvokeApp::sdk()
Expand Down

0 comments on commit ced0426

Please sign in to comment.