overlays: add cracked support for prismlauncher

This commit is contained in:
Gabriel Fontes
2023-02-26 18:00:29 -03:00
parent 62d79bc22f
commit ac1d7bbcaf
2 changed files with 23 additions and 0 deletions
+4
View File
@@ -75,5 +75,9 @@
sha256 = "sha256-95mRJ3ZCSkLHqehFQdwM2BY0h+YDhohwpnRiF6/lZtA=";
};
});
prismlauncher = prev.prismlauncher.overrideAttrs (oa: {
patches = (oa.patches or [ ]) ++ [ ./offline-mode-prism-launcher.diff ];
});
};
}
+19
View File
@@ -0,0 +1,19 @@
diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp
index 9e2fd11..3965913 100644
--- a/launcher/minecraft/auth/AccountList.cpp
+++ b/launcher/minecraft/auth/AccountList.cpp
@@ -657,13 +657,7 @@ void AccountList::setListFilePath(QString path, bool autosave)
bool AccountList::anyAccountIsValid()
{
- for(auto account: m_accounts)
- {
- if(account->ownsMinecraft()) {
- return true;
- }
- }
- return false;
+ return true;
}
void AccountList::fillQueue() {