feat(prism-launcher): add *crack* patch
This commit is contained in:
parent
c5c43e9fc5
commit
448f5723e5
2 changed files with 25 additions and 0 deletions
|
@ -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
|
||||||
|
];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
19
overlays/offline-mode-prism-launcher.diff
Normal file
19
overlays/offline-mode-prism-launcher.diff
Normal 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() {
|
Loading…
Reference in a new issue