Skip to content

Commit

Permalink
chore: 适配新版本maafw (MaaToolKit -> MaaToolkit)
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 3, 2024
1 parent e1c6372 commit 6110a75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <string>

#include "MaaFramework/MaaAPI.h"
#include "MaaToolKit/MaaToolKitAPI.h"
#include "MaaToolkit/MaaToolkitAPI.h"

#include "meojson/json.hpp"
#include "utils/Locale.hpp"
Expand Down Expand Up @@ -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);
Expand All @@ -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)) {
Expand Down

0 comments on commit 6110a75

Please sign in to comment.