Skip to content

Commit

Permalink
feat: 增加输出MAS和MaaFramework版本名
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Sep 27, 2023
1 parent abfb0e1 commit 1ae5040
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ int main(int argc, char** argv)
MaaToolKitInit();

print_help();
print_version();

bool debug = false;
std::string adb;
Expand Down Expand Up @@ -117,6 +118,13 @@ Welcome to come and create a GUI for us! :)
)" << std::endl;
}

void print_version()
{
std::cout << "MaaFramework Version: " << MaaVersion() << std::endl
<< "MAS Version: " << MAS_VERSION << std::endl
<< std::endl;
}

MaaSize scanning_devices()
{
std::cout << "Scanning for Devices..." << std::endl;
Expand Down
2 changes: 2 additions & 0 deletions source/cli/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ using TaskList = std::vector<Task>;

void print_help();

void print_version();

MaaSize scanning_devices();

json::value skland_param();
Expand Down

0 comments on commit 1ae5040

Please sign in to comment.