More rebranding

Closes: #39

Mostly done with rebranding now. We just need to translate some services
to PolyMC.
This commit is contained in:
swirl 2022-01-10 12:46:43 -05:00
parent c7f6f94930
commit 1d8196e11a
No known key found for this signature in database
GPG Key ID: 46507311CD292A08
24 changed files with 57 additions and 53 deletions

View File

@ -14,7 +14,7 @@ BEGIN
BEGIN BEGIN
BLOCK "000004b0" BLOCK "000004b0"
BEGIN BEGIN
VALUE "CompanyName", "MultiMC Contributors" VALUE "CompanyName", "MultiMC & PolyMC Contributors"
VALUE "FileDescription", "Testcase" VALUE "FileDescription", "Testcase"
VALUE "FileVersion", "1.0.0.0" VALUE "FileVersion", "1.0.0.0"
VALUE "ProductName", "Launcher Testcase" VALUE "ProductName", "Launcher Testcase"

View File

@ -435,7 +435,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
#endif #endif
/* /*
* Establish the mechanism for communication with an already running MultiMC that uses the same data path. * Establish the mechanism for communication with an already running PolyMC that uses the same data path.
* If there is one, tell it what the user actually wanted to do and exit. * If there is one, tell it what the user actually wanted to do and exit.
* We want to initialize this before logging to avoid messing with the log of a potential already running copy. * We want to initialize this before logging to avoid messing with the log of a potential already running copy.
*/ */

View File

@ -77,14 +77,14 @@ QProcessEnvironment CleanEnviroment()
qDebug() << "Env: ignoring" << key << value; qDebug() << "Env: ignoring" << key << value;
continue; continue;
} }
// filter MultiMC-related things // filter PolyMC-related things
if(key.startsWith("QT_")) if(key.startsWith("QT_"))
{ {
qDebug() << "Env: ignoring" << key << value; qDebug() << "Env: ignoring" << key << value;
continue; continue;
} }
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
// Do not pass LD_* variables to java. They were intended for MultiMC // Do not pass LD_* variables to java. They were intended for PolyMC
if(key.startsWith("LD_")) if(key.startsWith("LD_"))
{ {
qDebug() << "Env: ignoring" << key << value; qDebug() << "Env: ignoring" << key << value;
@ -402,7 +402,7 @@ QList<QString> JavaUtils::FindJavaPaths()
scanJavaDir("/usr/lib/jvm"); scanJavaDir("/usr/lib/jvm");
scanJavaDir("/usr/lib64/jvm"); scanJavaDir("/usr/lib64/jvm");
scanJavaDir("/usr/lib32/jvm"); scanJavaDir("/usr/lib32/jvm");
// javas stored in MultiMC's folder // javas stored in PolyMC's folder
scanJavaDir("java"); scanJavaDir("java");
// manually installed JDKs in /opt // manually installed JDKs in /opt
scanJavaDir("/opt/jdk"); scanJavaDir("/opt/jdk");

View File

@ -212,7 +212,7 @@ shared_qobject_ptr<LogModel> LaunchTask::getLogModel()
m_logModel->setMaxLines(m_instance->getConsoleMaxLines()); m_logModel->setMaxLines(m_instance->getConsoleMaxLines());
m_logModel->setStopOnOverflow(m_instance->shouldStopOnConsoleOverflow()); m_logModel->setStopOnOverflow(m_instance->shouldStopOnConsoleOverflow());
// FIXME: should this really be here? // FIXME: should this really be here?
m_logModel->setOverflowMessage(tr("MultiMC stopped watching the game log because the log length surpassed %1 lines.\n" m_logModel->setOverflowMessage(tr("PolyMC stopped watching the game log because the log length surpassed %1 lines.\n"
"You may have to fix your mods because the game is still logging to files and" "You may have to fix your mods because the game is still logging to files and"
" likely wasting harddrive space at an alarming rate!").arg(m_logModel->getMaxLines())); " likely wasting harddrive space at an alarming rate!").arg(m_logModel->getMaxLines()));
} }
@ -277,4 +277,3 @@ QString LaunchTask::substituteVariables(const QString &cmd) const
} }
return out; return out;
} }

