Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Mar 27, 2024
1 parent 7f409d6 commit 7340aed
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions source/MaaProjectInterface/CLI/interactor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "interactor.h"

#include <format>
#include <ranges>
#include <unordered_set>

#include "MaaToolkit/Device/MaaToolkitDevice.h"
Expand Down Expand Up @@ -376,7 +377,8 @@ void Interactor::add_task()

std::cout << "### Add task ###\n\n";
for (size_t i = 0; i < all_data_tasks.size(); ++i) {
std::cout << MAA_LOG_NS::utf8_to_crt(std::format("\t{}. {}\n", i + 1, all_data_tasks[i].name));
std::cout << MAA_LOG_NS::utf8_to_crt(
std::format("\t{}. {}\n", i + 1, all_data_tasks[i].name));
}
std::cout << "\n";
auto input_indexes = input_multi(all_data_tasks.size());
Expand Down Expand Up @@ -484,8 +486,8 @@ void Interactor::print_config_tasks(bool with_index) const
}

for (const auto& [key, value] : task.option) {
std::cout << "\t\t- " << MAA_LOG_NS::utf8_to_crt(key) << ": " << MAA_LOG_NS::utf8_to_crt(value)
<< "\n";
std::cout << "\t\t- " << MAA_LOG_NS::utf8_to_crt(key) << ": "
<< MAA_LOG_NS::utf8_to_crt(value) << "\n";
}
}
std::cout << "\n";
Expand All @@ -507,5 +509,6 @@ void Interactor::on_maafw_notify(
std::ignore = pthis;

std::string entry = json::parse(details_json).value_or(json::value())["entry"].as_string();
std::cout << MAA_LOG_NS::utf8_to_crt(std::format("on_maafw_notify: {} {}", msg, entry)) << std::endl;
}
std::cout << MAA_LOG_NS::utf8_to_crt(std::format("on_maafw_notify: {} {}", msg, entry))
<< std::endl;
}

0 comments on commit 7340aed

Please sign in to comment.