From 212c875eef493a364a403012bceb49a247530a6f Mon Sep 17 00:00:00 2001 From: Dongw Date: Wed, 1 Nov 2023 13:31:24 +0800 Subject: [PATCH] fix: build error --- source/cli/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cli/main.cpp b/source/cli/main.cpp index 1727f6b..c5bc43d 100644 --- a/source/cli/main.cpp +++ b/source/cli/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char** argv) std::string adb_config = MaaToolKitGetDeviceAdbConfig(kIndex); std::string agent_dir = (cur_dir / "MaaAgentBinary").string(); - MaaSetGlobalOption(MaaGlobalOption_Logging, (void*)debug_dir.c_str(), debug_dir.size()); + MaaSetGlobalOption(MaaGlobalOption_LogDir, (void*)debug_dir.c_str(), debug_dir.size()); MaaSetGlobalOption(MaaGlobalOption_DebugMode, (void*)&debug, sizeof(bool)); auto maa_handle = MaaCreate(nullptr, nullptr);