View File

@ -87,14 +87,14 @@ void CheckJava::checkJavaFinished(JavaCheckResult result)
// Error message displayed if java can't start // Error message displayed if java can't start
emit logLine(QString("Could not start java:"), MessageLevel::Error); emit logLine(QString("Could not start java:"), MessageLevel::Error);
emit logLines(result.errorLog.split('\n'), MessageLevel::Error); emit logLines(result.errorLog.split('\n'), MessageLevel::Error);
emit logLine("\nCheck your MultiMC Java settings.", MessageLevel::Launcher); emit logLine("\nCheck your PolyMC Java settings.", MessageLevel::Launcher);
printSystemInfo(false, false); printSystemInfo(false, false);
emitFailed(QString("Could not start java!")); emitFailed(QString("Could not start java!"));
return; return;
} }
case JavaCheckResult::Validity::ReturnedInvalidData: case JavaCheckResult::Validity::ReturnedInvalidData:
{ {
emit logLine(QString("Java checker returned some invalid data MultiMC doesn't understand:"), MessageLevel::Error); emit logLine(QString("Java checker returned some invalid data PolyMC doesn't understand:"), MessageLevel::Error);
emit logLines(result.outLog.split('\n'), MessageLevel::Warning); emit logLines(result.outLog.split('\n'), MessageLevel::Warning);
emit logLine("\nMinecraft might not start properly.", MessageLevel::Launcher); emit logLine("\nMinecraft might not start properly.", MessageLevel::Launcher);
printSystemInfo(false, false); printSystemInfo(false, false);

View File

@ -156,7 +156,7 @@ public: /* methods */
QStringList & failedLocalFiles, const QString & overridePath) const; QStringList & failedLocalFiles, const QString & overridePath) const;
private: /* methods */ private: /* methods */
/// the default storage prefix used by MultiMC /// the default storage prefix used by PolyMC
static QString defaultStoragePrefix(); static QString defaultStoragePrefix();
/// Get the prefix - root of the storage to be used /// Get the prefix - root of the storage to be used
@ -177,23 +177,23 @@ protected: /* data */
/// DEPRECATED URL prefix of the maven repo where the file can be downloaded /// DEPRECATED URL prefix of the maven repo where the file can be downloaded
QString m_repositoryURL; QString m_repositoryURL;
/// DEPRECATED: MultiMC-specific absolute URL. takes precedence over the implicit maven repo URL, if defined /// DEPRECATED: PolyMC-specific absolute URL. takes precedence over the implicit maven repo URL, if defined
QString m_absoluteURL; QString m_absoluteURL;
/// MultiMC extension - filename override /// PolyMC extension - filename override
QString m_filename; QString m_filename;
/// DEPRECATED MultiMC extension - display name /// DEPRECATED PolyMC extension - display name
QString m_displayname; QString m_displayname;
/** /**
* MultiMC-specific type hint - modifies how the library is treated * PolyMC-specific type hint - modifies how the library is treated
*/ */
QString m_hint; QString m_hint;
/** /**
* storage - by default the local libraries folder in multimc, but could be elsewhere * storage - by default the local libraries folder in polymc, but could be elsewhere
* MultiMC specific, because of FTB. * PolyMC specific, because of FTB.
*/ */
QString m_storagePrefix; QString m_storagePrefix;
@ -215,3 +215,4 @@ protected: /* data */
/// MOJANG: container with Mojang style download info /// MOJANG: container with Mojang style download info
MojangLibraryDownloadInfo::Ptr m_mojangDownloads; MojangLibraryDownloadInfo::Ptr m_mojangDownloads;
}; };

View File

