From 731375db59f1b962b731bf5bff38bf6a79028f3a Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Sat, 24 Aug 2024 10:51:16 +0000 Subject: [PATCH] fix ico image offset when saving shortcut to windows --- src/Ryujinx.UI.Common/Helper/ShortcutHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ryujinx.UI.Common/Helper/ShortcutHelper.cs b/src/Ryujinx.UI.Common/Helper/ShortcutHelper.cs index ea746df0e1..1849f40cbb 100644 --- a/src/Ryujinx.UI.Common/Helper/ShortcutHelper.cs +++ b/src/Ryujinx.UI.Common/Helper/ShortcutHelper.cs @@ -165,6 +165,8 @@ namespace Ryujinx.UI.Common.Helper fs.Seek(14, SeekOrigin.Begin); fs.WriteByte((byte)dataLength); fs.WriteByte((byte)(dataLength >> 8)); + fs.WriteByte((byte)(dataLength >> 16)); + fs.WriteByte((byte)(dataLength >> 24)); } } }