packages: add osu-lazer

This commit is contained in:
LavaDesu 2021-09-28 22:53:18 +07:00
parent e2afaaaac2
commit 3a5aa3c79e
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 413 additions and 0 deletions

View file

@ -0,0 +1,23 @@
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 = "2ae66d0de842862d3080dece3bf2130c";
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));