diff --git a/source/cli/CMakeLists.txt b/source/cli/CMakeLists.txt index 6e8dd913..f1992e29 100644 --- a/source/cli/CMakeLists.txt +++ b/source/cli/CMakeLists.txt @@ -6,7 +6,7 @@ else () endif () add_executable(M9A_CLI main.cpp) -target_link_libraries(M9A_CLI PRIVATE MaaFramework MaaToolKit) +target_link_libraries(M9A_CLI PRIVATE MaaFramework MaaToolkit) add_dependencies(M9A_CLI AssetsResource) diff --git a/source/cli/main.cpp b/source/cli/main.cpp index 93657363..ce1b3de5 100644 --- a/source/cli/main.cpp +++ b/source/cli/main.cpp @@ -5,7 +5,7 @@ #include #include "MaaFramework/MaaAPI.h" -#include "MaaToolKit/MaaToolKitAPI.h" +#include "MaaToolkit/MaaToolkitAPI.h" #include "meojson/json.hpp" #include "utils/Locale.hpp" @@ -64,7 +64,7 @@ int main(int argc, char** argv) std::string agent_path = (cur_dir / "MaaAgentBinary").string(); std::string adb_config = json::object().to_string(); - MaaToolKitInit(); + MaaToolkitInit(); auto maa_handle = MaaCreate(nullptr, nullptr); auto resource_handle = MaaResourceCreate(nullptr, nullptr); @@ -90,7 +90,7 @@ int main(int argc, char** argv) MaaDestroy(maa_handle); MaaResourceDestroy(resource_handle); MaaControllerDestroy(controller_handle); - MaaToolKitUninit(); + MaaToolkitUninit(); }; if (!MaaInited(maa_handle)) {