NOISSUE add an interface to pass information to CraftPresence

Specifically, the icon key and instance title.
This commit is contained in:
Petr Mrázek
2023-03-10 19:56:17 +01:00
parent d98022d3ae
commit c1ed09e747
5 changed files with 19 additions and 2 deletions

View File

@@ -313,6 +313,11 @@ QString BaseInstance::windowTitle() const
return BuildConfig.LAUNCHER_NAME + ": " + name().replace(QRegExp("[ \n\r\t]+"), " ");
}
QString BaseInstance::instanceTitle() const
{
return name().replace(QRegExp("[ \n\r\t]+"), " ");
}
// FIXME: why is this here? move it to MinecraftInstance!!!
QStringList BaseInstance::extraArguments() const
{