Merge pull request #132740 from oxalica/osu-lazer-remove-temper-detection-patch
osu-lazer: remove temper detection bypass patch
This commit is contained in:
commit
3a27e7859e
|
@ -1,23 +0,0 @@
|
||||||
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 = "253aa3a3a356a71295bf5b018cd4fda1";
|
|
||||||
|
|
||||||
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));
|
|
||||||
|
|
|
@ -25,9 +25,6 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "I7UkbyH2i218d5RCq4al9Gr1C0MX339jFOeyKrKQ3b0=";
|
sha256 = "I7UkbyH2i218d5RCq4al9Gr1C0MX339jFOeyKrKQ3b0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./bypass-tamper-detection.patch ];
|
|
||||||
patchFlags = [ "--binary" "-p1" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
dotnet-sdk dotnetPackages.Nuget makeWrapper
|
dotnet-sdk dotnetPackages.Nuget makeWrapper
|
||||||
# FIXME: Without `cacert`, we will suffer from https://github.com/NuGet/Announcements/issues/49
|
# FIXME: Without `cacert`, we will suffer from https://github.com/NuGet/Announcements/issues/49
|
||||||
|
|
Loading…
Reference in a new issue