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.
This commit is contained in:
Ac_K 2019-11-23 03:15:15 +01:00 committed by jduncanator
parent cfcc360d06
commit bb74aeae54
4 changed files with 8 additions and 36 deletions

View file

@ -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);