MCPcopy Create free account
hub / github.com/cutechess/cutechess / readEngineConfig

Function readEngineConfig

projects/cli/src/main.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68};
69
70bool readEngineConfig(const QString& name, EngineConfiguration& config)
71{
72 const auto app = CuteChessCoreApplication::instance();
73 const auto engines = app->engineManager()->engines();
74 for (const auto& engine : engines)
75 {
76 if (engine.name() == name)
77 {
78 config = engine;
79 return true;
80 }
81 }
82 return false;
83}
84
85bool parseEngine(const QStringList& args, EngineData& data)
86{

Callers 1

parseEngineFunction · 0.85

Calls 3

enginesMethod · 0.80
engineManagerMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected