flakes/overlays/patches/bypass-tamper-detection.patch

23 lines
937 B
Diff

diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
index e88acdd7dd9..80f35a4842e 100644
--- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs
@@ -176,17 +176,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 = "80aef85b0c8837bb33045eba02886c29";
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));