aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Font/SharedFontManager.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2019-11-23 03:15:15 +0100
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-11-23 13:15:15 +1100
commitbb74aeae54e4579008ac23216b8b175d64c9f10f (patch)
tree0f773f5f84c05c663f4a81eb7fd26a2f54384845 /Ryujinx.HLE/HOS/Font/SharedFontManager.cs
parentcfcc360d0610c66e9b9986f7aab96f79df0da79e (diff)
Use BinaryPrimitives.ReverseEndianness instead EndianSwap class (#832)
This PR remove the `EndianSwap` class who isn't needed anymore since .NET Core 3.0 got a buildin method `BinaryPrimitives.ReverseEndianness` who did the same thing.
Diffstat (limited to 'Ryujinx.HLE/HOS/Font/SharedFontManager.cs')
-rw-r--r--Ryujinx.HLE/HOS/Font/SharedFontManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Font/SharedFontManager.cs b/Ryujinx.HLE/HOS/Font/SharedFontManager.cs
index 40a81b86..99b662c0 100644
--- a/Ryujinx.HLE/HOS/Font/SharedFontManager.cs
+++ b/Ryujinx.HLE/HOS/Font/SharedFontManager.cs
@@ -5,6 +5,7 @@ using Ryujinx.Common;
using Ryujinx.HLE.Exceptions;
using Ryujinx.HLE.FileSystem;
using Ryujinx.HLE.FileSystem.Content;
+using System.Buffers.Binary;
using System.Collections.Generic;
using System.IO;
@@ -142,7 +143,7 @@ namespace Ryujinx.HLE.HOS.Font
const int decMagic = 0x18029a7f;
const int key = 0x49621806;
- int encryptedSize = EndianSwap.Swap32(size ^ key);
+ int encryptedSize = BinaryPrimitives.ReverseEndianness(size ^ key);
_device.Memory.WriteInt32(position + 0, decMagic);
_device.Memory.WriteInt32(position + 4, encryptedSize);