From b105d6d7415956e68ab3c2679e445c2899393ed5 Mon Sep 17 00:00:00 2001 From: Vlad K Date: Tue, 27 Jun 2017 02:10:00 +0300 Subject: [PATCH] Insert icon into osu exe --- osu.Desktop/OsuGameDesktop.cs | 3 ++- osu.Desktop/osu.Desktop.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Desktop/OsuGameDesktop.cs b/osu.Desktop/OsuGameDesktop.cs index 299f64d998..536fe40c6a 100644 --- a/osu.Desktop/OsuGameDesktop.cs +++ b/osu.Desktop/OsuGameDesktop.cs @@ -12,6 +12,7 @@ using System.IO; using System.Threading.Tasks; using osu.Game.Screens.Menu; +using System.Resources; namespace osu.Desktop { @@ -45,7 +46,7 @@ public override void SetHost(GameHost host) { desktopWindow.CursorState |= CursorState.Hidden; - desktopWindow.Icon = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location); + desktopWindow.Icon = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream(this.GetType(), "lazer.ico")); desktopWindow.Title = Name; desktopWindow.DragEnter += dragEnter; diff --git a/osu.Desktop/osu.Desktop.csproj b/osu.Desktop/osu.Desktop.csproj index 5ac888b515..e69603602c 100644 --- a/osu.Desktop/osu.Desktop.csproj +++ b/osu.Desktop/osu.Desktop.csproj @@ -232,7 +232,7 @@ - +