Source hash from osu.Game.dll rather than executable

This commit is contained in:
Dean Herbert 2020-07-30 15:32:08 +09:00
parent 9e6d562872
commit 1dfd2112c6

View File

@ -134,13 +134,8 @@ namespace osu.Game
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
var assembly = Assembly.GetEntryAssembly(); using (var str = File.OpenRead(typeof(OsuGameBase).Assembly.Location))
if (assembly != null)
{
using (var str = File.OpenRead(assembly.Location))
VersionHash = str.ComputeMD5Hash(); VersionHash = str.ComputeMD5Hash();
}
Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly)); Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));