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);