@ -445,7 +445,7 @@ QStringList MinecraftInstance::processMinecraftArgs(
} }
// blatant self-promotion. // blatant self-promotion.
token_mapping["profile_name"] = token_mapping["version_name"] = "MultiMC5"; token_mapping["profile_name"] = token_mapping["version_name"] = "PolyMC";
token_mapping["version_type"] = profile->getMinecraftVersionType(); token_mapping["version_type"] = profile->getMinecraftVersionType();

View File

@ -27,19 +27,19 @@ public: /* methods */
void applyTo(LaunchProfile* profile); void applyTo(LaunchProfile* profile);
public: /* data */ public: /* data */
/// MultiMC: order hint for this version file if no explicit order is set /// PolyMC: order hint for this version file if no explicit order is set
int order = 0; int order = 0;
/// MultiMC: human readable name of this package /// PolyMC: human readable name of this package
QString name; QString name;
/// MultiMC: package ID of this package /// PolyMC: package ID of this package
QString uid; QString uid;
/// MultiMC: version of this package /// PolyMC: version of this package
QString version; QString version;
/// MultiMC: DEPRECATED dependency on a Minecraft version /// PolyMC: DEPRECATED dependency on a Minecraft version
QString dependsOnMinecraftVersion; QString dependsOnMinecraftVersion;
/// Mojang: DEPRECATED used to version the Mojang version format /// Mojang: DEPRECATED used to version the Mojang version format
@ -51,7 +51,7 @@ public: /* data */
/// Mojang: class to launch Minecraft with /// Mojang: class to launch Minecraft with
QString mainClass; QString mainClass;
/// MultiMC: class to launch legacy Minecraft with (embed in a custom window) /// PolyMC: class to launch legacy Minecraft with (embed in a custom window)
QString appletClass; QString appletClass;
/// Mojang: Minecraft launch arguments (may contain placeholders for variable substitution) /// Mojang: Minecraft launch arguments (may contain placeholders for variable substitution)
@ -69,35 +69,35 @@ public: /* data */
/// Mojang: DEPRECATED asset group to be used with Minecraft /// Mojang: DEPRECATED asset group to be used with Minecraft
QString assets; QString assets;
/// MultiMC: list of tweaker mod arguments for launchwrapper /// PolyMC: list of tweaker mod arguments for launchwrapper
QStringList addTweakers; QStringList addTweakers;
/// Mojang: list of libraries to add to the version /// Mojang: list of libraries to add to the version
QList<LibraryPtr> libraries; QList<LibraryPtr> libraries;
/// MultiMC: list of maven files to put in the libraries folder, but not in classpath /// PolyMC: list of maven files to put in the libraries folder, but not in classpath
QList<LibraryPtr> mavenFiles; QList<LibraryPtr> mavenFiles;
/// The main jar (Minecraft version library, normally) /// The main jar (Minecraft version library, normally)
LibraryPtr mainJar; LibraryPtr mainJar;
/// MultiMC: list of attached traits of this version file - used to enable features /// PolyMC: list of attached traits of this version file - used to enable features
QSet<QString> traits; QSet<QString> traits;
/// MultiMC: list of jar mods added to this version /// PolyMC: list of jar mods added to this version
QList<LibraryPtr> jarMods; QList<LibraryPtr> jarMods;
/// MultiMC: list of mods added to this version /// PolyMC: list of mods added to this version
QList<LibraryPtr> mods; QList<LibraryPtr> mods;
/** /**
* MultiMC: set of packages this depends on * PolyMC: set of packages this depends on
* NOTE: this is shared with the meta format!!! * NOTE: this is shared with the meta format!!!
*/ */
Meta::RequireSet requires; Meta::RequireSet requires;
/** /**
* MultiMC: set of packages this conflicts with * PolyMC: set of packages this conflicts with
* NOTE: this is shared with the meta format!!! * NOTE: this is shared with the meta format!!!
*/ */
Meta::RequireSet conflicts; Meta::RequireSet conflicts;
@ -112,3 +112,4 @@ public:
// Mojang: extended asset index download information // Mojang: extended asset index download information
std::shared_ptr<MojangAssetIndexInfo> mojangAssetIndex; std::shared_ptr<MojangAssetIndexInfo> mojangAssetIndex;
}; };

