feat(prism-launcher): add *crack* patch

This commit is contained in:
reo101 2023-04-17 14:13:13 +03:00
parent c5c43e9fc5
commit 448f5723e5
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
2 changed files with 25 additions and 0 deletions

View file

@ -25,5 +25,11 @@
# install -v "${openasar}" "$out/opt/Discord/resources/app.asar" # install -v "${openasar}" "$out/opt/Discord/resources/app.asar"
# ''; # '';
# }); # });
prismlauncher = prev.prismlauncher.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [
./offline-mode-prism-launcher.diff
];
});
}; };
} }

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() {