MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / parse_import_data

Method parse_import_data

source/MaaPiCli/Impl/Parser.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118std::optional<ImportData> Parser::parse_import_data(const std::filesystem::path& path)
119{
120 LogFunc << VAR(path);
121 auto json_opt = json::open(path, true, true);
122 if (!json_opt) {
123 LogError << "failed to parse import interface" << VAR(path);
124 return std::nullopt;
125 }
126
127 const json::value& json = *json_opt;
128 return parse_import_data(json);
129}
130
131std::optional<ImportData> Parser::parse_import_data(const json::value& json)
132{

Callers

nothing calls this directly

Calls 1

ImportDataClass · 0.85

Tested by

no test coverage detected