diff options
| author | Marco Carvalho <marcolucio27@gmail.com> | 2023-09-07 09:10:58 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-07 14:10:58 +0200 |
| commit | 210f4754849bf147a584695c0cced9d14c905f8e (patch) | |
| tree | 345d861652453f7a225f9a9c19cbcd5e8072db17 /src/Ryujinx.Headless.SDL2 | |
| parent | ddb64938968db5aa2a973604cf761f44c99d1c3d (diff) | |
Replacing 'Assembly.GetExecutingAssembly()' with 'Type.Assembly' (#5545)
Diffstat (limited to 'src/Ryujinx.Headless.SDL2')
| -rw-r--r-- | src/Ryujinx.Headless.SDL2/WindowBase.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Ryujinx.Headless.SDL2/WindowBase.cs b/src/Ryujinx.Headless.SDL2/WindowBase.cs index c542a4e6..0b91da5c 100644 --- a/src/Ryujinx.Headless.SDL2/WindowBase.cs +++ b/src/Ryujinx.Headless.SDL2/WindowBase.cs @@ -17,7 +17,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using static SDL2.SDL; @@ -122,7 +121,7 @@ namespace Ryujinx.Headless.SDL2 private void SetWindowIcon() { - Stream iconStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Ryujinx.Headless.SDL2.Ryujinx.bmp"); + Stream iconStream = typeof(WindowBase).Assembly.GetManifestResourceStream("Ryujinx.Headless.SDL2.Ryujinx.bmp"); byte[] iconBytes = new byte[iconStream!.Length]; if (iconStream.Read(iconBytes, 0, iconBytes.Length) != iconBytes.Length) |
