diff --git a/hosts/yaseen/configuration.nix b/hosts/yaseen/configuration.nix
index 7bf2858..9017ed2 100644
--- a/hosts/yaseen/configuration.nix
+++ b/hosts/yaseen/configuration.nix
@@ -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
];
diff --git a/overlays/default.nix b/overlays/default.nix
index a13ea3c..e6b56ef 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -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
diff --git a/overlays/prismlauncher.patch b/overlays/prismlauncher.patch
new file mode 100644
index 0000000..aa52668
--- /dev/null
+++ b/overlays/prismlauncher.patch
@@ -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."
+- "
"
+- "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."
++ // "
"
++ // "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."));