Add fjordlauncher

This commit is contained in:
Daniel Lovbrotte Olsen 2025-01-28 21:11:56 +01:00
parent 1f8014e99d
commit a5f696d8e0
3 changed files with 38 additions and 1 deletions

View File

@ -1,8 +1,11 @@
final: prev:
let
table = final.callPackage ./table.nix { };
in {
in rec {
requireFile = { ... }@args: let
hash = args.hash or args.sha256 or args.sha1;
in table.${hash} or (prev.requireFile args);
fjordlauncher-unwrapped = import ./pkgs/fjordlauncher/unwrapped.nix final prev;
fjordlauncher = final.prismlauncher.override { prismlauncher-unwrapped = fjordlauncher-unwrapped; };
}

View File

@ -0,0 +1,19 @@
diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp
index 384af07fe..c3f3601df 100644
--- a/launcher/ui/pages/global/AccountListPage.cpp
+++ b/launcher/ui/pages/global/AccountListPage.cpp
@@ -135,12 +135,11 @@ void AccountListPage::listChanged()
void AccountListPage::on_actionAddAuthlibInjector_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 account on a custom "
+ QMessageBox::warning(this, tr("Warning"),
+ tr("You should have a license for minecraft before adding an account on a custom "
"authentication server."
"<br><br>"
"If you have lost your account you can contact Microsoft for support."));
- return;
}
MinecraftAccountPtr account = AuthlibInjectorLoginDialog::newAccount(

View File

@ -0,0 +1,15 @@
final: prev:
final.prismlauncher-unwrapped.overrideAttrs (oldAttrs: rec {
pname = "fjordlauncher-unwrapped";
version = "9.2.1";
src = final.fetchFromGitHub {
owner = "unmojang";
repo = "FjordLauncher";
tag = version;
hash = "sha256-4imIXuVrrihoJVVAmEt7ZBhgqdDzzXsSo6zaMy0xV9o=";
};
patches = [ ./01-authlib-enforcement.patch ];
})