View File

@ -24,7 +24,7 @@
/*! /*!
* List of available Mojang accounts. * List of available Mojang accounts.
* This should be loaded in the background by MultiMC on startup. * This should be loaded in the background by PolyMC on startup.
*/ */
class AccountList : public QAbstractListModel class AccountList : public QAbstractListModel
{ {
@ -158,3 +158,4 @@ protected:
*/ */
bool m_autosave = false; bool m_autosave = false;
}; };

View File

@ -41,7 +41,7 @@ Q_DECLARE_METATYPE(MinecraftAccountPtr)
* A profile within someone's Mojang account. * A profile within someone's Mojang account.
* *
* Currently, the profile system has not been implemented by Mojang yet, * Currently, the profile system has not been implemented by Mojang yet,
* but we might as well add some things for it in MultiMC right now so * but we might as well add some things for it in PolyMC right now so
* we don't have to rip the code to pieces to add it later. * we don't have to rip the code to pieces to add it later.
*/ */
struct AccountProfile struct AccountProfile
@ -198,3 +198,4 @@ slots:
void authSucceeded(); void authSucceeded();
void authFailed(QString reason); void authFailed(QString reason);
}; };

View File

@ -23,7 +23,7 @@ MinecraftServerTarget MinecraftServerTarget::parse(const QString &fullAddress) {
// The logic below replicates the exact logic minecraft uses for parsing server addresses. // The logic below replicates the exact logic minecraft uses for parsing server addresses.
// While the conversion is not lossless and eats errors, it ensures the same behavior // While the conversion is not lossless and eats errors, it ensures the same behavior
// within Minecraft and MultiMC when entering server addresses. // within Minecraft and PolyMC when entering server addresses.
if (fullAddress.startsWith("[")) if (fullAddress.startsWith("["))
{ {
int bracket = fullAddress.indexOf("]"); int bracket = fullAddress.indexOf("]");

View File

@ -44,7 +44,7 @@ void NotificationChecker::checkForNotifications()
if (!m_notificationsUrl.isValid()) if (!m_notificationsUrl.isValid())
{ {
qCritical() << "Failed to check for notifications. No notifications URL set." qCritical() << "Failed to check for notifications. No notifications URL set."
<< "If you'd like to use MultiMC's notification system, please pass the " << "If you'd like to use PolyMC's notification system, please pass the "
"URL to CMake at compile time."; "URL to CMake at compile time.";
return; return;
} }

View File

@ -33,7 +33,7 @@ public:
* Construct a Setting * Construct a Setting
* *
* Synonyms are all the possible names used in the settings object, in order of preference. * Synonyms are all the possible names used in the settings object, in order of preference.
* First synonym is the ID, which identifies the setting in MultiMC. * First synonym is the ID, which identifies the setting in PolyMC.
* *
* defVal is the default value that will be returned when the settings object * defVal is the default value that will be returned when the settings object
* doesn't have any value for this setting. * doesn't have any value for this setting.
@ -115,3 +115,4 @@ protected:
QStringList m_synonyms; QStringList m_synonyms;
QVariant m_defVal; QVariant m_defVal;
}; };

View File

@ -80,7 +80,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string notr="true">MultiMC 5</string> <string notr="true">PolyMC</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>

View File

@ -38,12 +38,12 @@ void UpdateDialog::loadChangelog()
QString url; QString url;
if(channel == "stable") if(channel == "stable")
{ {
url = QString("https://raw.githubusercontent.com/MultiMC/Launcher/%1/changelog.md").arg(channel); url = QString("https://raw.githubusercontent.com/PolyMC/PolyMC/%1/changelog.md").arg(channel);
m_changelogType = CHANGELOG_MARKDOWN; m_changelogType = CHANGELOG_MARKDOWN;
} }
else else
{ {
url = QString("https://api.github.com/repos/MultiMC/Launcher/compare/%1...%2").arg(BuildConfig.GIT_COMMIT, channel); url = QString("https://api.github.com/repos/PolyMC/PolyMC/compare/%1...%2").arg(BuildConfig.GIT_COMMIT, channel);
m_changelogType = CHANGELOG_COMMITS; m_changelogType = CHANGELOG_COMMITS;
} }
dljob->addNetAction(Net::Download::makeByteArray(QUrl(url), &changelogData)); dljob->addNetAction(Net::Download::makeByteArray(QUrl(url), &changelogData));
@ -58,7 +58,7 @@ QString reprocessMarkdown(QByteArray markdown)
QString output = hoedown.process(markdown); QString output = hoedown.process(markdown);
// HACK: easier than customizing hoedown // HACK: easier than customizing hoedown
output.replace(QRegExp("GH-([0-9]+)"), "<a href=\"https://github.com/MultiMC/Launcher/issues/\\1\">GH-\\1</a>"); output.replace(QRegExp("GH-([0-9]+)"), "<a href=\"https://github.com/PolyMC/PolyMC/issues/\\1\">GH-\\1</a>");
qDebug() << output; qDebug() << output;
return output; return output;
} }
@ -100,7 +100,7 @@ QString reprocessCommits(QByteArray json)
result += "<tr><td>"; result += "<tr><td>";
if(issuenr.length()) if(issuenr.length())
{ {
result += QString("<a href=\"https://github.com/MultiMC/Launcher/issues/%1\">GH-%2</a>").arg(issuenr, issuenr); result += QString("<a href=\"https://github.com/PolyMC/PolyMC/issues/%1\">GH-%2</a>").arg(issuenr, issuenr);
} }
else if(prefix.length()) else if(prefix.length())
{ {

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>MultiMC Update</string> <string>PolyMC Update</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset> <iconset>

View File

@ -132,8 +132,8 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
this, this,
tr("Microsoft Accounts not available"), tr("Microsoft Accounts not available"),
tr( tr(
"Microsoft accounts are only usable on macOS 10.13 or newer, with fully updated MultiMC.\n\n" "Microsoft accounts are only usable on macOS 10.13 or newer, with fully updated PolyMC.\n\n"
"Please update both your operating system and MultiMC." "Please update both your operating system and PolyMC."
), ),
QMessageBox::Warning QMessageBox::Warning
)->exec(); )->exec();

