From 7e727fc77cfedaad235762580e1127c8e8ccabfa Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 22 Jan 2020 05:49:18 +1000 Subject: [PATCH] Move CRC32, remove unused project dependencies --- BizHawk.Client.DBMan/BizHawk.Client.DBMan.csproj | 6 ------ BizHawk.Client.DBMan/RomHasher.cs | 3 ++- .../Database => BizHawk.Common}/CRC32.cs | 4 ++-- BizHawk.Emulation.Common/Database/Database.cs | 3 ++- 4 files changed, 6 insertions(+), 10 deletions(-) rename {BizHawk.Emulation.Common/Database => BizHawk.Common}/CRC32.cs (81%) diff --git a/BizHawk.Client.DBMan/BizHawk.Client.DBMan.csproj b/BizHawk.Client.DBMan/BizHawk.Client.DBMan.csproj index c52b9863bd..7f0623cd6d 100644 --- a/BizHawk.Client.DBMan/BizHawk.Client.DBMan.csproj +++ b/BizHawk.Client.DBMan/BizHawk.Client.DBMan.csproj @@ -49,15 +49,9 @@ - - diff --git a/BizHawk.Client.DBMan/RomHasher.cs b/BizHawk.Client.DBMan/RomHasher.cs index b7a0f29f4a..34f629defb 100644 --- a/BizHawk.Client.DBMan/RomHasher.cs +++ b/BizHawk.Client.DBMan/RomHasher.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using System.IO; using System.Text; -using BizHawk.Emulation.Common; + +using BizHawk.Common; using BizHawk.Emulation.DiscSystem; namespace BizHawk.Client.DBMan diff --git a/BizHawk.Emulation.Common/Database/CRC32.cs b/BizHawk.Common/CRC32.cs similarity index 81% rename from BizHawk.Emulation.Common/Database/CRC32.cs rename to BizHawk.Common/CRC32.cs index c0a72e93ef..564f63fe7b 100644 --- a/BizHawk.Emulation.Common/Database/CRC32.cs +++ b/BizHawk.Common/CRC32.cs @@ -1,8 +1,8 @@ -namespace BizHawk.Emulation.Common +namespace BizHawk.Common { // we could get a little list of crcs from here and make it clear which crc this class was for, and expose others // http://www.ross.net/crc/download/crc_v3.txt - // TODO - why am I here? put me alongside hash_md5 and such in a non-emulation-related class + // TODO - why am I here? put me alongside hash_md5 and such public static class CRC32 { // Lookup table for speed. diff --git a/BizHawk.Emulation.Common/Database/Database.cs b/BizHawk.Emulation.Common/Database/Database.cs index 2b279d054b..b69cf7f84a 100644 --- a/BizHawk.Emulation.Common/Database/Database.cs +++ b/BizHawk.Emulation.Common/Database/Database.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using System.Text; using System.Threading; +using BizHawk.Common; using BizHawk.Common.BufferExtensions; -using System.Linq; namespace BizHawk.Emulation.Common {