blob: e6b0892b812b7a70a4c27711e05c2eae39821d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs
@@ -105,7 +105,7 @@
/// <summary>
/// MD5 representation of the game executable.
/// </summary>
- public string VersionHash { get; private set; }
+ public string VersionHash { get; } = "7eedfd3a3f25ca6c8878cd5f842ace5e";
public bool IsDeployedBuild => AssemblyVersion.Major > 0;
@@ -240,18 +240,6 @@
[BackgroundDependencyLoader]
private void load(ReadableKeyCombinationProvider keyCombinationProvider)
{
- 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();
- }
-
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));
dependencies.Cache(realm = new RealmAccess(Storage, CLIENT_DATABASE_FILENAME, Host.UpdateThread));
|