add osu-lazer with patch
This commit is contained in:
parent
7b1ee73f2a
commit
543f0bc823
3 changed files with 29 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
maim
|
||||
mongodb-compass
|
||||
obs-studio
|
||||
osu-lazer
|
||||
pavucontrol
|
||||
screenkey
|
||||
tor-browser-bundle-bin
|
||||
|
|
|
|||
5
overlays/osu-lazer.nix
Normal file
5
overlays/osu-lazer.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
self: super: {
|
||||
osu-lazer = super.osu-lazer.overrideAttrs(o: {
|
||||
patches = [ ./patches/bypass-tamper-detection.patch ];
|
||||
});
|
||||
}
|
||||
23
overlays/patches/bypass-tamper-detection.patch
Normal file
23
overlays/patches/bypass-tamper-detection.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
|
||||
index 98f60d52d..a27ce47ca 100644
|
||||
--- a/osu.Game/OsuGameBase.cs
|
||||
+++ b/osu.Game/OsuGameBase.cs
|
||||
@@ -135,17 +135,7 @@ public OsuGameBase()
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
- try
|
||||
- {
|
||||
- using (var str = File.OpenRead(typeof(OsuGameBase).Assembly.Location))
|
||||
- VersionHash = str.ComputeMD5Hash();
|
||||
- }
|
||||
- catch
|
||||
- {
|
||||
- // special case for android builds, which can't read DLLs from a packed apk.
|
||||
- // should eventually be handled in a better way.
|
||||
- VersionHash = $"{Version}-{RuntimeInfo.OS}".ComputeMD5Hash();
|
||||
- }
|
||||
+ VersionHash = "ba03e192b1c8d470ee69b6e2c5d56c10";
|
||||
|
||||
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue