mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move Enums and Structs to central location
This commit is contained in:
@@ -466,24 +466,4 @@ JOIN checksums
|
||||
return roms;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding and processing rom data
|
||||
/// </summary>
|
||||
public struct RomData
|
||||
{
|
||||
public string Manufacturer;
|
||||
public string System;
|
||||
public int SystemID;
|
||||
public string Source;
|
||||
public string URL;
|
||||
public int SourceID;
|
||||
public string Game;
|
||||
public string Name;
|
||||
public string Type;
|
||||
public long Size;
|
||||
public string CRC;
|
||||
public string MD5;
|
||||
public string SHA1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,22 +46,6 @@ namespace SabreTools
|
||||
private static string _redumpDatePattern = @"(\d{4})(\d{2})(\d{2}) (\d{2})-(\d{2})-(\d{2})";
|
||||
private static string _tosecDatePattern = @"(\d{4})-(\d{2})-(\d{2})";
|
||||
|
||||
/// <summary>
|
||||
/// Possible DAT import classes
|
||||
/// </summary>
|
||||
private enum DatType
|
||||
{
|
||||
none = 0,
|
||||
Custom,
|
||||
MAME,
|
||||
NoIntro,
|
||||
Redump,
|
||||
TOSEC,
|
||||
TruRip,
|
||||
NonGood,
|
||||
MaybeIntro,
|
||||
}
|
||||
|
||||
// Public instance variables
|
||||
public string FilePath
|
||||
{
|
||||
|
||||
@@ -19,21 +19,6 @@ namespace SabreTools
|
||||
private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;";
|
||||
private static Logger logger;
|
||||
|
||||
/// <summary>
|
||||
/// Possible detected header type
|
||||
/// </summary>
|
||||
private enum HeaderType
|
||||
{
|
||||
None = 0,
|
||||
A7800,
|
||||
FDS,
|
||||
Lynx,
|
||||
//N64,
|
||||
NES,
|
||||
PCE,
|
||||
SNES,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start deheader operation with supplied parameters
|
||||
/// </summary>
|
||||
|
||||
49
SabreHelper/Enums.cs
Normal file
49
SabreHelper/Enums.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SabreTools.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// Possible DAT import classes
|
||||
/// </summary>
|
||||
public enum DatType
|
||||
{
|
||||
none = 0,
|
||||
Custom,
|
||||
MAME,
|
||||
NoIntro,
|
||||
Redump,
|
||||
TOSEC,
|
||||
TruRip,
|
||||
NonGood,
|
||||
MaybeIntro,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Possible detected header type
|
||||
/// </summary>
|
||||
public enum HeaderType
|
||||
{
|
||||
None = 0,
|
||||
A7800,
|
||||
FDS,
|
||||
Lynx,
|
||||
//N64,
|
||||
NES,
|
||||
PCE,
|
||||
SNES,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Severity of the logging statement
|
||||
/// </summary>
|
||||
public enum LogLevel
|
||||
{
|
||||
VERBOSE = 0,
|
||||
WARNING,
|
||||
ERROR,
|
||||
}
|
||||
}
|
||||
@@ -13,13 +13,6 @@ namespace SabreTools.Helper
|
||||
private string _filename;
|
||||
private StreamWriter _log;
|
||||
|
||||
public enum LogLevel
|
||||
{
|
||||
VERBOSE = 0,
|
||||
WARNING,
|
||||
ERROR,
|
||||
}
|
||||
|
||||
// Public wrappers
|
||||
public bool ToFile
|
||||
{
|
||||
|
||||
@@ -66,9 +66,11 @@
|
||||
<Compile Include="Converters.cs" />
|
||||
<Compile Include="CRC32.cs" />
|
||||
<Compile Include="DBTools.cs" />
|
||||
<Compile Include="Enums.cs" />
|
||||
<Compile Include="Logger.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Remapping.cs" />
|
||||
<Compile Include="Structs.cs" />
|
||||
<Compile Include="Style.cs" />
|
||||
<Compile Include="Build.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
22
SabreHelper/Structs.cs
Normal file
22
SabreHelper/Structs.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace SabreTools.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding and processing rom data
|
||||
/// </summary>
|
||||
public struct RomData
|
||||
{
|
||||
public string Manufacturer;
|
||||
public string System;
|
||||
public int SystemID;
|
||||
public string Source;
|
||||
public string URL;
|
||||
public int SourceID;
|
||||
public string Game;
|
||||
public string Name;
|
||||
public string Type;
|
||||
public long Size;
|
||||
public string CRC;
|
||||
public string MD5;
|
||||
public string SHA1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user