diff options
author | Berkan Diler <b.diler@gmx.de> | 2023-02-08 14:54:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 14:54:58 +0100 |
commit | 99fc4fa61b0eb4c02eacdf7428ae14721349dece (patch) | |
tree | 10c742080447e71780f936a8ae240484938938a3 /Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs | |
parent | f6d5499a16a45347c08d444d76b1355c74194301 (diff) |
Replace BitConverter.ToString(bytes).Replace("-", "") with Convert.ToHexString(bytes) (#4382)1.1.608
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs b/Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs index 522de8e0..6320fe28 100644 --- a/Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs +++ b/Ryujinx.HLE/HOS/Services/Caps/CaptureManager.cs @@ -101,7 +101,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps }; // NOTE: The hex hash is a HMAC-SHA256 (first 32 bytes) using a hardcoded secret key over the titleId, we can simulate it by hashing the titleId instead. - string hash = BitConverter.ToString(SHA256.HashData(BitConverter.GetBytes(titleId))).Replace("-", "").Remove(0x20); + string hash = Convert.ToHexString(SHA256.HashData(BitConverter.GetBytes(titleId))).Remove(0x20); string folderPath = Path.Combine(_sdCardPath, "Nintendo", "Album", currentDateTime.Year.ToString("00"), currentDateTime.Month.ToString("00"), currentDateTime.Day.ToString("00")); string filePath = GenerateFilePath(folderPath, applicationAlbumEntry, currentDateTime, hash); |