View File

@ -26,7 +26,7 @@
<item> <item>
<widget class="QTextBrowser" name="textBrowser"> <widget class="QTextBrowser" name="textBrowser">
<property name="html"> <property name="html">
<string>&lt;html&gt;&lt;body&gt;&lt;h1&gt;Upgrade is required&lt;/h1&gt;&lt;p&gt;MultiMC now supports old Minecraft versions and all the required features in the new (OneSix) instance format. As a consequence, the old (Legacy) format has been entirely disabled and old instances need to be upgraded.&lt;/p&gt;&lt;p&gt;The upgrade will create a new instance with the same contents as the current one, in the new format. The original instance will remain untouched, in case anything goes wrong in the process.&lt;/p&gt;&lt;p&gt;Please report any issues on our &lt;a href=&quot;https://github.com/MultiMC/Launcher/issues&quot;&gt;github issues page&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;There is also a &lt;a href=&quot;https://discord.gg/GtPmv93&quot;&gt;discord channel for testing here&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;body&gt;&lt;h1&gt;Upgrade is required&lt;/h1&gt;&lt;p&gt;PolyMC now supports old Minecraft versions and all the required features in the new (OneSix) instance format. As a consequence, the old (Legacy) format has been entirely disabled and old instances need to be upgraded.&lt;/p&gt;&lt;p&gt;The upgrade will create a new instance with the same contents as the current one, in the new format. The original instance will remain untouched, in case anything goes wrong in the process.&lt;/p&gt;&lt;p&gt;Please report any issues on our &lt;a href=&quot;https://github.com/PolyMC/PolyMC/issues&quot;&gt;github issues page&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;There is also a &lt;a href=&quot;https://discord.gg/GtPmv93&quot;&gt;discord channel for testing here&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>

