MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / openJsonEditor

Method openJsonEditor

launcher/Application.cpp:1383–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383bool Application::openJsonEditor(const QString& filename)
1384{
1385 const QString file = QDir::current().absoluteFilePath(filename);
1386 if (m_settings->get("JsonEditor").toString().isEmpty()) {
1387 return DesktopServices::openUrl(QUrl::fromLocalFile(file));
1388 } else {
1389 // return DesktopServices::openFile(m_settings->get("JsonEditor").toString(), file);
1390 return DesktopServices::run(m_settings->get("JsonEditor").toString(), { file });
1391 }
1392}
1393
1394bool Application::launch(InstancePtr instance, bool online, bool demo, MinecraftTarget::Ptr targetToJoin, MinecraftAccountPtr accountToUse)
1395{

Callers 1

Calls 5

openUrlFunction · 0.85
runFunction · 0.85
isEmptyMethod · 0.45
toStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected