Interface IShiragameProvider
Represents a Shiragame information database
Namespace: Snowflake.Shiragame
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IShiragameProvider
Properties
DatabaseVersion
Gets the database version
Declaration
Version DatabaseVersion { get; }
Property Value
Type | Description |
---|---|
System. |
StoneVersion
Gets the version of Stone used in generating the database
Declaration
Version StoneVersion { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetFromCrc32(String)
Get ROM information from the CRC32 string of a file. CRC32 has conflicts, use MD5 or SHA1 if possible.
Declaration
IRomInfo GetFromCrc32(string crc32)
Parameters
Type | Name | Description |
---|---|---|
System. |
crc32 | The CRC32 of the file |
Returns
Type | Description |
---|---|
IRom |
The rom information |
GetFromMd5(String)
Get ROM informatiom from the MD5 of a file
Declaration
IRomInfo GetFromMd5(string md5)
Parameters
Type | Name | Description |
---|---|---|
System. |
md5 | The MD5 of the file |
Returns
Type | Description |
---|---|
IRom |
The rom information |
GetFromSerial(String, String)
Gets serial information, given the known platform ID and a known serial. Platform ID must be known, as serials conflict within platforms.
Declaration
ISerialInfo GetFromSerial(string platformId, string serial)
Parameters
Type | Name | Description |
---|---|---|
System. |
platformId | The Stone Platform ID for the serial |
System. |
serial | The serial from the file |
Returns
Type | Description |
---|---|
ISerial |
The serial information |
GetFromSha1(String)
Get ROM information from the SHA1 of a file
Declaration
IRomInfo GetFromSha1(string sha1)
Parameters
Type | Name | Description |
---|---|---|
System. |
sha1 | The SHA1 of the file |
Returns
Type | Description |
---|---|
IRom |
The rom information |
IsMameRom(String)
Checks if the file is a mame ROM
Declaration
bool IsMameRom(string mameRom)
Parameters
Type | Name | Description |
---|---|---|
System. |
mameRom | The name of the file, including .zip extension |
Returns
Type | Description |
---|---|
System. |
Whether the filename matches with a known mame dump |