Skip to content

Commit

Permalink
UltimMC: Misc improvements all over the place
Browse files Browse the repository at this point in the history
  • Loading branch information
Neptune650 committed Mar 6, 2024
1 parent c57d58f commit bd4dcdb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
9 changes: 0 additions & 9 deletions buildconfig/BuildConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ class Config
QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";


QString AUTH_BASE_MOJANG = "https://authserver.mojang.com/";
QString AUTH_BASE_ELYBY = "https://authserver.ely.by/auth/";

QString SKINS_BASE_MOJANG = "https://crafatar.com/skins/";
QString SKINS_BASE_ELYBY = "http://skinsystem.ely.by/skins/";

QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";

QString LEGACY_FTB_CDN_BASE_URL = "https://dist.creeper.host/FTB2/";

QString ATL_DOWNLOAD_SERVER_URL = "https://download.nodecdn.net/containers/atl/";
Expand Down
2 changes: 1 addition & 1 deletion launcher/AuthServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void processRequest(Request *request, Response *response)
qDebug() << "Processing request";
if (request->url == "/")
{
response->body = "{\"Status\":\"OK\",\"Runtime-Mode\":\"productionMode\",\"Application-Author\":\"Mojang Web Force\",\"Application-Description\":\"Mojang Public API.\",\"Specification-Version\":\"3.58.0\",\"Application-Name\":\"yggdrasil.accounts.restlet.server.public\",\"Implementation-Version\":\"3.58.0_build194\",\"Application-Owner\":\"Mojang\"}";
response->body = "{\"Status\":\"OK\",\"Runtime-Mode\":\"productionMode\",\"Application-Author\":\"Mojang Web Force\",\"Application-Description\":\"Mojang Public API.\",\"Specification-Version\":\"6.0.0\",\"Application-Name\":\"yggdrasil.accounts.restlet.server.public\",\"Implementation-Version\":\"6.0.0\",\"Application-Owner\":\"Mojang\"}";
response->statusCode = 200;
response->headers["Content-Type"] = "application/json; charset=utf-8";
return;
Expand Down
5 changes: 0 additions & 5 deletions launcher/minecraft/auth/Yggdrasil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ void Yggdrasil::processResponse(QJsonObject responseData) {
m_data->yggdrasilToken.validity = Katabasis::Validity::Certain;
m_data->yggdrasilToken.issueInstant = QDateTime::currentDateTimeUtc();


if(responseData.contains("selectedProfile")) {
//m_data->minecraftProfile = responseData.value("selectedProfile").toObject();
}

// We've made it through the minefield of possible errors. Return true to indicate that
// we've succeeded.
qDebug() << "Finished reading authentication response.";
Expand Down
2 changes: 1 addition & 1 deletion launcher/ui/dialogs/LocalLoginDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>421</width>
<height>198</height>
<height>100</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down
9 changes: 7 additions & 2 deletions launcher/ui/pages/global/AccountListPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,13 @@ void AccountListPage::updateButtonStates()
}
ui->actionRemove->setEnabled(accountIsReady);
ui->actionSetDefault->setEnabled(accountIsReady);
ui->actionUploadSkin->setEnabled(accountIsReady);
ui->actionDeleteSkin->setEnabled(accountIsReady);
// Don't enable skin change buttons for dummy and ely.by accounts, they don't work.
if (hasSelection) {
if (account->provider()->id() != "dummy" && account->provider()->id() != "elyby") {
ui->actionUploadSkin->setEnabled(accountIsReady);
ui->actionDeleteSkin->setEnabled(accountIsReady);
}
}
ui->actionRefresh->setEnabled(accountIsReady);

if(m_accounts->defaultAccount().get() == nullptr) {
Expand Down

0 comments on commit bd4dcdb

Please sign in to comment.