mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] Update namespace
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Help;
|
using SabreTools.Library.Help;
|
||||||
|
|
||||||
namespace RombaSharp
|
namespace RombaSharp
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ using System.Linq;
|
|||||||
using System.Xml;
|
using System.Xml;
|
||||||
using Mono.Data.Sqlite;
|
using Mono.Data.Sqlite;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Mono.Data.Sqlite;
|
using Mono.Data.Sqlite;
|
||||||
|
|
||||||
using SabreTools.Helper;
|
using SabreTools.Library;
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper;
|
using SabreTools.Library;
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Help;
|
using SabreTools.Library.Help;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
namespace RombaSharp
|
namespace RombaSharp
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Data
|
namespace SabreTools.Library.Data
|
||||||
{
|
{
|
||||||
public static class Build
|
public static class Build
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Data
|
namespace SabreTools.Library.Data
|
||||||
{
|
{
|
||||||
public static class Constants
|
public static class Constants
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace SabreTools.Helper.Data
|
namespace SabreTools.Library.Data
|
||||||
{
|
{
|
||||||
#region Archival
|
#region Archival
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Data
|
namespace SabreTools.Library.Data
|
||||||
{
|
{
|
||||||
#region Archival
|
#region Archival
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ using System.IO;
|
|||||||
using Alphaleonis.Win32.Filesystem;
|
using Alphaleonis.Win32.Filesystem;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Data
|
namespace SabreTools.Library.Data
|
||||||
{
|
{
|
||||||
public class Globals
|
public class Globals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Archive : DatItem, ICloneable
|
public class Archive : DatItem, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class BiosSet : DatItem, ICloneable
|
public class BiosSet : DatItem, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -12,7 +12,7 @@ using Alphaleonis.Win32.Filesystem;
|
|||||||
#endif
|
#endif
|
||||||
using NaturalSort;
|
using NaturalSort;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public abstract class DatItem : IEquatable<DatItem>, IComparable<DatItem>
|
public abstract class DatItem : IEquatable<DatItem>, IComparable<DatItem>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Disk : DatItem, ICloneable
|
public class Disk : DatItem, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Filter
|
public class Filter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Machine : ICloneable
|
public class Machine : ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -15,7 +15,7 @@ using SearchOption = System.IO.SearchOption;
|
|||||||
#endif
|
#endif
|
||||||
using NaturalSort;
|
using NaturalSort;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -16,7 +16,7 @@ using SearchOption = System.IO.SearchOption;
|
|||||||
#endif
|
#endif
|
||||||
using SharpCompress.Common;
|
using SharpCompress.Common;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -12,7 +12,7 @@ using System.IO;
|
|||||||
using Alphaleonis.Win32.Filesystem;
|
using Alphaleonis.Win32.Filesystem;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ using System.Text.RegularExpressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -17,7 +17,7 @@ using Alphaleonis.Win32.Filesystem;
|
|||||||
using StreamReader = System.IO.StreamReader;
|
using StreamReader = System.IO.StreamReader;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Skippers;
|
using SabreTools.Library.Skippers;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -18,7 +18,7 @@ using SearchOption = System.IO.SearchOption;
|
|||||||
using Stream = System.IO.Stream;
|
using Stream = System.IO.Stream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.Linq;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -14,7 +14,7 @@ using Alphaleonis.Win32.Filesystem;
|
|||||||
#endif
|
#endif
|
||||||
using NaturalSort;
|
using NaturalSort;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.Linq;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -16,7 +16,7 @@ using SearchOption = System.IO.SearchOption;
|
|||||||
using StreamWriter = System.IO.StreamWriter;
|
using StreamWriter = System.IO.StreamWriter;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* TODO: Make output standard width (HTML, without making the entire thing a table)
|
* TODO: Make output standard width (HTML, without making the entire thing a table)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -19,7 +19,7 @@ using StreamWriter = System.IO.StreamWriter;
|
|||||||
#endif
|
#endif
|
||||||
using NaturalSort;
|
using NaturalSort;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public partial class DatFile
|
public partial class DatFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Release : DatItem, ICloneable
|
public class Release : DatItem, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Rom : Disk, ICloneable
|
public class Rom : Disk, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Dats
|
namespace SabreTools.Library.Dats
|
||||||
{
|
{
|
||||||
public class Sample : DatItem, ICloneable
|
public class Sample : DatItem, ICloneable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// http://www.rarlab.com/technote.htm#srvheaders
|
/// http://www.rarlab.com/technote.htm#srvheaders
|
||||||
/// </summary>
|
/// </summary>
|
||||||
namespace SabreTools.Helper.Tools
|
namespace SabreTools.Library.Tools
|
||||||
{
|
{
|
||||||
public class CoreRarArchive
|
public class CoreRarArchive
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
namespace NaturalSort
|
namespace NaturalSort
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
namespace NaturalSort
|
namespace NaturalSort
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.IO;
|
|||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
using Ionic.Zlib;
|
using Ionic.Zlib;
|
||||||
using OCRC;
|
using OCRC;
|
||||||
|
|||||||
4
SabreTools.Library/External/Traverse.cs
vendored
4
SabreTools.Library/External/Traverse.cs
vendored
@@ -10,9 +10,9 @@ using Alphaleonis.Win32.Filesystem;
|
|||||||
using IOException = System.IO.IOException;
|
using IOException = System.IO.IOException;
|
||||||
using SearchOption = System.IO.SearchOption;
|
using SearchOption = System.IO.SearchOption;
|
||||||
#endif
|
#endif
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.External
|
namespace SabreTools.Library.External
|
||||||
{
|
{
|
||||||
public class Traverse
|
public class Traverse
|
||||||
{
|
{
|
||||||
|
|||||||
2
SabreTools.Library/External/xxHash/xxHash.cs
vendored
2
SabreTools.Library/External/xxHash/xxHash.cs
vendored
@@ -34,7 +34,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace SabreTools.Helper.External
|
namespace SabreTools.Library.External
|
||||||
{
|
{
|
||||||
class xxHash
|
class xxHash
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Help
|
namespace SabreTools.Library.Help
|
||||||
{
|
{
|
||||||
public class Feature
|
public class Feature
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Help
|
namespace SabreTools.Library.Help
|
||||||
{
|
{
|
||||||
public class Help
|
public class Help
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -13,7 +13,7 @@ using FileStream = System.IO.FileStream;
|
|||||||
using StreamWriter = System.IO.StreamWriter;
|
using StreamWriter = System.IO.StreamWriter;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper
|
namespace SabreTools.Library
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Log either to file or to the console
|
/// Log either to file or to the console
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using System.Collections.Generic;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -17,7 +17,7 @@ using SeekOrigin = System.IO.SeekOrigin;
|
|||||||
using Stream = System.IO.Stream;
|
using Stream = System.IO.Stream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Skippers
|
namespace SabreTools.Library.Skippers
|
||||||
{
|
{
|
||||||
public class Skipper
|
public class Skipper
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -15,7 +15,7 @@ using SeekOrigin = System.IO.SeekOrigin;
|
|||||||
using Stream = System.IO.Stream;
|
using Stream = System.IO.Stream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Skippers
|
namespace SabreTools.Library.Skippers
|
||||||
{
|
{
|
||||||
public class SkipperRule
|
public class SkipperRule
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -30,7 +30,7 @@ using SharpCompress.Common;
|
|||||||
using SharpCompress.Readers;
|
using SharpCompress.Readers;
|
||||||
using SharpCompress.Writers;
|
using SharpCompress.Writers;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Tools
|
namespace SabreTools.Library.Tools
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* TODO: Full archive support for: RAR, LRZip, ZPAQ?, Zstd?, LZ4?
|
* TODO: Full archive support for: RAR, LRZip, ZPAQ?, Zstd?, LZ4?
|
||||||
@@ -161,7 +161,7 @@ namespace SabreTools.Helper.Tools
|
|||||||
for (int i = 0; i < zf.EntriesCount && zr == ZipReturn.ZipGood; i++)
|
for (int i = 0; i < zf.EntriesCount && zr == ZipReturn.ZipGood; i++)
|
||||||
{
|
{
|
||||||
// Open the read stream
|
// Open the read stream
|
||||||
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Helper.Data.CompressionMethod cm, out uint lastMod);
|
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Library.Data.CompressionMethod cm, out uint lastMod);
|
||||||
|
|
||||||
// Create the rest of the path, if needed
|
// Create the rest of the path, if needed
|
||||||
if (!String.IsNullOrEmpty(Path.GetDirectoryName(zf.Entries[i].FileName)))
|
if (!String.IsNullOrEmpty(Path.GetDirectoryName(zf.Entries[i].FileName)))
|
||||||
@@ -372,7 +372,7 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
// Open the read stream
|
// Open the read stream
|
||||||
realEntry = zf.Entries[i].FileName;
|
realEntry = zf.Entries[i].FileName;
|
||||||
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Helper.Data.CompressionMethod cm, out uint lastMod);
|
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Library.Data.CompressionMethod cm, out uint lastMod);
|
||||||
|
|
||||||
// If the stream is smaller than the buffer, just run one loop through to avoid issues
|
// If the stream is smaller than the buffer, just run one loop through to avoid issues
|
||||||
if (streamsize < _bufferSize)
|
if (streamsize < _bufferSize)
|
||||||
@@ -804,7 +804,7 @@ namespace SabreTools.Helper.Tools
|
|||||||
for (int i = 0; i < zf.EntriesCount && zr == ZipReturn.ZipGood; i++)
|
for (int i = 0; i < zf.EntriesCount && zr == ZipReturn.ZipGood; i++)
|
||||||
{
|
{
|
||||||
// Open the read stream
|
// Open the read stream
|
||||||
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Helper.Data.CompressionMethod cm, out uint lastMod);
|
zr = zf.OpenReadStream(i, false, out Stream readStream, out ulong streamsize, out SabreTools.Library.Data.CompressionMethod cm, out uint lastMod);
|
||||||
|
|
||||||
// If the entry ends with a directory separator, continue to the next item, if any
|
// If the entry ends with a directory separator, continue to the next item, if any
|
||||||
if (zf.Entries[i].FileName.EndsWith(Path.DirectorySeparatorChar.ToString())
|
if (zf.Entries[i].FileName.EndsWith(Path.DirectorySeparatorChar.ToString())
|
||||||
@@ -2887,11 +2887,11 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
||||||
zipFile.OpenWriteStream(false, false, rom.Name.Replace('\\', '/'), istreamSize,
|
zipFile.OpenWriteStream(false, false, rom.Name.Replace('\\', '/'), istreamSize,
|
||||||
SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zipFile.OpenWriteStream(false, true, rom.Name.Replace('\\', '/'), istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream);
|
zipFile.OpenWriteStream(false, true, rom.Name.Replace('\\', '/'), istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
@@ -2958,11 +2958,11 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
||||||
zipFile.OpenWriteStream(false, false, rom.Name.Replace('\\', '/'), istreamSize,
|
zipFile.OpenWriteStream(false, false, rom.Name.Replace('\\', '/'), istreamSize,
|
||||||
SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zipFile.OpenWriteStream(false, true, rom.Name.Replace('\\', '/'), istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream);
|
zipFile.OpenWriteStream(false, true, rom.Name.Replace('\\', '/'), istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
@@ -2981,9 +2981,9 @@ namespace SabreTools.Helper.Tools
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Instantiate the streams
|
// Instantiate the streams
|
||||||
oldZipFile.OpenReadStream(index, false, out Stream zreadStream, out ulong istreamSize, out SabreTools.Helper.Data.CompressionMethod icompressionMethod, out uint lastMod);
|
oldZipFile.OpenReadStream(index, false, out Stream zreadStream, out ulong istreamSize, out SabreTools.Library.Data.CompressionMethod icompressionMethod, out uint lastMod);
|
||||||
zipFile.OpenWriteStream(false, lastMod == Constants.TorrentZipFileDateTime, oldZipFile.Filename(index),
|
zipFile.OpenWriteStream(false, lastMod == Constants.TorrentZipFileDateTime, oldZipFile.Filename(index),
|
||||||
istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: lastMod);
|
istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: lastMod);
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
byte[] ibuffer = new byte[_bufferSize];
|
byte[] ibuffer = new byte[_bufferSize];
|
||||||
@@ -3107,11 +3107,11 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
||||||
zipFile.OpenWriteStream(false, false, roms[index].Name.Replace('\\', '/'), istreamSize,
|
zipFile.OpenWriteStream(false, false, roms[index].Name.Replace('\\', '/'), istreamSize,
|
||||||
SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zipFile.OpenWriteStream(false, true, roms[index].Name.Replace('\\', '/'), istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream);
|
zipFile.OpenWriteStream(false, true, roms[index].Name.Replace('\\', '/'), istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
@@ -3184,11 +3184,11 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
uint msDosDateTime = Style.ConvertDateTimeToMsDosTimeFormat(dt);
|
||||||
zipFile.OpenWriteStream(false, false, roms[-index - 1].Name.Replace('\\', '/'), istreamSize,
|
zipFile.OpenWriteStream(false, false, roms[-index - 1].Name.Replace('\\', '/'), istreamSize,
|
||||||
SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: msDosDateTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zipFile.OpenWriteStream(false, true, roms[-index - 1].Name.Replace('\\', '/'), istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream);
|
zipFile.OpenWriteStream(false, true, roms[-index - 1].Name.Replace('\\', '/'), istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
@@ -3207,9 +3207,9 @@ namespace SabreTools.Helper.Tools
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Instantiate the streams
|
// Instantiate the streams
|
||||||
oldZipFile.OpenReadStream(index, false, out Stream zreadStream, out ulong istreamSize, out SabreTools.Helper.Data.CompressionMethod icompressionMethod, out uint lastMod);
|
oldZipFile.OpenReadStream(index, false, out Stream zreadStream, out ulong istreamSize, out SabreTools.Library.Data.CompressionMethod icompressionMethod, out uint lastMod);
|
||||||
zipFile.OpenWriteStream(false, lastMod == Constants.TorrentZipFileDateTime, oldZipFile.Filename(index),
|
zipFile.OpenWriteStream(false, lastMod == Constants.TorrentZipFileDateTime, oldZipFile.Filename(index),
|
||||||
istreamSize, SabreTools.Helper.Data.CompressionMethod.Deflated, out writeStream, lastMod: lastMod);
|
istreamSize, SabreTools.Library.Data.CompressionMethod.Deflated, out writeStream, lastMod: lastMod);
|
||||||
|
|
||||||
// Copy the input stream to the output
|
// Copy the input stream to the output
|
||||||
byte[] ibuffer = new byte[_bufferSize];
|
byte[] ibuffer = new byte[_bufferSize];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -10,7 +10,7 @@ using System.IO;
|
|||||||
using Alphaleonis.Win32.Filesystem;
|
using Alphaleonis.Win32.Filesystem;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Tools
|
namespace SabreTools.Library.Tools
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All general database operations
|
/// All general database operations
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ using System.Security.Cryptography;
|
|||||||
using System.Xml;
|
using System.Xml;
|
||||||
using System.Xml.Schema;
|
using System.Xml.Schema;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
using SabreTools.Helper.External;
|
using SabreTools.Library.External;
|
||||||
using SabreTools.Helper.Skippers;
|
using SabreTools.Library.Skippers;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -32,7 +32,7 @@ using StreamReader = System.IO.StreamReader;
|
|||||||
using NaturalSort;
|
using NaturalSort;
|
||||||
using OCRC;
|
using OCRC;
|
||||||
|
|
||||||
namespace SabreTools.Helper.Tools
|
namespace SabreTools.Library.Tools
|
||||||
{
|
{
|
||||||
public static class FileTools
|
public static class FileTools
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ using System.Text;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -17,7 +17,7 @@ using Alphaleonis.Win32.Filesystem;
|
|||||||
using FileStream = System.IO.FileStream;
|
using FileStream = System.IO.FileStream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace SabreTools.Helper.Tools
|
namespace SabreTools.Library.Tools
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Include character normalization and replacement mappings
|
/// Include character normalization and replacement mappings
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Help;
|
using SabreTools.Library.Help;
|
||||||
|
|
||||||
namespace SabreTools
|
namespace SabreTools
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using SabreTools.Helper;
|
using SabreTools.Library;
|
||||||
using SabreTools.Helper.Data;
|
using SabreTools.Library.Data;
|
||||||
using SabreTools.Helper.Dats;
|
using SabreTools.Library.Dats;
|
||||||
using SabreTools.Helper.Help;
|
using SabreTools.Library.Help;
|
||||||
using SabreTools.Helper.Tools;
|
using SabreTools.Library.Tools;
|
||||||
|
|
||||||
#if MONO
|
#if MONO
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
Reference in New Issue
Block a user