View File

@ -395,7 +395,7 @@ void VersionPage::on_actionDownload_All_triggered()
{ {
CustomMessageBox::selectable( CustomMessageBox::selectable(
this, tr("Error"), this, tr("Error"),
tr("MultiMC cannot download Minecraft or update instances unless you have at least " tr("PolyMC cannot download Minecraft or update instances unless you have at least "
"one account added.\nPlease add your Mojang or Minecraft account."), "one account added.\nPlease add your Mojang or Minecraft account."),
QMessageBox::Warning)->show(); QMessageBox::Warning)->show();
return; return;
@ -635,4 +635,3 @@ void VersionPage::onFilterTextChanged(const QString &newContents)
} }
#include "VersionPage.moc" #include "VersionPage.moc"

View File

@ -207,7 +207,7 @@ void PageContainer::help()
QString pageId = m_currentPage->helpPage(); QString pageId = m_currentPage->helpPage();
if (pageId.isEmpty()) if (pageId.isEmpty())
return; return;
DesktopServices::openUrl(QUrl("https://github.com/MultiMC/Launcher/wiki/" + pageId)); DesktopServices::openUrl(QUrl("https://github.com/PolyMC/PolyMC/wiki/" + pageId));
} }
} }

View File

@ -54,7 +54,7 @@ protected:
/*! /*!
* Downloads the version info files from the repository. * Downloads the version info files from the repository.
* The files for both the current build, and the build that we're updating to need to be downloaded. * The files for both the current build, and the build that we're updating to need to be downloaded.
* If the current version's info file can't be found, MultiMC will not delete files that * If the current version's info file can't be found, PolyMC will not delete files that
* were removed between versions. It will still replace files that have changed, however. * were removed between versions. It will still replace files that have changed, however.
* Note that although the repository URL for the current version is not given to the update task, * Note that although the repository URL for the current version is not given to the update task,
* the task will attempt to look it up in the UpdateChecker's channel list. * the task will attempt to look it up in the UpdateChecker's channel list.
@ -97,3 +97,4 @@ private:
}; };
} }

View File

@ -104,7 +104,7 @@ bool processFileLists
} }
} }
// Next, check each file in MultiMC's folder and see if we need to update them. // Next, check each file in PolyMC's folder and see if we need to update them.
for (VersionFileEntry entry : newVersion) for (VersionFileEntry entry : newVersion)
{ {
// TODO: Let's not MD5sum a ton of files on the GUI thread. We should probably find a // TODO: Let's not MD5sum a ton of files on the GUI thread. We should probably find a

View File

@ -1,4 +1,4 @@
# Katabasis - MS-flavoerd OAuth for Qt, derived from the O2 library # Katabasis - MS-flavored OAuth for Qt, derived from the O2 library
This library's sole purpose is to make interacting with MSA and various MSA and XBox authenticated services less painful. This library's sole purpose is to make interacting with MSA and various MSA and XBox authenticated services less painful.
@ -10,7 +10,7 @@ Notes to contributors:
* Please follow the coding style of the existing source, where reasonable * Please follow the coding style of the existing source, where reasonable
* Code contributions are released under Simplified BSD License, as specified in LICENSE. Do not contribute if this license does not suit your code * Code contributions are released under Simplified BSD License, as specified in LICENSE. Do not contribute if this license does not suit your code
* If you are interested in working on this, come to the MultiMC Discord server and talk first * If you are interested in working on this, come to the PolyMC Discord server and talk first
## Installation ## Installation