From 6dc63de2f054d66158e62204f271af4e100628d9 Mon Sep 17 00:00:00 2001 From: LotP1 Date: Tue, 10 Dec 2024 22:42:39 +0100 Subject: [PATCH] Fix incorrect hash logic The stream hadn't been reset causing all hashes to be the same in most cases --- src/Ryujinx.HLE/HOS/ModLoader.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ryujinx.HLE/HOS/ModLoader.cs b/src/Ryujinx.HLE/HOS/ModLoader.cs index c866fb063..0a00b8c9b 100644 --- a/src/Ryujinx.HLE/HOS/ModLoader.cs +++ b/src/Ryujinx.HLE/HOS/ModLoader.cs @@ -642,6 +642,7 @@ namespace Ryujinx.HLE.HOS Logger.Info?.Print(LogClass.ModLoader, $"NSO '{nsoName}' replaced"); using (MD5 md5 = MD5.Create()) { + stream.Seek(0, SeekOrigin.Begin); tempHash += BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "").ToLowerInvariant(); } }