feat(instance logs): log components

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 547b4c0d3a)
This commit is contained in:
Octol1ttle 2026-05-17 23:45:40 +05:00 committed by github-actions[bot]
parent 6392d89c33
commit be5f27ceb1

View file

@ -893,6 +893,14 @@ QStringList MinecraftInstance::verboseDescription(AuthSessionPtr session, Minecr
QStringList out;
out << "Components:";
for (int i = 0; i < m_components->rowCount(); ++i) {
const auto& component = m_components->getComponent(i);
out << indent +
QString("%1) %2 (%3) %4").arg(QString::number(i + 1), component->getName(), component->getID(), component->getVersion());
}
out << emptyLine;
out << "Launcher: " + getLauncher();
out << "Main class: " + getMainClass() << emptyLine;