mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Source hash from osu.Game.dll rather than executable
This commit is contained in:
parent
9e6d562872
commit
1dfd2112c6
@ -134,13 +134,8 @@ namespace osu.Game
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
var assembly = Assembly.GetEntryAssembly();
|
||||
|
||||
if (assembly != null)
|
||||
{
|
||||
using (var str = File.OpenRead(assembly.Location))
|
||||
VersionHash = str.ComputeMD5Hash();
|
||||
}
|
||||
using (var str = File.OpenRead(typeof(OsuGameBase).Assembly.Location))
|
||||
VersionHash = str.ComputeMD5Hash();
|
||||
|
||||
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user