Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 31, 2023
1 parent 3b66985 commit c779548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <string>

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

#include "meojson/json.hpp"
#include "utils/Locale.hpp"
Expand Down Expand Up @@ -64,8 +65,7 @@ int main(int argc, char** argv)
std::string agent_path = (cur_dir / "MaaAgentBinary").string();
std::string adb_config = read_adb_config(cur_dir);

MaaSetGlobalOption(MaaGlobalOption_Logging, (void*)debug_dir.c_str(), debug_dir.size());
MaaSetGlobalOption(MaaGlobalOption_DebugMode, (void*)&debug, sizeof(bool));
MaaToolKitInit();

auto maa_handle = MaaCreate(nullptr, nullptr);
auto resource_handle = MaaResourceCreate(nullptr, nullptr);
Expand All @@ -91,6 +91,7 @@ int main(int argc, char** argv)
MaaDestroy(maa_handle);
MaaResourceDestroy(resource_handle);
MaaControllerDestroy(controller_handle);
MaaToolKitUninit();
};

if (!MaaInited(maa_handle)) {
Expand Down Expand Up @@ -146,7 +147,7 @@ json::value combat_param(int index)
auto& all_in_doc = diff["AllIn"]["doc"];
auto& eat_candy_within_24h = diff["EatCandyWithin24H"]["enabled"];
auto& eat_candy_within_24h_doc = diff["EatCandyWithin24H"]["doc"];

all_in = false;
all_in_doc = "刷活性;默认false";
eat_candy_within_24h = false;
Expand Down

0 comments on commit c779548

Please sign in to comment.