cracking prismlauncher for good reasons (i have bought minecraft)
This commit is contained in:
parent
f616309723
commit
fb81db6c50
|
@ -84,6 +84,7 @@ in {
|
|||
# tildefriends
|
||||
|
||||
osu-lazer-bin
|
||||
prismlauncher
|
||||
# inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
|
||||
# inputs.nix-software-center.packages.${system}.nix-software-center
|
||||
];
|
||||
|
|
|
@ -10,6 +10,14 @@
|
|||
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
||||
# ...
|
||||
# });
|
||||
|
||||
prismlauncher = prev.prismlauncher.overrideAttrs (old: {
|
||||
patches =
|
||||
(old.patches or [])
|
||||
++ [
|
||||
./prismlauncher.patch
|
||||
];
|
||||
});
|
||||
};
|
||||
|
||||
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
|
||||
|
|
25
overlays/prismlauncher.patch
Normal file
25
overlays/prismlauncher.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp
|
||||
index abd8fa2..0ee24dc 100644
|
||||
--- a/launcher/ui/pages/global/AccountListPage.cpp
|
||||
+++ b/launcher/ui/pages/global/AccountListPage.cpp
|
||||
@@ -147,13 +147,13 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
|
||||
|
||||
void AccountListPage::on_actionAddOffline_triggered()
|
||||
{
|
||||
- if (!m_accounts->anyAccountIsValid()) {
|
||||
- QMessageBox::warning(this, tr("Error"),
|
||||
- tr("You must add a Microsoft account that owns Minecraft before you can add an offline account."
|
||||
- "<br><br>"
|
||||
- "If you have lost your account you can contact Microsoft for support."));
|
||||
- return;
|
||||
- }
|
||||
+ // if (!m_accounts->anyAccountIsValid()) {
|
||||
+ // QMessageBox::warning(this, tr("Error"),
|
||||
+ // tr("You must add a Microsoft account that owns Minecraft before you can add an offline account."
|
||||
+ // "<br><br>"
|
||||
+ // "If you have lost your account you can contact Microsoft for support."));
|
||||
+ // return;
|
||||
+ // }
|
||||
|
||||
MinecraftAccountPtr account =
|
||||
OfflineLoginDialog::newAccount(this, tr("Please enter your desired username to add your offline account."));
|
Loading…
Reference in a new issue